The CDATA of the <hash/> element MUST conform to the base64Binary datatype See <http://www.w3.org/TR/xmlschema-2/#base64Binary>. and thus be encoded in accordance with Section 6.8 of &rfc2045;, which recommends that base64 data should have lines limited to at most 76 characters in length. However, any whitespace characters (e.g., '\r' and '\n') MUST be ignored.
+
The digest produced by the used hash algorithm is included as the XML character data of the <hash/> after being encoded as Base64 as specified in Section 4 of &rfc4648;. Thus the character data MUST conform to the base64Binary datatype See <http://www.w3.org/TR/xmlschema-2/#base64Binary>. as defined in &w3xmlschema2;.
@@ -399,7 +405,7 @@
Thanks to Dave Cridland, Waqas Hussain, Glenn Maynard, Remko
- Tronçon, and Christian Schudt for their input.
+ Tronçon, Christian Schudt, and Florian Schmaus for their input.
The digest produced by the used hash algorithm is included as the XML character data of the <hash/> after being encoded as Base64 as specified in Section 4 of &rfc4648;. Thus the character data MUST conform to the base64Binary datatype See <http://www.w3.org/TR/xmlschema-2/#base64Binary>. as defined in &w3xmlschema2;.
+
The digest produced by the used hash algorithm is included as the XML character data of the <hash/> element after being encoded using Base64 as specified in Section 4 of &rfc4648;. Thus the character data MUST conform to the base64Binary datatype See <http://www.w3.org/TR/xmlschema-2/#base64Binary>. as defined in &w3xmlschema2;. The Base64 output MUST NOT include whitespace and MUST set padding bits to zero.