Lines Matching defs:ipad
37 uint8_t ipad[PSA_HMAC_MAX_HASH_BLOCK_SIZE];
48 /* The size checks against the ipad and opad buffers cannot be written
49 * `block_size > sizeof( ipad ) || block_size > sizeof( hmac->opad )`
51 if (block_size > sizeof(ipad)) {
63 ipad, sizeof(ipad), &key_length);
73 memcpy(ipad, key, key_length);
76 /* ipad contains the key followed by garbage. Xor and fill with 0x36
77 * to create the ipad value. */
79 ipad[i] ^= 0x36;
81 memset(ipad + key_length, 0x36, block_size - key_length);
83 /* Copy the key material from ipad to opad, flipping the requisite bits,
86 hmac->opad[i] = ipad[i] ^ 0x36 ^ 0x5C;
95 status = psa_hash_update(&hmac->hash_ctx, ipad, block_size);
98 mbedtls_platform_zeroize(ipad, sizeof(ipad));