Home
last modified time | relevance | path

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

/linux/security/keys/encrypted-keys/
H A Dencrypted.c276 static char *datablob_format(struct encrypted_key_payload *epayload, in datablob_format() argument
280 u8 *iv = epayload->iv; in datablob_format()
291 len = sprintf(ascii_buf, "%s %s %s ", epayload->format, in datablob_format()
292 epayload->master_desc, epayload->datalen); in datablob_format()
416 static struct key *request_master_key(struct encrypted_key_payload *epayload, in request_master_key() argument
421 if (!strncmp(epayload->master_desc, KEY_TRUSTED_PREFIX, in request_master_key()
423 mkey = request_trusted_key(epayload->master_desc + in request_master_key()
426 } else if (!strncmp(epayload->master_desc, KEY_USER_PREFIX, in request_master_key()
428 mkey = request_user_key(epayload->master_desc + in request_master_key()
439 epayload->master_desc); in request_master_key()
[all …]
H A Dencrypted.h26 static inline void dump_decrypted_data(struct encrypted_key_payload *epayload) in dump_decrypted_data() argument
29 epayload->decrypted_data, in dump_decrypted_data()
30 epayload->decrypted_datalen, 0); in dump_decrypted_data()
33 static inline void dump_encrypted_data(struct encrypted_key_payload *epayload, in dump_encrypted_data() argument
37 epayload->encrypted_data, encrypted_datalen, 0); in dump_encrypted_data()
53 static inline void dump_decrypted_data(struct encrypted_key_payload *epayload) in dump_decrypted_data() argument
57 static inline void dump_encrypted_data(struct encrypted_key_payload *epayload, in dump_encrypted_data() argument
/linux/drivers/nvdimm/
H A Dsecurity.c29 struct encrypted_key_payload *epayload = dereference_key_locked(key); in key_data() local
33 return epayload->decrypted_data; in key_data()
66 struct encrypted_key_payload *epayload; in nvdimm_request_key() local
69 epayload = dereference_key_locked(key); in nvdimm_request_key()
70 if (epayload->decrypted_datalen != NVDIMM_PASSPHRASE_LEN) { in nvdimm_request_key()
95 struct encrypted_key_payload *epayload; in nvdimm_lookup_user_key() local
111 epayload = dereference_key_locked(key); in nvdimm_lookup_user_key()
112 if (epayload->decrypted_datalen != NVDIMM_PASSPHRASE_LEN) { in nvdimm_lookup_user_key()