diff options
Diffstat (limited to 'lib/cryptohi/keyi.h')
-rw-r--r-- | lib/cryptohi/keyi.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/cryptohi/keyi.h b/lib/cryptohi/keyi.h index 707e11ade..5683afbeb 100644 --- a/lib/cryptohi/keyi.h +++ b/lib/cryptohi/keyi.h @@ -4,6 +4,7 @@ #ifndef _KEYI_H_ #define _KEYI_H_ +#include "secerr.h" SEC_BEGIN_PROTOS /* NSS private functions */ @@ -36,6 +37,9 @@ SECStatus sec_DecodeRSAPSSParamsToMechanism(PLArenaPool *arena, const SECItem *params, CK_RSA_PKCS_PSS_PARAMS *mech); +/* make sure the key length matches the policy for keyType */ +SECStatus seckey_EnforceKeySize(KeyType keyType, unsigned keyLength, + SECErrorCodes error); SEC_END_PROTOS #endif /* _KEYHI_H_ */ |