[CSP] Inconsistency between Source hash introduction and Source hash usage

I noticed descriptions about source hash are inconsistent in CSP Lv.2 Last Call Working Draft.
http://www.w3.org/TR/CSP11/
http://www.w3.org/TR/CSP2/

In 4.2.5, the draft says "Let actual be the base64 encoding of the binary digest of element’s content using the algorithm algorithm.”, however in 7.17.2, says "For example, the SHA-256 digest of alert('Hello, world.'); is YWIzOWNiNzJjNDRlYzc4MTgwMDhmZDlkOWI0NTAyMjgyY2MyMWJlMWUyNjc1ODJlYWJhNjU5MGU4NmZmNGU3OAo=.”.
The section 4.2.5 describe correctly according to the actual implementation for Google Chrome.
The correct base64 encoded SHA-256 binary digest of alert(‘Hello, world.’); is qznLcsROx4GACP2dm0UCKCzCG+HiZ1guq6ZZDob/Tng=. 

It’s ovbious that the former is correct, and the latter is wrong though, this mistake is sometimes misleading.
(It mislead me actually…)

/**
 * Yu Yagihashi
 * yagihash@sfc.wide.ad.jp
 */

Received on Saturday, 25 October 2014 12:12:25 UTC