Home
last modified time | relevance | path

Searched refs:opad (Results 1 - 3 of 3) sorted by relevance

/third_party/mbedtls/library/
H A Dpsa_crypto_mac.c27 mbedtls_platform_zeroize(hmac->opad, sizeof(hmac->opad)); in psa_hmac_abort_internal()
48 /* The size checks against the ipad and opad buffers cannot be written in psa_hmac_setup_internal()
49 * `block_size > sizeof( ipad ) || block_size > sizeof( hmac->opad )` in psa_hmac_setup_internal()
54 if (block_size > sizeof(hmac->opad)) { in psa_hmac_setup_internal()
83 /* Copy the key material from ipad to opad, flipping the requisite bits, in psa_hmac_setup_internal()
84 * and filling the rest of opad with the requisite constant. */ in psa_hmac_setup_internal()
86 hmac->opad[i] = ipad[i] ^ 0x36 ^ 0x5C; in psa_hmac_setup_internal()
88 memset(hmac->opad + key_length, 0x5C, block_size - key_length); in psa_hmac_setup_internal()
133 status = psa_hash_update(&hmac->hash_ctx, hmac->opad, block_siz in psa_hmac_finish_internal()
[all...]
H A Dmd.c973 unsigned char *ipad, *opad; in mbedtls_md_hmac_starts() local
995 opad = (unsigned char *) ctx->hmac_ctx + ctx->md_info->block_size; in mbedtls_md_hmac_starts()
998 memset(opad, 0x5C, ctx->md_info->block_size); in mbedtls_md_hmac_starts()
1001 mbedtls_xor(opad, opad, key, keylen); in mbedtls_md_hmac_starts()
1030 unsigned char *opad; in mbedtls_md_hmac_finish() local
1036 opad = (unsigned char *) ctx->hmac_ctx + ctx->md_info->block_size; in mbedtls_md_hmac_finish()
1044 if ((ret = mbedtls_md_update(ctx, opad, in mbedtls_md_hmac_finish()
/third_party/mbedtls/include/psa/
H A Dcrypto_builtin_composites.h51 uint8_t MBEDTLS_PRIVATE(opad)[PSA_HMAC_MAX_HASH_BLOCK_SIZE];

Completed in 3 milliseconds