Searched refs:ipad (Results 1 – 5 of 5) sorted by relevance
| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | psa_crypto_mac.c | 37 uint8_t ipad[PSA_HMAC_MAX_HASH_BLOCK_SIZE]; in psa_hmac_setup_internal() local 51 if (block_size > sizeof(ipad)) { in psa_hmac_setup_internal() 63 ipad, sizeof(ipad), &key_length); in psa_hmac_setup_internal() 73 memcpy(ipad, key, key_length); in psa_hmac_setup_internal() 79 ipad[i] ^= 0x36; in psa_hmac_setup_internal() 81 memset(ipad + key_length, 0x36, block_size - key_length); in psa_hmac_setup_internal() 86 hmac->opad[i] = ipad[i] ^ 0x36 ^ 0x5C; in psa_hmac_setup_internal() 95 status = psa_hash_update(&hmac->hash_ctx, ipad, block_size); in psa_hmac_setup_internal() 98 mbedtls_platform_zeroize(ipad, sizeof(ipad)); in psa_hmac_setup_internal()
|
| H A D | md.c | 976 unsigned char *ipad, *opad; in mbedtls_md_hmac_starts() local 997 ipad = (unsigned char *) ctx->hmac_ctx; in mbedtls_md_hmac_starts() 1000 memset(ipad, 0x36, ctx->md_info->block_size); in mbedtls_md_hmac_starts() 1003 mbedtls_xor(ipad, ipad, key, keylen); in mbedtls_md_hmac_starts() 1009 if ((ret = mbedtls_md_update(ctx, ipad, in mbedtls_md_hmac_starts() 1061 unsigned char *ipad; in mbedtls_md_hmac_reset() local 1067 ipad = (unsigned char *) ctx->hmac_ctx; in mbedtls_md_hmac_reset() 1072 return mbedtls_md_update(ctx, ipad, ctx->md_info->block_size); in mbedtls_md_hmac_reset()
|
| /optee_os/core/crypto/ |
| H A D | sm3.h | 22 uint8_t ipad[64]; /* HMAC: inner padding */ member
|
| H A D | sm3.c | 278 memset(ctx->ipad, 0x36, 64); in sm3_hmac_init() 282 ctx->ipad[i] ^= key[i]; in sm3_hmac_init() 287 sm3_update(ctx, ctx->ipad, 64); in sm3_hmac_init()
|
| /optee_os/lib/libmbedtls/mbedtls/ |
| H A D | ChangeLog | 6280 required HMAC ipad and opad variables are not cleared.
|