Home
last modified time | relevance | path

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

/optee_os/lib/libmbedtls/mbedtls/library/
H A Dssl_msg.c92 unsigned char key_buf[MAX_HASH_BLOCK_LENGTH]; in mbedtls_ct_hmac() local
117 PSA_CHK(psa_export_key(key, key_buf, block_size, &mac_key_length)); in mbedtls_ct_hmac()
121 key_buf[i] = (unsigned char) (key_buf[i] ^ 0x36); in mbedtls_ct_hmac()
124 key_buf[i] = 0x36; in mbedtls_ct_hmac()
130 PSA_CHK(psa_hash_update(&operation, key_buf, block_size)); in mbedtls_ct_hmac()
159 key_buf[i] = (unsigned char) ((key_buf[i] ^ 0x36) ^ 0x5C); in mbedtls_ct_hmac()
162 key_buf[i] = 0x5C; in mbedtls_ct_hmac()
167 PSA_CHK(psa_hash_update(&operation, key_buf, block_size)); in mbedtls_ct_hmac()
174 mbedtls_platform_zeroize(key_buf, MAX_HASH_BLOCK_LENGTH); in mbedtls_ct_hmac()