robd wrote:
What version of PKCS #11 is this header file from?
It appears that it is 2.20 but I have found differences between what's
in the Firefox 1.0.2 & NSS 3.9 source and what is posted on the RSA
Labs site.
The Firefox/NSS source defines the following mechanisms:
#define CKM_SHA256_HMAC_GENERAL 0x00000251 /* v2.20 */
#define CKM_SHA256_HMAC 0x00000252 /* v2.20 */
#define CKM_SHA384_HMAC_GENERAL 0x00000261 /* v2.20 */
#define CKM_SHA384_HMAC 0x00000262 /* v2.20 */
#define CKM_SHA512_HMAC_GENERAL 0x00000271 /* v2.20 */
#define CKM_SHA512_HMAC 0x00000272 /* v2.20 */
However on the RSA site these are:
#define CKM_SHA256_HMAC 0x00000251
#define CKM_SHA256_HMAC_GENERAL 0x00000252
#define CKM_SHA384_HMAC 0x00000261
#define CKM_SHA384_HMAC_GENERAL 0x00000262
#define CKM_SHA512_HMAC 0x00000271
#define CKM_SHA512_HMAC_GENERAL 0x00000272
The Firefox/NSS source defines the following mechanisms:
#define CKM_ECDH1_DERIVE 0x00001043
#define CKM_ECDH1_COFACTOR_DERIVE 0x00001044
#define CKM_ECMQV_DERIVE 0x00001045
However on the RSA site these are:
#define CKM_ECDH1_DERIVE 0x00001050
#define CKM_ECDH1_COFACTOR_DERIVE 0x00001051
#define CKM_ECMQV_DERIVE 0x00001052
Thanks for the bug reprot. These incorrect macro definitions
will be fixed in the upcoming NSS 3.10.1 release.
(https://bugzilla.mozilla.org/show_bug.cgi?id=291858)
I also filed a bug for us to merge the current PKCS #11
v2.20 header files in NSS 3.11.
(https://bugzilla.mozilla.org/show_bug.cgi?id=292239)
Wan-Teh
_______________________________________________
mozilla-crypto mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-crypto