Home
last modified time | relevance | path

Searched refs:authkey (Results 1 – 19 of 19) sorted by relevance

/linux-4.1.27/security/keys/
Drequest_key_auth.c152 struct key *authkey = NULL; in request_key_auth_new() local
202 authkey = key_alloc(&key_type_request_key_auth, desc, in request_key_auth_new()
206 if (IS_ERR(authkey)) { in request_key_auth_new()
207 ret = PTR_ERR(authkey); in request_key_auth_new()
212 ret = key_instantiate_and_link(authkey, rka, 0, NULL, NULL); in request_key_auth_new()
216 kleave(" = {%d,%d}", authkey->serial, atomic_read(&authkey->usage)); in request_key_auth_new()
217 return authkey; in request_key_auth_new()
227 key_revoke(authkey); in request_key_auth_new()
228 key_put(authkey); in request_key_auth_new()
254 struct key *authkey; in key_get_instantiation_authkey() local
[all …]
Drequest_key.c35 kenter("{%d,%d},%d", cons->key->serial, cons->authkey->serial, error); in complete_request_key()
39 cons->authkey); in complete_request_key()
41 key_revoke(cons->authkey); in complete_request_key()
44 key_put(cons->authkey); in complete_request_key()
100 struct key *key = cons->key, *authkey = cons->authkey, *keyring, in call_sbin_request_key() local
107 kenter("{%d},{%d},%s", key->serial, authkey->serial, op); in call_sbin_request_key()
127 ret = key_link(keyring, authkey); in call_sbin_request_key()
209 struct key *authkey; in construct_key() local
219 authkey = request_key_auth_new(key, callout_info, callout_len, in construct_key()
221 if (IS_ERR(authkey)) { in construct_key()
[all …]
Dkey.c405 struct key *authkey, in __key_instantiate_and_link() argument
436 if (authkey) in __key_instantiate_and_link()
437 key_revoke(authkey); in __key_instantiate_and_link()
475 struct key *authkey) in key_instantiate_and_link() argument
498 ret = __key_instantiate_and_link(key, &prep, keyring, authkey, &edit); in key_instantiate_and_link()
536 struct key *authkey) in key_reject_and_link() argument
575 if (authkey) in key_reject_and_link()
576 key_revoke(authkey); in key_reject_and_link()
Dkeyctl.c1356 struct key *authkey; in keyctl_assume_authority() local
1375 authkey = key_get_instantiation_authkey(id); in keyctl_assume_authority()
1376 if (IS_ERR(authkey)) { in keyctl_assume_authority()
1377 ret = PTR_ERR(authkey); in keyctl_assume_authority()
1381 ret = keyctl_change_reqkey_auth(authkey); in keyctl_assume_authority()
1384 key_put(authkey); in keyctl_assume_authority()
1386 ret = authkey->serial; in keyctl_assume_authority()
/linux-4.1.27/drivers/crypto/qce/
Dsha.h27 u8 authkey[QCE_SHA_MAX_BLOCKSIZE]; member
65 u8 *authkey; member
Dsha.c88 rctx->authkey = ctx->authkey; in qce_ahash_async_req_handle()
91 rctx->authkey = ctx->authkey; in qce_ahash_async_req_handle()
382 memset(ctx->authkey, 0, sizeof(ctx->authkey)); in qce_ahash_hmac_setkey()
385 memcpy(ctx->authkey, key, keylen); in qce_ahash_hmac_setkey()
420 ahash_request_set_crypt(req, &sg, ctx->authkey, keylen); in qce_ahash_hmac_setkey()
Dcommon.c265 qce_cpu_to_be32p_array(mackey, rctx->authkey, rctx->authklen); in qce_setup_regs_ahash()
/linux-4.1.27/include/crypto/
Dauthenc.h27 const u8 *authkey; member
/linux-4.1.27/fs/nfs/
Dnfs4idmap.c617 static int nfs_idmap_instantiate(struct key *key, struct key *authkey, char *data, size_t datalen) in nfs_idmap_instantiate() argument
621 authkey); in nfs_idmap_instantiate()
626 struct key *key, struct key *authkey) in nfs_idmap_read_and_verify_message() argument
641 ret = nfs_idmap_instantiate(key, authkey, id_str, len); in nfs_idmap_read_and_verify_message()
647 ret = nfs_idmap_instantiate(key, authkey, im->im_name, len); in nfs_idmap_read_and_verify_message()
698 cons->key, cons->authkey); in idmap_pipe_downcall()
/linux-4.1.27/include/linux/
Dkey-type.h26 struct key *authkey;/* authorisation for key being constructed */ member
/linux-4.1.27/drivers/crypto/
Dixp4xx_crypto.c182 u8 authkey[MAX_KEYLEN]; member
1115 ret = setup_auth(&tfm->base, 0, authsize, ctx->authkey, in aead_setup()
1119 ret = setup_auth(&tfm->base, 1, authsize, ctx->authkey, in aead_setup()
1156 if (keys.authkeylen > sizeof(ctx->authkey)) in aead_setkey()
1162 memcpy(ctx->authkey, keys.authkey, keys.authkeylen); in aead_setkey()
Dpicoxcell_crypto.c519 memcpy(ctx->hash_ctx, keys.authkey, keys.authkeylen); in spacc_aead_setkey()
Dtalitos.c691 memcpy(ctx->key, keys.authkey, keys.authkeylen); in aead_setkey()
/linux-4.1.27/crypto/
Dauthenc.c78 keys->authkey = key; in crypto_authenc_extractkeys()
100 err = crypto_ahash_setkey(auth, keys.authkey, keys.authkeylen); in crypto_authenc_setkey()
Dauthencesn.c74 err = crypto_ahash_setkey(auth, keys.authkey, keys.authkeylen); in crypto_authenc_esn_setkey()
/linux-4.1.27/net/sctp/
Dsocket.c3466 struct sctp_authkey *authkey; in sctp_setsockopt_auth_key() local
3476 authkey = memdup_user(optval, optlen); in sctp_setsockopt_auth_key()
3477 if (IS_ERR(authkey)) in sctp_setsockopt_auth_key()
3478 return PTR_ERR(authkey); in sctp_setsockopt_auth_key()
3480 if (authkey->sca_keylength > optlen - sizeof(struct sctp_authkey)) { in sctp_setsockopt_auth_key()
3485 asoc = sctp_id2assoc(sk, authkey->sca_assoc_id); in sctp_setsockopt_auth_key()
3486 if (!asoc && authkey->sca_assoc_id && sctp_style(sk, UDP)) { in sctp_setsockopt_auth_key()
3491 ret = sctp_auth_set_key(ep, asoc, authkey); in sctp_setsockopt_auth_key()
3493 kzfree(authkey); in sctp_setsockopt_auth_key()
/linux-4.1.27/drivers/crypto/qat/qat_common/
Dqat_algs.c308 if (qat_alg_do_precomputes(hash, ctx, keys->authkey, keys->authkeylen)) in qat_alg_aead_init_enc_session()
394 if (qat_alg_do_precomputes(hash, ctx, keys->authkey, keys->authkeylen)) in qat_alg_aead_init_dec_session()
/linux-4.1.27/drivers/crypto/caam/
Dcaamalg.c1684 ret = gen_split_aead_key(ctx, keys.authkey, keys.authkeylen); in aead_setkey()
/linux-4.1.27/Documentation/security/
Dkeys.txt1366 (*) struct key *authkey;