Home
last modified time | relevance | path

Searched refs:k_ipad (Results 1 – 3 of 3) sorted by relevance

/external/syslinux/gpxe/src/crypto/
Dhmac.c65 unsigned char k_ipad[digest->blocksize]; in hmac_init() local
69 if ( *key_len > sizeof ( k_ipad ) ) in hmac_init()
73 memset ( k_ipad, 0, sizeof ( k_ipad ) ); in hmac_init()
74 memcpy ( k_ipad, key, *key_len ); in hmac_init()
75 for ( i = 0 ; i < sizeof ( k_ipad ) ; i++ ) { in hmac_init()
76 k_ipad[i] ^= 0x36; in hmac_init()
81 digest_update ( digest, digest_ctx, k_ipad, sizeof ( k_ipad ) ); in hmac_init()
/external/dhcpcd-6.8.2/crypt/
Dhmac_md5.c52 uint8_t k_ipad[HMAC_PAD_LEN], k_opad[HMAC_PAD_LEN]; in hmac_md5() local
67 memcpy(k_ipad, key, key_len); in hmac_md5()
69 memset(k_ipad + key_len, 0, sizeof(k_ipad) - key_len); in hmac_md5()
74 k_ipad[i] ^= IPAD; in hmac_md5()
80 MD5Update(&context, k_ipad, HMAC_PAD_LEN); in hmac_md5()
/external/tcpdump/
Dsignature.c54 unsigned char k_ipad[65]; /* inner padding - key XORd with ipad */ in signature_compute_hmac_md5() local
84 memset(k_ipad, 0, sizeof k_ipad); in signature_compute_hmac_md5()
86 memcpy(k_ipad, key, key_len); in signature_compute_hmac_md5()
91 k_ipad[i] ^= 0x36; in signature_compute_hmac_md5()
99 MD5_Update(&context, k_ipad, 64); /* start with inner pad */ in signature_compute_hmac_md5()