Index: nss/mozilla/security/nss/lib/util/pkcs11t.h |
=================================================================== |
--- nss/mozilla/security/nss/lib/util/pkcs11t.h (revision 162724) |
+++ nss/mozilla/security/nss/lib/util/pkcs11t.h (working copy) |
@@ -885,6 +885,12 @@ |
#define CKM_AES_MAC 0x00001083 |
#define CKM_AES_MAC_GENERAL 0x00001084 |
#define CKM_AES_CBC_PAD 0x00001085 |
+/* new for v2.20 amendment 3 */ |
+#define CKM_AES_CTR 0x00001086 |
+/* new for v2.30 */ |
+#define CKM_AES_GCM 0x00001087 |
+#define CKM_AES_CCM 0x00001088 |
+#define CKM_AES_CTS 0x00001089 |
/* BlowFish and TwoFish are new for v2.20 */ |
#define CKM_BLOWFISH_KEY_GEN 0x00001090 |
@@ -1489,6 +1495,37 @@ |
typedef CK_AES_CBC_ENCRYPT_DATA_PARAMS CK_PTR CK_AES_CBC_ENCRYPT_DATA_PARAMS_PTR; |
+/* CK_AES_CTR_PARAMS is new for PKCS #11 v2.20 amendment 3 */ |
+typedef struct CK_AES_CTR_PARAMS { |
+ CK_ULONG ulCounterBits; |
+ CK_BYTE cb[16]; |
+} CK_AES_CTR_PARAMS; |
+ |
+typedef CK_AES_CTR_PARAMS CK_PTR CK_AES_CTR_PARAMS_PTR; |
+ |
+/* CK_GCM_PARAMS is new for version 2.30 */ |
+typedef struct CK_GCM_PARAMS { |
+ CK_BYTE_PTR pIv; |
+ CK_ULONG ulIvLen; |
+ CK_BYTE_PTR pAAD; |
+ CK_ULONG ulAADLen; |
+ CK_ULONG ulTagBits; |
+} CK_GCM_PARAMS; |
+ |
+typedef CK_GCM_PARAMS CK_PTR CK_GCM_PARAMS_PTR; |
+ |
+/* CK_CCM_PARAMS is new for version 2.30 */ |
+typedef struct CK_CCM_PARAMS { |
+ CK_ULONG ulDataLen; |
+ CK_BYTE_PTR pNonce; |
+ CK_ULONG ulNonceLen; |
+ CK_BYTE_PTR pAAD; |
+ CK_ULONG ulAADLen; |
+ CK_ULONG ulMACLen; |
+} CK_CCM_PARAMS; |
+ |
+typedef CK_CCM_PARAMS CK_PTR CK_CCM_PARAMS_PTR; |
+ |
/* CK_SKIPJACK_PRIVATE_WRAP_PARAMS provides the parameters to the |
* CKM_SKIPJACK_PRIVATE_WRAP mechanism */ |
/* CK_SKIPJACK_PRIVATE_WRAP_PARAMS is new for v2.0 */ |