Searched refs:ipad (Results 1 - 2 of 2) sorted by relevance
/third_party/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 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() 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() 76 /* ipad contains the key followed by garbage. Xor and fill with 0x36 in psa_hmac_setup_internal() 77 * to create the ipad value. */ in psa_hmac_setup_internal() 79 ipad[ in psa_hmac_setup_internal() [all...] |
H A D | md.c | 973 unsigned char *ipad, *opad; in mbedtls_md_hmac_starts() local 994 ipad = (unsigned char *) ctx->hmac_ctx; in mbedtls_md_hmac_starts() 997 memset(ipad, 0x36, ctx->md_info->block_size); in mbedtls_md_hmac_starts() 1000 mbedtls_xor(ipad, ipad, key, keylen); in mbedtls_md_hmac_starts() 1006 if ((ret = mbedtls_md_update(ctx, ipad, in mbedtls_md_hmac_starts() 1058 unsigned char *ipad; in mbedtls_md_hmac_reset() local 1064 ipad = (unsigned char *) ctx->hmac_ctx; in mbedtls_md_hmac_reset() 1069 return mbedtls_md_update(ctx, ipad, ctx->md_info->block_size); in mbedtls_md_hmac_reset()
|
Completed in 3 milliseconds