| /linux/security/keys/ |
| H A D | request_key_auth.c | 129 struct request_key_auth *request_key_auth_get(struct key *authkey) in request_key_auth_get() argument 133 down_read(&authkey->sem); in request_key_auth_get() 134 rka = dereference_key_locked(authkey); in request_key_auth_get() 135 if (rka && !test_bit(KEY_FLAG_REVOKED, &authkey->flags)) in request_key_auth_get() 139 up_read(&authkey->sem); in request_key_auth_get() 201 struct key *authkey = NULL; in request_key_auth_new() local 251 authkey = key_alloc(&key_type_request_key_auth, desc, in request_key_auth_new() 255 if (IS_ERR(authkey)) { in request_key_auth_new() 256 ret = PTR_ERR(authkey); in request_key_auth_new() 261 ret = key_instantiate_and_link(authkey, rka, 0, NULL, NULL); in request_key_auth_new() [all …]
|
| H A D | request_key.c | 52 * @authkey: The authorisation key. 59 void complete_request_key(struct key *authkey, int error) in complete_request_key() argument 61 struct request_key_auth *rka = get_request_key_auth(authkey); in complete_request_key() 64 kenter("%d{%d},%d", authkey->serial, key->serial, error); in complete_request_key() 67 key_negate_and_link(key, key_negative_timeout, NULL, authkey); in complete_request_key() 69 key_revoke(authkey); in complete_request_key() 118 static int call_sbin_request_key(struct key *authkey, void *aux) in call_sbin_request_key() argument 121 struct request_key_auth *rka = get_request_key_auth(authkey); in call_sbin_request_key() 130 kenter("{%d},{%d},%s", key->serial, authkey->serial, rka->op); in call_sbin_request_key() 150 ret = key_link(keyring, authkey); in call_sbin_request_key() 231 struct key *authkey; construct_key() local 269 struct key *dest_keyring = *_dest_keyring, *authkey; construct_get_dest_keyring() local [all...] |
| H A D | key.c | 433 struct key *authkey, in __key_instantiate_and_link() 470 if (authkey) in __key_instantiate_and_link() 471 key_invalidate(authkey); in __key_instantiate_and_link() 494 * @authkey: The authorisation token permitting instantiation. 510 struct key *authkey) in key_instantiate_and_link() 565 ret = __key_instantiate_and_link(key, &prep, keyring, authkey, &edit); 588 * @authkey: The authorisation token permitting instantiation. in key_reject_and_link() 610 struct key *authkey) in key_reject_and_link() 672 if (authkey) 673 key_invalidate(authkey); in key_lookup() 430 __key_instantiate_and_link(struct key * key,struct key_preparsed_payload * prep,struct key * keyring,struct key * authkey,struct assoc_array_edit ** _edit) __key_instantiate_and_link() argument 503 key_instantiate_and_link(struct key * key,const void * data,size_t datalen,struct key * keyring,struct key * authkey) key_instantiate_and_link() argument 579 key_reject_and_link(struct key * key,unsigned timeout,unsigned error,struct key * keyring,struct key * authkey) key_reject_and_link() argument [all...] |
| H A D | keyctl.c | 1529 struct key *authkey; in keyctl_assume_authority() 1548 authkey = key_get_instantiation_authkey(id); in keyctl_assume_authority() 1549 if (IS_ERR(authkey)) { in keyctl_assume_authority() 1550 ret = PTR_ERR(authkey); 1554 ret = keyctl_change_reqkey_auth(authkey); 1556 ret = authkey->serial; 1557 key_put(authkey); 1518 struct key *authkey; keyctl_assume_authority() local
|
| /linux/fs/nfs/ |
| H A D | nfs4idmap.c | 64 struct key *authkey; member 554 complete_request_key(data->authkey, ret); in nfs_idmap_complete_pipe_upcall() 555 key_put(data->authkey); in nfs_idmap_complete_pipe_upcall() 567 static int nfs_idmap_legacy_upcall(struct key *authkey, void *aux) in nfs_idmap_legacy_upcall() argument 570 struct request_key_auth *rka = get_request_key_auth(authkey); in nfs_idmap_legacy_upcall() 589 data->authkey = key_get(authkey); in nfs_idmap_legacy_upcall() 607 complete_request_key(authkey, ret); in nfs_idmap_legacy_upcall() 611 static int nfs_idmap_instantiate(struct key *key, struct key *authkey, char *data, size_t datalen) in nfs_idmap_instantiate() argument 615 authkey); in nfs_idmap_instantiate() 620 struct key *key, struct key *authkey) in nfs_idmap_read_and_verify_message() argument [all …]
|
| /linux/include/linux/ |
| H A D | key-type.h | 140 * - authkey is the authority to assume when instantiating this key 179 struct key *authkey); 184 struct key *authkey); 185 extern void complete_request_key(struct key *authkey, int error); 190 struct key *authkey) in key_negate_and_link() 192 return key_reject_and_link(key, timeout, ENOKEY, keyring, authkey); in key_negate_and_link() 189 key_negate_and_link(struct key * key,unsigned timeout,struct key * keyring,struct key * authkey) key_negate_and_link() argument
|
| /linux/drivers/crypto/ |
| H A D | sa2ul.h | 314 u8 authkey[SHA512_BLOCK_SIZE]; global() member
|
| H A D | talitos.c | 978 memcpy(ctx->key, keys.authkey, keys.authkeylen); in aead_setkey() 1018 memcpy(ctx->key, keys.authkey, keys.authkeylen); in aead_des3_setkey()
|
| H A D | atmel-aes.c | 1916 keys.authkey, keys.authkeylen, in atmel_aes_authenc_setkey()
|
| /linux/crypto/ |
| H A D | authenc.c | 75 keys->authkey = key; in crypto_authenc_extractkeys() 97 err = crypto_ahash_setkey(auth, keys.authkey, keys.authkeylen); in crypto_authenc_setkey()
|
| H A D | essiv.c | 115 crypto_shash_finup(desc, keys.authkey, keys.authkeylen, salt); in essiv_aead_setkey()
|
| /linux/drivers/crypto/bcm/ |
| H A D | cipher.h | 183 u8 authkey[MAX_KEY_SIZE + ARC4_STATE_SIZE]; member
|
| /linux/net/sctp/ |
| H A D | socket.c | 3694 struct sctp_authkey *authkey, in sctp_setsockopt_auth_key() 3703 /* authkey->sca_keylength is u16, so optlen can't be bigger than 3706 optlen = min_t(unsigned int, optlen, USHRT_MAX + sizeof(*authkey)); 3708 if (authkey->sca_keylength > optlen - sizeof(*authkey)) in sctp_setsockopt_active_key() 3711 asoc = sctp_id2assoc(sk, authkey->sca_assoc_id); in sctp_setsockopt_active_key() 3712 if (!asoc && authkey->sca_assoc_id > SCTP_ALL_ASSOC && in sctp_setsockopt_active_key() 3717 ret = sctp_auth_set_key(ep, asoc, authkey); in sctp_setsockopt_active_key() 3722 authkey->sca_assoc_id = SCTP_FUTURE_ASSOC; in sctp_setsockopt_active_key() 3724 if (authkey in sctp_setsockopt_active_key() 3648 sctp_setsockopt_auth_key(struct sock * sk,struct sctp_authkey * authkey,unsigned int optlen) sctp_setsockopt_auth_key() argument [all...] |
| /linux/drivers/crypto/marvell/octeontx/ |
| H A D | otx_cptvf_algs.c | 762 ret = crypto_shash_digest(&ctx->sdesc->shash, keys->authkey, in aead_hmac_init() 768 memcpy(ctx->key, keys->authkey, authkeylen); in aead_hmac_init()
|
| /linux/Documentation/security/keys/ |
| H A D | core.rst | 1681 * ``struct key *authkey;``
|