diff options
author | nelsonb%netscape.com <devnull@localhost> | 2005-08-06 09:27:28 +0000 |
---|---|---|
committer | nelsonb%netscape.com <devnull@localhost> | 2005-08-06 09:27:28 +0000 |
commit | f7716a9a4c30b23fb3b6c4610f23e5a5f7b8e778 (patch) | |
tree | 3b5a9b037021d549942554a1ce7d77ac8c342c55 /security/nss/lib/freebl/loader.h | |
parent | 40932f8f45d33d384b4b75cc7d842d3e2afb775e (diff) | |
download | nss-hg-f7716a9a4c30b23fb3b6c4610f23e5a5f7b8e778.tar.gz |
Move the TLS Pseudo Random Function (PRF) and the HMAC algorithm from
softoken to freebl. Bug 303316. r=wtchang (with suggested changes)
Modified Files:
freebl/blapi.h freebl/ldvector.c freebl/loader.c
freebl/loader.h freebl/manifest.mn softoken/lowpbe.c
softoken/manifest.mn softoken/pkcs11c.c softoken/pkcs11i.h
softoken/tlsprf.c
Added Files:
freebl/alghmac.c freebl/alghmac.h freebl/rawhash.c
freebl/tlsprfalg.c
Removed Files:
softoken/alghmac.c softoken/alghmac.h softoken/rawhash.c
Diffstat (limited to 'security/nss/lib/freebl/loader.h')
-rw-r--r-- | security/nss/lib/freebl/loader.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/security/nss/lib/freebl/loader.h b/security/nss/lib/freebl/loader.h index ed2eee775..f64cc1c08 100644 --- a/security/nss/lib/freebl/loader.h +++ b/security/nss/lib/freebl/loader.h @@ -426,6 +426,26 @@ struct FREEBLVectorStr { void (* p_SHA384_Clone)(SHA384Context *dest, SHA384Context *src); void (* p_SHA512_Clone)(SHA512Context *dest, SHA512Context *src); + SECStatus (* p_TLS_PRF)(const SECItem *secret, const char *label, + SECItem *seed, SECItem *result, PRBool isFIPS); + + const SECHashObject *(* p_SEC_GetRawHashObject)(HASH_HashType hashType); + + void (* p_HMAC_Destroy)(HMACContext *cx); + HMACContext * (* p_HMAC_Create)(const SECHashObject *hashObj, + const unsigned char *secret, + unsigned int secret_len, PRBool isFIPS); + SECStatus (* p_HMAC_Init)(HMACContext *cx, const SECHashObject *hash_obj, + const unsigned char *secret, + unsigned int secret_len, PRBool isFIPS); + void (* p_HMAC_Begin)(HMACContext *cx); + void (* p_HMAC_Update)(HMACContext *cx, const unsigned char *data, + unsigned int data_len); + SECStatus (* p_HMAC_Finish)(HMACContext *cx, unsigned char *result, + unsigned int *result_len, + unsigned int max_result_len); + HMACContext * (* p_HMAC_Clone)(HMACContext *cx); + /* Version 3.008 came to here */ }; |