Lines Matching defs:ipad
207 /* SSL MAC is HASH(key + opad + HASH(key + ipad + data)) */
273 /* SSL MAC is HASH(key + opad + HASH(key + ipad + data)) */
687 * ipad and opad.
690 md5_hmac_ctx_init(md5_hc_ctx_t *md5_hmac_ctx, uint32_t *ipad, uint32_t *opad)
693 /* XOR key with ipad (0x36) and opad (0x5c) */
695 ipad[i] ^= 0x36363636;
698 SOFT_MAC_INIT_CTX(MD5, md5_hmac_ctx, ipad, opad, MD5_HMAC_BLOCK_SIZE);
702 sha1_hmac_ctx_init(sha1_hc_ctx_t *sha1_hmac_ctx, uint32_t *ipad, uint32_t *opad)
705 /* XOR key with ipad (0x36) and opad (0x5c) */
707 ipad[i] ^= 0x36363636;
710 SOFT_MAC_INIT_CTX(SHA1, sha1_hmac_ctx, (const uchar_t *)ipad,
716 sha2_hmac_ctx_init(uint_t mech, sha2_hc_ctx_t *ctx, uint64_t *ipad,
721 /* XOR key with ipad (0x36) and opad (0x5c) */
723 ipad[i] ^= 0x3636363636363636ULL;
727 /* perform SHA2 on ipad */
729 SHA2Update(&ctx->hc_icontext, (uint8_t *)ipad, block_size);