Home
last modified time | relevance | path

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

/linux/lib/
H A Ddigsig.c77 const struct user_key_payload *ukp; in digsig_verify_rsa() local
81 ukp = user_key_payload_locked(key); in digsig_verify_rsa()
83 if (!ukp) { in digsig_verify_rsa()
89 if (ukp->datalen < sizeof(*pkh)) in digsig_verify_rsa()
92 pkh = (struct pubkey_hdr *)ukp->data; in digsig_verify_rsa()
104 endp = ukp->data + ukp->datalen; in digsig_verify_rsa()
/linux/kernel/
H A Dcrash_dump_dm_crypt.c144 const struct user_key_payload *ukp; in read_key_from_user_keying() local
157 ukp = user_key_payload_locked(key); in read_key_from_user_keying()
158 if (!ukp) { in read_key_from_user_keying()
163 if (ukp->datalen > KEY_SIZE_MAX) { in read_key_from_user_keying()
164 pr_err("Key size %u exceeds maximum (%u)\n", ukp->datalen, KEY_SIZE_MAX); in read_key_from_user_keying()
169 memcpy(dm_key->data, ukp->data, ukp->datalen); in read_key_from_user_keying()
170 dm_key->key_size = ukp->datalen; in read_key_from_user_keying()
/linux/fs/crypto/
H A Dkeysetup_v1.c90 const struct user_key_payload *ukp; in find_and_lock_process_key() local
104 ukp = user_key_payload_locked(key); in find_and_lock_process_key()
106 if (!ukp) /* was the key revoked before we acquired its semaphore? */ in find_and_lock_process_key()
109 payload = (const struct fscrypt_key *)ukp->data; in find_and_lock_process_key()
111 if (ukp->datalen != sizeof(struct fscrypt_key) || in find_and_lock_process_key()
/linux/fs/ubifs/
H A Dauth.c258 const struct user_key_payload *ukp; in ubifs_init_authentication() local
294 ukp = user_key_payload_locked(keyring_key); in ubifs_init_authentication()
295 if (!ukp) { in ubifs_init_authentication()
332 err = crypto_shash_setkey(c->hmac_tfm, ukp->data, ukp->datalen); in ubifs_init_authentication()
/linux/fs/ecryptfs/
H A Decryptfs_kernel.h117 struct user_key_payload *ukp; in ecryptfs_get_key_payload_data() local
123 ukp = user_key_payload_locked(key); in ecryptfs_get_key_payload_data()
124 if (!ukp) in ecryptfs_get_key_payload_data()
127 return (struct ecryptfs_auth_tok *)ukp->data; in ecryptfs_get_key_payload_data()
/linux/crypto/
H A Daf_alg.c236 const struct user_key_payload *ukp; in key_data_ptr_user() local
238 ukp = user_key_payload_locked(key); in key_data_ptr_user()
239 if (IS_ERR_OR_NULL(ukp)) in key_data_ptr_user()
244 return ukp->data; in key_data_ptr_user()
/linux/drivers/md/
H A Ddm-crypt.c2474 const struct user_key_payload *ukp; in set_key_user() local
2476 ukp = user_key_payload_locked(key); in set_key_user()
2477 if (!ukp) in set_key_user()
2480 if (cc->key_size != ukp->datalen) in set_key_user()
2483 memcpy(cc->key, ukp->data, cc->key_size); in set_key_user()