Lines Matching refs:hmac_key
195 unsigned char hmac_key[64]; in rc4_hmac_md5_ctrl() local
197 memset(hmac_key, 0, sizeof(hmac_key)); in rc4_hmac_md5_ctrl()
199 if (arg > (int)sizeof(hmac_key)) { in rc4_hmac_md5_ctrl()
202 MD5_Final(hmac_key, &key->head); in rc4_hmac_md5_ctrl()
204 memcpy(hmac_key, ptr, arg); in rc4_hmac_md5_ctrl()
207 for (i = 0; i < sizeof(hmac_key); i++) in rc4_hmac_md5_ctrl()
208 hmac_key[i] ^= 0x36; /* ipad */ in rc4_hmac_md5_ctrl()
210 MD5_Update(&key->head, hmac_key, sizeof(hmac_key)); in rc4_hmac_md5_ctrl()
212 for (i = 0; i < sizeof(hmac_key); i++) in rc4_hmac_md5_ctrl()
213 hmac_key[i] ^= 0x36 ^ 0x5c; /* opad */ in rc4_hmac_md5_ctrl()
215 MD5_Update(&key->tail, hmac_key, sizeof(hmac_key)); in rc4_hmac_md5_ctrl()
217 OPENSSL_cleanse(hmac_key, sizeof(hmac_key)); in rc4_hmac_md5_ctrl()