Searched refs:prk (Results 1 – 3 of 3) sorted by relevance
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | hkdf.c | 34 unsigned char prk[MBEDTLS_MD_MAX_SIZE]; in mbedtls_hkdf() local 36 ret = mbedtls_hkdf_extract( md, salt, salt_len, ikm, ikm_len, prk ); in mbedtls_hkdf() 40 ret = mbedtls_hkdf_expand( md, prk, mbedtls_md_get_size( md ), in mbedtls_hkdf() 44 mbedtls_platform_zeroize( prk, sizeof( prk ) ); in mbedtls_hkdf() 52 unsigned char *prk ) in mbedtls_hkdf_extract() argument 76 return( mbedtls_md_hmac( md, salt, salt_len, ikm, ikm_len, prk ) ); in mbedtls_hkdf_extract() 79 int mbedtls_hkdf_expand( const mbedtls_md_info_t *md, const unsigned char *prk, in mbedtls_hkdf_expand() argument 144 ret = mbedtls_md_hmac_starts( &ctx, prk, prk_len ); in mbedtls_hkdf_expand()
|
/optee_os-3.20.0/core/tee/ |
A D | tee_cryp_hkdf.c | 18 size_t salt_len, uint8_t *prk, size_t *prk_len) in hkdf_extract() argument 55 res = crypto_mac_final(ctx, prk, *prk_len); in hkdf_extract() 65 static TEE_Result hkdf_expand(uint32_t hash_id, const uint8_t *prk, in hkdf_expand() argument 118 res = crypto_mac_init(ctx, prk, prk_len); in hkdf_expand() 150 uint8_t prk[TEE_MAX_HASH_SIZE]; in tee_cryp_hkdf() local 151 size_t prk_len = sizeof(prk); in tee_cryp_hkdf() 153 res = hkdf_extract(hash_id, ikm, ikm_len, salt, salt_len, prk, in tee_cryp_hkdf() 157 res = hkdf_expand(hash_id, prk, prk_len, info, info_len, okm, in tee_cryp_hkdf()
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | hkdf.h | 104 unsigned char *prk ); 132 int mbedtls_hkdf_expand( const mbedtls_md_info_t *md, const unsigned char *prk,
|
Completed in 3 milliseconds