Lines Matching refs:derived_key

355 static int get_derived_key(u8 *derived_key, enum derived_key_type key_type,  in get_derived_key()  argument
378 derived_key); in get_derived_key()
453 const u8 *derived_key, in derived_key_encrypt() argument
466 req = init_skcipher_req(derived_key, derived_keylen); in derived_key_encrypt()
497 u8 derived_key[HASH_SIZE]; in datablob_hmac_append() local
501 ret = get_derived_key(derived_key, AUTH_KEY, master_key, master_keylen); in datablob_hmac_append()
506 ret = calc_hmac(digest, derived_key, sizeof derived_key, in datablob_hmac_append()
511 memzero_explicit(derived_key, sizeof(derived_key)); in datablob_hmac_append()
520 u8 derived_key[HASH_SIZE]; in datablob_hmac_verify() local
526 ret = get_derived_key(derived_key, AUTH_KEY, master_key, master_keylen); in datablob_hmac_verify()
537 ret = calc_hmac(digest, derived_key, sizeof derived_key, p, len); in datablob_hmac_verify()
550 memzero_explicit(derived_key, sizeof(derived_key)); in datablob_hmac_verify()
555 const u8 *derived_key, in derived_key_decrypt() argument
573 req = init_skcipher_req(derived_key, derived_keylen); in derived_key_decrypt()
685 u8 derived_key[HASH_SIZE]; in encrypted_key_decrypt() local
724 ret = get_derived_key(derived_key, ENC_KEY, master_key, master_keylen); in encrypted_key_decrypt()
728 ret = derived_key_decrypt(epayload, derived_key, sizeof derived_key); in encrypted_key_decrypt()
734 memzero_explicit(derived_key, sizeof(derived_key)); in encrypted_key_decrypt()
940 char derived_key[HASH_SIZE]; in encrypted_read() local
959 ret = get_derived_key(derived_key, ENC_KEY, master_key, master_keylen); in encrypted_read()
963 ret = derived_key_encrypt(epayload, derived_key, sizeof derived_key); in encrypted_read()
979 memzero_explicit(derived_key, sizeof(derived_key)); in encrypted_read()
988 memzero_explicit(derived_key, sizeof(derived_key)); in encrypted_read()