Scute - pkcs11.h is outdated

Rickard Bellgrim rickard.bellgrim at iis.se
Fri Sep 24 16:05:31 CEST 2010


Hi

The PKCS#11 header file you are using in the Scute project is missing the latest amendments for PKCS#11 v2.20.

ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/otp-pkcs11.h
ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/ct-kip.h
ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs-11v2-20a3.h

And the following defines was also missing They were included in the original v2.20:

#define CKK_CAST5               (0x18)

#define CKM_DES_OFB64                   (0x150)
#define CKM_DES_OFB8                    (0x151)
#define CKM_DES_CFB64                   (0x152)
#define CKM_DES_CFB8                    (0x153)
#define CKM_TLS_PRF                     (0x378)
#define CKM_SHA256_KEY_DERIVATION       (0x393)
#define CKM_SHA384_KEY_DERIVATION       (0x394)
#define CKM_SHA512_KEY_DERIVATION       (0x395)
#define CKM_WTLS_PRE_MASTER_KEY_GEN     (0x3d0)
#define CKM_WTLS_MASTER_KEY_DERIVE      (0x3d1)
#define CKM_WTLS_MASTER_KEY_DERVIE_DH_ECC       (0x3d2)
#define CKM_WTLS_PRF                    (0x3d3)
#define CKM_WTLS_SERVER_KEY_AND_MAC_DERIVE      (0x3d4)
#define CKM_WTLS_CLIENT_KEY_AND_MAC_DERIVE      (0x3d5)
#define CKM_CMS_SIG                     (0x500)
#define CKM_BLOWFISH_KEY_GEN            (0x1090)
#define CKM_BLOWFISH_CBC                (0x1091)
#define CKM_TWOFISH_KEY_GEN             (0x1092)
#define CKM_TWOFISH_CBC                 (0x1093)
#define CKM_DES_ECB_ENCRYPT_DATA        (0x1100)
#define CKM_DES_CBC_ENCRYPT_DATA        (0x1101)
#define CKM_DES3_ECB_ENCRYPT_DATA       (0x1102)
#define CKM_DES3_CBC_ENCRYPT_DATA       (0x1103)
#define CKM_AES_ECB_ENCRYPT_DATA        (0x1104)
#define CKM_AES_CBC_ENCRYPT_DATA        (0x1105)

Any plans on updating the header file?

Thanks
// Rickard




More information about the Gnupg-devel mailing list