Lines Matching refs:master_key
307 static struct key *request_user_key(const char *master_desc, const u8 **master_key, in request_user_key() argument
326 *master_key = upayload->data; in request_user_key()
356 const u8 *master_key, size_t master_keylen) in get_derived_key() argument
375 memcpy(derived_buf + strlen(derived_buf) + 1, master_key, in get_derived_key()
417 const u8 **master_key, size_t *master_keylen) in request_master_key() argument
425 master_key, master_keylen); in request_master_key()
430 master_key, master_keylen); in request_master_key()
446 dump_master_key(*master_key, *master_keylen); in request_master_key()
495 const u8 *master_key, size_t master_keylen) in datablob_hmac_append() argument
501 ret = get_derived_key(derived_key, AUTH_KEY, master_key, master_keylen); in datablob_hmac_append()
517 const u8 *format, const u8 *master_key, in datablob_hmac_verify() argument
526 ret = get_derived_key(derived_key, AUTH_KEY, master_key, master_keylen); in datablob_hmac_verify()
686 const u8 *master_key; in encrypted_key_decrypt() local
714 mkey = request_master_key(epayload, &master_key, &master_keylen); in encrypted_key_decrypt()
718 ret = datablob_hmac_verify(epayload, format, master_key, master_keylen); in encrypted_key_decrypt()
724 ret = get_derived_key(derived_key, ENC_KEY, master_key, master_keylen); in encrypted_key_decrypt()
938 const u8 *master_key; in encrypted_read() local
955 mkey = request_master_key(epayload, &master_key, &master_keylen); in encrypted_read()
959 ret = get_derived_key(derived_key, ENC_KEY, master_key, master_keylen); in encrypted_read()
967 ret = datablob_hmac_append(epayload, master_key, master_keylen); in encrypted_read()