Bug 148220: FIPS 198's key size requirement broke the NSS QA. Backing it

out.
This commit is contained in:
wtc%netscape.com 2002-07-31 00:55:35 +00:00
parent 9590c529f0
commit 2bd38c9821

View File

@ -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;