Searched refs:opad (Results 1 – 6 of 6) sorted by relevance
| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | psa_crypto_mac.c | 27 mbedtls_platform_zeroize(hmac->opad, sizeof(hmac->opad)); in psa_hmac_abort_internal() 54 if (block_size > sizeof(hmac->opad)) { 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_size); in psa_hmac_finish_internal()
|
| H A D | md.c | 976 unsigned char *ipad, *opad; in mbedtls_md_hmac_starts() local 998 opad = (unsigned char *) ctx->hmac_ctx + ctx->md_info->block_size; in mbedtls_md_hmac_starts() 1001 memset(opad, 0x5C, ctx->md_info->block_size); in mbedtls_md_hmac_starts() 1004 mbedtls_xor(opad, opad, key, keylen); in mbedtls_md_hmac_starts() 1033 unsigned char *opad; in mbedtls_md_hmac_finish() local 1039 opad = (unsigned char *) ctx->hmac_ctx + ctx->md_info->block_size; in mbedtls_md_hmac_finish() 1047 if ((ret = mbedtls_md_update(ctx, opad, in mbedtls_md_hmac_finish()
|
| /optee_os/core/crypto/ |
| H A D | sm3.h | 23 uint8_t opad[64]; /* HMAC: outer padding */ member
|
| H A D | sm3.c | 279 memset(ctx->opad, 0x5C, 64); in sm3_hmac_init() 283 ctx->opad[i] ^= key[i]; in sm3_hmac_init() 303 sm3_update(ctx, ctx->opad, 64); in sm3_hmac_final()
|
| /optee_os/lib/libmbedtls/mbedtls/include/psa/ |
| H A D | crypto_builtin_composites.h | 51 uint8_t MBEDTLS_PRIVATE(opad)[PSA_HMAC_MAX_HASH_BLOCK_SIZE];
|
| /optee_os/lib/libmbedtls/mbedtls/ |
| H A D | ChangeLog | 6280 required HMAC ipad and opad variables are not cleared.
|