Home
last modified time | relevance | path

Searched refs:k_opad (Results 1 – 6 of 6) sorted by relevance

/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dcram_md5.c22 unsigned char k_opad[65]; in hmac_md5() local
37 bzero(k_opad, sizeof (k_opad)); in hmac_md5()
39 bcopy(key, k_opad, key_len); in hmac_md5()
43 k_opad[i] ^= 0x5c; in hmac_md5()
54 (void) MD5Update(&context, k_opad, 64); in hmac_md5()
/illumos-gate/usr/src/lib/libsasl/lib/
H A Dmd5.c372 unsigned char k_opad[65]; /* outer padding - in _sasl_hmac_md5_init() local
403 MD5_memset(k_opad, '\0', sizeof k_opad); in _sasl_hmac_md5_init()
405 MD5_memcpy( k_opad, key, key_len); in _sasl_hmac_md5_init()
410 k_opad[i] ^= 0x5c; in _sasl_hmac_md5_init()
417 _sasl_MD5Update(&hmac->octx, k_opad, 64); /* apply outer pad */ in _sasl_hmac_md5_init()
421 MD5_memset(&k_opad, 0, sizeof(k_opad)); in _sasl_hmac_md5_init()
487 unsigned char k_opad[65]; /* outer padding - local
518 MD5_memset(k_opad, '\0', sizeof k_opad);
520 MD5_memcpy( k_opad, key, key_len);
525 k_opad[i] ^= 0x5c;
[all …]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dmech_md5.c335 CK_BYTE k_opad[MD5_BLOCK_SIZE]; in md5_hmac_sign() local
400 k_opad[i] = hash[i] ^ 0x5C; in md5_hmac_sign()
404 (void) memset(&k_opad[i], 0x5C, MD5_BLOCK_SIZE - i); in md5_hmac_sign()
410 k_opad[i] = key[i] ^ 0x5C; in md5_hmac_sign()
414 (void) memset(&k_opad[i], 0x5C, MD5_BLOCK_SIZE - key_bytes); in md5_hmac_sign()
458 k_opad, MD5_BLOCK_SIZE); in md5_hmac_sign()
H A Dmech_sha.c69 CK_BYTE k_opad[SHA1_BLOCK_SIZE]; in sha1_hmac_sign() local
131 k_opad[i] = hash[i] ^ 0x5C; in sha1_hmac_sign()
135 (void) memset(&k_opad[i], 0x5C, SHA1_BLOCK_SIZE - i); in sha1_hmac_sign()
141 k_opad[i] = key[i] ^ 0x5C; in sha1_hmac_sign()
145 (void) memset(&k_opad[i], 0x5C, SHA1_BLOCK_SIZE - key_bytes); in sha1_hmac_sign()
187 k_opad, SHA1_BLOCK_SIZE); in sha1_hmac_sign()
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dntlm.c324 uchar_t k_opad[64]; /* outer padding - key XORd with opad */ in HMACT64() local
344 bzero(k_opad, sizeof (k_opad)); in HMACT64()
346 bcopy(key, k_opad, key_len); in HMACT64()
351 k_opad[i] ^= 0x5c; in HMACT64()
366 MD5Update(&context, k_opad, 64); /* start with outer pad */ in HMACT64()
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_cookie.c71 uchar_t k_opad[65]; /* outer padding - key XORd with opad */ in hmac_md5() local
100 bzero(k_opad, sizeof (k_opad)); in hmac_md5()
102 bcopy(key, k_opad, key_len); in hmac_md5()
107 k_opad[i] ^= 0x5c; in hmac_md5()
122 MD5Update(&context, k_opad, 64); /* start with outer pad */ in hmac_md5()