fercufer wrote:
> On 28 ago, 17:02, fercufer<[EMAIL PROTECTED]>  wrote:
>> In JSS I have discovered that SHA512 OID is 2.16.840.1.101.3.4.3
>> (DigestAlgorithm.SHA512). However in Bouncy Castle and several webs
>> (http://www.oid-info.com/,http://www.users.zetnet.co.uk/hopwood/crypto/
>> scan/) SHA512 OID is 2.16.840.1.101.3.4.2.3.  Is there an error?.
>
> Seems that the .NET Framework libraries for version 1.1 used JSS OID
> too however the .NET Framework libraries for version 2.0 changed.
> ¿Should we change it?

I think yes and I'm afraid the JSS version is a typo :-(

The page below is clearly the real official reference to use and says :

http://csrc.nist.gov/groups/ST/crypto_apps_infra/csor/algorithms.html
"The CSOR has allocated the following registration branch for 
cryptographic algorithm objects:

nistAlgorithms OBJECT IDENTIFIER ::= { csor nistAlgorithm(4) }
hashAlgs OBJECT IDENTIFIER ::= { nistAlgorithms 2 }
[...]
id-sha512 OBJECT IDENTIFIER ::= { hashAlgs 3 }
[...]
"

http://mxr.mozilla.org/security/source/security/jss/org/mozilla/jss/asn1/OBJECT_IDENTIFIER.java#110
110   /**
111   * The OID space for FIPS-180-2 SHA256/SHA384/SHA512 standardized 
algorithms.
112   */
113   public static final OBJECT_IDENTIFIER HASH_ALGORITHM =
114     new OBJECT_IDENTIFIER( new long[] {2, 16, 840, 1, 101, 3, 4 } );

It should be this instead :-(
   OBJECT_IDENTIFIER( new long[] {2, 16, 840, 1, 101, 3, 4, 2}};
_______________________________________________
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to