Searched refs:k_opad (Results 1 – 3 of 3) sorted by relevance
/external/syslinux/gpxe/src/crypto/ |
D | hmac.c | 100 unsigned char k_opad[digest->blocksize]; in hmac_final() local 104 if ( *key_len > sizeof ( k_opad ) ) in hmac_final() 108 memset ( k_opad, 0, sizeof ( k_opad ) ); in hmac_final() 109 memcpy ( k_opad, key, *key_len ); in hmac_final() 110 for ( i = 0 ; i < sizeof ( k_opad ) ; i++ ) { in hmac_final() 111 k_opad[i] ^= 0x5c; in hmac_final() 119 digest_update ( digest, digest_ctx, k_opad, sizeof ( k_opad ) ); in hmac_final()
|
/external/dhcpcd-6.8.2/crypt/ |
D | hmac_md5.c | 52 uint8_t k_ipad[HMAC_PAD_LEN], k_opad[HMAC_PAD_LEN]; in hmac_md5() local 68 memcpy(k_opad, key, key_len); in hmac_md5() 70 memset(k_opad + key_len, 0, sizeof(k_opad) - key_len); in hmac_md5() 75 k_opad[i] ^= OPAD; in hmac_md5() 86 MD5Update(&context, k_opad, HMAC_PAD_LEN); in hmac_md5()
|
/external/tcpdump/ |
D | signature.c | 55 unsigned char k_opad[65]; /* outer padding - key XORd with opad */ in signature_compute_hmac_md5() local 85 memset(k_opad, 0, sizeof k_opad); in signature_compute_hmac_md5() 87 memcpy(k_opad, key, key_len); in signature_compute_hmac_md5() 92 k_opad[i] ^= 0x5c; in signature_compute_hmac_md5() 107 MD5_Update(&context, k_opad, 64); /* start with outer pad */ in signature_compute_hmac_md5()
|