mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 148220: FIPS 198's key size requirement broke the NSS QA. Backing it
out.
This commit is contained in:
parent
9590c529f0
commit
2bd38c9821
@ -64,11 +64,6 @@ HMAC_Create(const SECHashObject *hash_obj, const unsigned char *secret,
|
||||
int i;
|
||||
unsigned char hashed_secret[SHA1_LENGTH];
|
||||
|
||||
/* required by FIPS 198 */
|
||||
if (secret_len < hash_obj->length/2) {
|
||||
PORT_SetError(SEC_ERROR_INVALID_ARGS);
|
||||
return NULL;
|
||||
}
|
||||
cx = (HMACContext*)PORT_ZAlloc(sizeof(HMACContext));
|
||||
if (cx == NULL)
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user