Home
last modified time | relevance | path

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

/mbedtls-latest/library/
Dssl_msg.c91 unsigned char key_buf[MAX_HASH_BLOCK_LENGTH]; in mbedtls_ct_hmac() local
116 PSA_CHK(psa_export_key(key, key_buf, block_size, &mac_key_length)); in mbedtls_ct_hmac()
120 key_buf[i] = (unsigned char) (key_buf[i] ^ 0x36); in mbedtls_ct_hmac()
123 key_buf[i] = 0x36; in mbedtls_ct_hmac()
129 PSA_CHK(psa_hash_update(&operation, key_buf, block_size)); in mbedtls_ct_hmac()
158 key_buf[i] = (unsigned char) ((key_buf[i] ^ 0x36) ^ 0x5C); in mbedtls_ct_hmac()
161 key_buf[i] = 0x5C; in mbedtls_ct_hmac()
166 PSA_CHK(psa_hash_update(&operation, key_buf, block_size)); in mbedtls_ct_hmac()
173 mbedtls_platform_zeroize(key_buf, MAX_HASH_BLOCK_LENGTH); in mbedtls_ct_hmac()