diff options
author | Moonchild <moonchild@palemoon.org> | 2021-03-15 12:57:35 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2021-03-15 12:57:35 +0000 |
commit | fd9fc4ea60a66e33a57826bac996e1d1128c0e40 (patch) | |
tree | 1cbaea27ade626a7f7eddaa08eadaf63e3e5f589 /security/nss/lib/pk11wrap/pk11priv.h | |
parent | d830832cb9466d6ce5b16e5610d3defbc3ec8053 (diff) | |
download | uxp-fd9fc4ea60a66e33a57826bac996e1d1128c0e40.tar.gz |
Issue #1693 - Update NSS to 3.52.1-RTM
Diffstat (limited to 'security/nss/lib/pk11wrap/pk11priv.h')
-rw-r--r-- | security/nss/lib/pk11wrap/pk11priv.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/security/nss/lib/pk11wrap/pk11priv.h b/security/nss/lib/pk11wrap/pk11priv.h index 13fc74c3ac..8baf069cc1 100644 --- a/security/nss/lib/pk11wrap/pk11priv.h +++ b/security/nss/lib/pk11wrap/pk11priv.h @@ -98,6 +98,7 @@ void PK11_AddMechanismEntry(CK_MECHANISM_TYPE type, CK_KEY_TYPE key, int ivLen, int blocksize); CK_MECHANISM_TYPE PK11_GetKeyMechanism(CK_KEY_TYPE type); CK_MECHANISM_TYPE PK11_GetKeyGenWithSize(CK_MECHANISM_TYPE type, int size); +PRBool PK11_DoesMechanismFlag(PK11SlotInfo *, CK_MECHANISM_TYPE type, CK_FLAGS flags); /********************************************************************** * Symetric, Public, and Private Keys @@ -146,6 +147,14 @@ PK11Context *PK11_CreateContextByRawKey(PK11SlotInfo *slot, CK_MECHANISM_TYPE type, PK11Origin origin, CK_ATTRIBUTE_TYPE operation, SECItem *key, SECItem *param, void *wincx); PRBool PK11_HashOK(SECOidTag hashAlg); +/* + * Testing interfaces, not for general use. If your code isn't in + * gtests or cmd, stay away from these. This function forces + * an AEAD context into simulation mode even though the target token + * can already do PKCS #11 v3.0 Message (e.i. softoken). + */ +SECStatus _PK11_ContextSetAEADSimulation(PK11Context *context); +PRBool _PK11_ContextGetAEADSimulation(PK11Context *context); /********************************************************************** * Functions which are deprecated.... |