Searched refs:ikey (Results 1 - 2 of 2) sorted by relevance
/sssd/src/util/crypto/nss/ |
H A D | nss_hmac_sha1.c | 41 unsigned char ikey[HMAC_SHA1_BLOCKSIZE], okey[HMAC_SHA1_BLOCKSIZE]; local 61 HASH_End(sha1, ikey, &res_len, SSS_SHA1_LENGTH); 62 memset(ikey + SSS_SHA1_LENGTH, 0, HMAC_SHA1_BLOCKSIZE - SSS_SHA1_LENGTH); 65 memcpy(ikey, key, key_len); 67 memset(ikey + key_len, 0, HMAC_SHA1_BLOCKSIZE - key_len); 73 okey[i] = ikey[i] ^ 0x5c; 74 ikey[i] ^= 0x36; 78 HASH_Update(sha1, ikey, HMAC_SHA1_BLOCKSIZE);
|
/sssd/src/util/crypto/libcrypto/ |
H A D | crypto_hmac_sha1.c | 39 unsigned char ikey[HMAC_SHA1_BLOCKSIZE], okey[HMAC_SHA1_BLOCKSIZE]; local 57 EVP_DigestFinal_ex(ctx, ikey, &res_len); 58 memset(ikey + SSS_SHA1_LENGTH, 0, HMAC_SHA1_BLOCKSIZE - SSS_SHA1_LENGTH); 61 memcpy(ikey, key, key_len); 62 memset(ikey + key_len, 0, HMAC_SHA1_BLOCKSIZE - key_len); 67 okey[i] = ikey[i] ^ 0x5c; 68 ikey[i] ^= 0x36; 76 EVP_DigestUpdate(ctx, (const unsigned char *)ikey, HMAC_SHA1_BLOCKSIZE);
|
Completed in 13 milliseconds