Lines Matching refs:ipad
205 /* SSL MAC is HASH(key + opad + HASH(key + ipad + data)) */
271 /* SSL MAC is HASH(key + opad + HASH(key + ipad + data)) */
641 * the ipad and opad
644 md5_hmac_ctx_init(md5_hc_ctx_t *md5_hmac_ctx, uint32_t *ipad, uint32_t *opad)
647 /* XOR key with ipad (0x36) and opad (0x5c) */
649 ipad[i] ^= 0x36363636;
652 SOFT_MAC_INIT_CTX(MD5, md5_hmac_ctx, ipad, opad, MD5_HMAC_BLOCK_SIZE);
656 sha1_hmac_ctx_init(sha1_hc_ctx_t *sha1_hmac_ctx, uint32_t *ipad, uint32_t *opad)
659 /* XOR key with ipad (0x36) and opad (0x5c) */
661 ipad[i] ^= 0x36363636;
664 SOFT_MAC_INIT_CTX(SHA1, sha1_hmac_ctx, (const uchar_t *)ipad,
670 sha2_hmac_ctx_init(uint_t mech, sha2_hc_ctx_t *ctx, uint64_t *ipad,
675 /* XOR key with ipad (0x36) and opad (0x5c) */
677 ipad[i] ^= 0x3636363636363636ULL;
681 /* perform SHA2 on ipad */
683 SHA2Update(&ctx->hc_icontext, (uint8_t *)ipad, block_size);