Home
last modified time | relevance | path

Searched refs:inkey (Results 1 - 20 of 20) sorted by relevance

/kernel/linux/linux-6.6/net/sunrpc/auth_gss/
H A Dgss_krb5_keys.c151 const struct xdr_netobj *inkey, u8 *rawkey, in krb5_DK()
163 if (inkey->len != keylength) in krb5_DK()
170 if (crypto_sync_skcipher_setkey(cipher, inkey->data, inkey->len)) in krb5_DK()
257 * @inkey: base protocol key
268 const struct xdr_netobj *inkey, in krb5_derive_key_v2()
281 ret = krb5_DK(gk5e, inkey, inblock.data, label, gfp_mask); in krb5_derive_key_v2()
346 * @inkey: base protocol key
369 const struct xdr_netobj *inkey, in krb5_kdf_feedback_cmac()
391 ret = crypto_shash_setkey(tfm, inkey in krb5_kdf_feedback_cmac()
150 krb5_DK(const struct gss_krb5_enctype *gk5e, const struct xdr_netobj *inkey, u8 *rawkey, const struct xdr_netobj *in_constant, gfp_t gfp_mask) krb5_DK() argument
267 krb5_derive_key_v2(const struct gss_krb5_enctype *gk5e, const struct xdr_netobj *inkey, struct xdr_netobj *outkey, const struct xdr_netobj *label, gfp_t gfp_mask) krb5_derive_key_v2() argument
368 krb5_kdf_feedback_cmac(const struct gss_krb5_enctype *gk5e, const struct xdr_netobj *inkey, struct xdr_netobj *outkey, const struct xdr_netobj *constant, gfp_t gfp_mask) krb5_kdf_feedback_cmac() argument
500 krb5_kdf_hmac_sha2(const struct gss_krb5_enctype *gk5e, const struct xdr_netobj *inkey, struct xdr_netobj *outkey, const struct xdr_netobj *label, gfp_t gfp_mask) krb5_kdf_hmac_sha2() argument
[all...]
H A Dgss_krb5_internal.h107 const struct xdr_netobj *inkey,
113 const struct xdr_netobj *inkey,
119 const struct xdr_netobj *inkey,
127 * @inkey: base protocol key
139 const struct xdr_netobj *inkey, in krb5_derive_key()
153 return gk5e->derive_key(gk5e, inkey, outkey, &label, gfp_mask); in krb5_derive_key()
138 krb5_derive_key(struct krb5_ctx *kctx, const struct xdr_netobj *inkey, struct xdr_netobj *outkey, u32 usage, u8 seed, gfp_t gfp_mask) krb5_derive_key() argument
/kernel/linux/linux-5.10/net/sunrpc/auth_gss/
H A Dgss_krb5_keys.c142 const struct xdr_netobj *inkey, in krb5_derive_key()
157 if ((inkey->len != keylength) || (outkey->len != keylength)) in krb5_derive_key()
163 if (crypto_sync_skcipher_setkey(cipher, inkey->data, inkey->len)) in krb5_derive_key()
141 krb5_derive_key(const struct gss_krb5_enctype *gk5e, const struct xdr_netobj *inkey, struct xdr_netobj *outkey, const struct xdr_netobj *in_constant, gfp_t gfp_mask) krb5_derive_key() argument
/kernel/linux/linux-5.10/net/ceph/
H A Dcrypto.c107 int ceph_crypto_key_unarmor(struct ceph_crypto_key *key, const char *inkey) in ceph_crypto_key_unarmor() argument
109 int inlen = strlen(inkey); in ceph_crypto_key_unarmor()
114 dout("crypto_key_unarmor %s\n", inkey); in ceph_crypto_key_unarmor()
118 blen = ceph_unarmor(buf, inkey, inkey+inlen); in ceph_crypto_key_unarmor()
/kernel/linux/linux-6.6/net/ceph/
H A Dcrypto.c108 int ceph_crypto_key_unarmor(struct ceph_crypto_key *key, const char *inkey) in ceph_crypto_key_unarmor() argument
110 int inlen = strlen(inkey); in ceph_crypto_key_unarmor()
115 dout("crypto_key_unarmor %s\n", inkey); in ceph_crypto_key_unarmor()
119 blen = ceph_unarmor(buf, inkey, inkey+inlen); in ceph_crypto_key_unarmor()
/kernel/linux/linux-6.6/arch/arm64/crypto/
H A Dghash-ce-glue.c190 const u8 *inkey, unsigned int keylen) in ghash_setkey()
198 memcpy(&key->k, inkey, GHASH_BLOCK_SIZE); in ghash_setkey()
232 static int gcm_aes_setkey(struct crypto_aead *tfm, const u8 *inkey, in gcm_aes_setkey() argument
240 ret = aes_expandkey(&ctx->aes_key, inkey, keylen); in gcm_aes_setkey()
480 static int rfc4106_setkey(struct crypto_aead *tfm, const u8 *inkey, in rfc4106_setkey() argument
487 err = gcm_aes_setkey(tfm, inkey, keylen); in rfc4106_setkey()
491 memcpy(ctx->nonce, inkey + keylen, RFC4106_NONCE_SIZE); in rfc4106_setkey()
189 ghash_setkey(struct crypto_shash *tfm, const u8 *inkey, unsigned int keylen) ghash_setkey() argument
/kernel/linux/linux-6.6/arch/arm/crypto/
H A Dghash-ce-glue.c174 const u8 *inkey, unsigned int keylen) in ghash_setkey()
182 memcpy(&key->k, inkey, GHASH_BLOCK_SIZE); in ghash_setkey()
382 static int gcm_aes_setkey(struct crypto_aead *tfm, const u8 *inkey, in gcm_aes_setkey() argument
390 ret = aes_expandkey(&aes_ctx, inkey, keylen); in gcm_aes_setkey()
673 static int rfc4106_setkey(struct crypto_aead *tfm, const u8 *inkey, in rfc4106_setkey() argument
680 err = gcm_aes_setkey(tfm, inkey, keylen); in rfc4106_setkey()
684 memcpy(ctx->nonce, inkey + keylen, RFC4106_NONCE_SIZE); in rfc4106_setkey()
173 ghash_setkey(struct crypto_shash *tfm, const u8 *inkey, unsigned int keylen) ghash_setkey() argument
/kernel/linux/linux-5.10/crypto/
H A Dhmac.c41 const u8 *inkey, unsigned int keylen) in hmac_setkey()
59 err = crypto_shash_digest(shash, inkey, keylen, ipad); in hmac_setkey()
65 memcpy(ipad, inkey, keylen); in hmac_setkey()
40 hmac_setkey(struct crypto_shash *parent, const u8 *inkey, unsigned int keylen) hmac_setkey() argument
H A Dcmac.c50 const u8 *inkey, unsigned int keylen) in crypto_cmac_digest_setkey()
61 err = crypto_cipher_setkey(ctx->child, inkey, keylen); in crypto_cmac_digest_setkey()
49 crypto_cmac_digest_setkey(struct crypto_shash *parent, const u8 *inkey, unsigned int keylen) crypto_cmac_digest_setkey() argument
H A Dxcbc.c51 const u8 *inkey, unsigned int keylen) in crypto_xcbc_digest_setkey()
60 if ((err = crypto_cipher_setkey(ctx->child, inkey, keylen))) in crypto_xcbc_digest_setkey()
50 crypto_xcbc_digest_setkey(struct crypto_shash *parent, const u8 *inkey, unsigned int keylen) crypto_xcbc_digest_setkey() argument
H A Dccm.c778 const u8 *inkey, unsigned int keylen) in crypto_cbcmac_digest_setkey()
782 return crypto_cipher_setkey(ctx->child, inkey, keylen); in crypto_cbcmac_digest_setkey()
777 crypto_cbcmac_digest_setkey(struct crypto_shash *parent, const u8 *inkey, unsigned int keylen) crypto_cbcmac_digest_setkey() argument
/kernel/linux/linux-6.6/crypto/
H A Dhmac.c42 const u8 *inkey, unsigned int keylen) in hmac_setkey()
63 err = crypto_shash_digest(shash, inkey, keylen, ipad); in hmac_setkey()
69 memcpy(ipad, inkey, keylen); in hmac_setkey()
41 hmac_setkey(struct crypto_shash *parent, const u8 *inkey, unsigned int keylen) hmac_setkey() argument
H A Dcmac.c51 const u8 *inkey, unsigned int keylen) in crypto_cmac_digest_setkey()
62 err = crypto_cipher_setkey(ctx->child, inkey, keylen); in crypto_cmac_digest_setkey()
50 crypto_cmac_digest_setkey(struct crypto_shash *parent, const u8 *inkey, unsigned int keylen) crypto_cmac_digest_setkey() argument
H A Dxcbc.c52 const u8 *inkey, unsigned int keylen) in crypto_xcbc_digest_setkey()
61 if ((err = crypto_cipher_setkey(ctx->child, inkey, keylen))) in crypto_xcbc_digest_setkey()
51 crypto_xcbc_digest_setkey(struct crypto_shash *parent, const u8 *inkey, unsigned int keylen) crypto_xcbc_digest_setkey() argument
H A Dccm.c778 const u8 *inkey, unsigned int keylen) in crypto_cbcmac_digest_setkey()
782 return crypto_cipher_setkey(ctx->child, inkey, keylen); in crypto_cbcmac_digest_setkey()
777 crypto_cbcmac_digest_setkey(struct crypto_shash *parent, const u8 *inkey, unsigned int keylen) crypto_cbcmac_digest_setkey() argument
/kernel/linux/linux-5.10/arch/arm64/crypto/
H A Dghash-ce-glue.c187 const u8 *inkey, unsigned int keylen) in ghash_setkey()
195 memcpy(&key->k, inkey, GHASH_BLOCK_SIZE); in ghash_setkey()
229 static int gcm_setkey(struct crypto_aead *tfm, const u8 *inkey, in gcm_setkey() argument
237 ret = aes_expandkey(&ctx->aes_key, inkey, keylen); in gcm_setkey()
186 ghash_setkey(struct crypto_shash *tfm, const u8 *inkey, unsigned int keylen) ghash_setkey() argument
/kernel/linux/linux-5.10/arch/arm/crypto/
H A Dghash-ce-glue.c157 const u8 *inkey, unsigned int keylen) in ghash_setkey()
165 memcpy(&key->k, inkey, GHASH_BLOCK_SIZE); in ghash_setkey()
156 ghash_setkey(struct crypto_shash *tfm, const u8 *inkey, unsigned int keylen) ghash_setkey() argument
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
H A Dice_flex_pipe.c3149 struct ice_prof_id_key inkey; in ice_prof_gen_key() local
3151 inkey.xlt1 = ptg; in ice_prof_gen_key()
3152 inkey.xlt2_cdid = cpu_to_le16(vsig); in ice_prof_gen_key()
3153 inkey.flags = cpu_to_le16(flags); in ice_prof_gen_key()
3161 inkey.xlt2_cdid &= ~cpu_to_le16(ICE_CD_2_M); in ice_prof_gen_key()
3162 inkey.xlt2_cdid |= cpu_to_le16(BIT(cdid) << ICE_CD_2_S); in ice_prof_gen_key()
3167 inkey.xlt2_cdid &= ~cpu_to_le16(ICE_CD_4_M); in ice_prof_gen_key()
3168 inkey.xlt2_cdid |= cpu_to_le16(BIT(cdid) << ICE_CD_4_S); in ice_prof_gen_key()
3173 inkey.xlt2_cdid &= ~cpu_to_le16(ICE_CD_8_M); in ice_prof_gen_key()
3174 inkey in ice_prof_gen_key()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ice/
H A Dice_flex_pipe.c2331 struct ice_prof_id_key inkey; in ice_prof_gen_key() local
2333 inkey.xlt1 = ptg; in ice_prof_gen_key()
2334 inkey.xlt2_cdid = cpu_to_le16(vsig); in ice_prof_gen_key()
2335 inkey.flags = cpu_to_le16(flags); in ice_prof_gen_key()
2343 inkey.xlt2_cdid &= ~cpu_to_le16(ICE_CD_2_M); in ice_prof_gen_key()
2344 inkey.xlt2_cdid |= cpu_to_le16(BIT(cdid) << ICE_CD_2_S); in ice_prof_gen_key()
2349 inkey.xlt2_cdid &= ~cpu_to_le16(ICE_CD_4_M); in ice_prof_gen_key()
2350 inkey.xlt2_cdid |= cpu_to_le16(BIT(cdid) << ICE_CD_4_S); in ice_prof_gen_key()
2355 inkey.xlt2_cdid &= ~cpu_to_le16(ICE_CD_8_M); in ice_prof_gen_key()
2356 inkey in ice_prof_gen_key()
[all...]
/kernel/linux/linux-5.10/include/linux/sunrpc/
H A Dgss_krb5.h293 const struct xdr_netobj *inkey,

Completed in 22 milliseconds