Home
last modified time | relevance | path

Searched refs:opad (Results 1 – 4 of 4) sorted by relevance

/optee_os/lib/libmbedtls/mbedtls/library/
A Dmd.c706 unsigned char *ipad, *opad; in mbedtls_md_hmac_starts() local
726 opad = (unsigned char *) ctx->hmac_ctx + ctx->md_info->block_size; in mbedtls_md_hmac_starts()
729 memset( opad, 0x5C, ctx->md_info->block_size ); in mbedtls_md_hmac_starts()
734 opad[i] = (unsigned char)( opad[i] ^ key[i] ); in mbedtls_md_hmac_starts()
761 unsigned char *opad; in mbedtls_md_hmac_finish() local
766 opad = (unsigned char *) ctx->hmac_ctx + ctx->md_info->block_size; in mbedtls_md_hmac_finish()
772 if( ( ret = mbedtls_md_update( ctx, opad, in mbedtls_md_hmac_finish()
/optee_os/core/crypto/
A Dsm3.h23 uint8_t opad[64]; /* HMAC: outer padding */ member
A Dsm3.c249 memset(ctx->opad, 0x5C, 64); in sm3_hmac_init()
253 ctx->opad[i] ^= key[i]; in sm3_hmac_init()
273 sm3_update(ctx, ctx->opad, 64); in sm3_hmac_final()
/optee_os/lib/libmbedtls/mbedtls/
A DChangeLog4176 required HMAC ipad and opad variables are not cleared.

Completed in 10 milliseconds