]> Cypherpunks repositories - gostls13.git/commit
crypto/rsa: add SHA-224 hash prefix
authorRuss Cox <rsc@golang.org>
Mon, 21 May 2012 18:10:16 +0000 (14:10 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 21 May 2012 18:10:16 +0000 (14:10 -0400)
commit053e4edd80f9d15a480585cfa82110ac8543dc97
treeb045c884197eb2f0da8b72d74c15e5c7834cac46
parentd45f22e3c843c4c19fd547684e51f249d9fd53dd
crypto/rsa: add SHA-224 hash prefix

http://www.rsa.com/rsalabs/node.asp?id=2125:

NOTE: A new OID has been defined for the combination
of the v1.5 signature scheme and the SHA-224 hash function:
        sha224WithRSAEncryption OBJECT IDENTIFIER ::=
Like the other sha*WithRSAEncryption OIDs in PKCS #1 v2.1,
this OID has NULL parameters.
The DigestInfo encoding for SHA-224 (see Section 9.2, Note 1) is:
        (0x)30 2d 30 0d 06 09 60 86 48 01 65 03 04 02 04 05 00 04 1c || H

R=golang-dev, agl
CC=golang-dev
https://golang.org/cl/6208076
src/pkg/crypto/rsa/pkcs1v15.go