The example says, "The cryptAlgorithmSid attribute value of 1 specifies that the SHA-1 hashing algorithm shall be used to generate a hash from the user-defined password." However, the attribute value of 1 means MD2 and 4 means SHA-1 in the table above the example.
Change the attribute value from 1 to 4.
cryptAlgorithmSid in the table on page 1167 Part 4 Clause 2.15.1.28
ed
Proposed Disposition of DIS 29500 Comment JP-0051 (Modified: 2007-11-28) Agreed; the following changes will be made to Part 4, ยง2.15.1.28, page 1,171, in the Attributes table: [Example: Consider a WordprocessingML document with the following information stored in one of its protection elements: <w:... w:cryptAlgorithmClass="hash" w:cryptAlgorithmType="typeAny" w:cryptAlgorithmSid=" 1 4 " w:hash="9oN7nWkCAyEZib1RomSJTjmPpCY=" /> The cryptAlgorithmSid attribute value of 1 4 specifies that the SHA-1 hashing algorithm must be used to generate a hash from the user-defined password. end example]
