| /Linux-v5.4/crypto/ |
| D | authenc.c | 84 static int crypto_authenc_setkey(struct crypto_aead *authenc, const u8 *key, in crypto_authenc_setkey() argument 87 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_setkey() 97 crypto_ahash_set_flags(auth, crypto_aead_get_flags(authenc) & in crypto_authenc_setkey() 100 crypto_aead_set_flags(authenc, crypto_ahash_get_flags(auth) & in crypto_authenc_setkey() 107 crypto_skcipher_set_flags(enc, crypto_aead_get_flags(authenc) & in crypto_authenc_setkey() 110 crypto_aead_set_flags(authenc, crypto_skcipher_get_flags(enc) & in crypto_authenc_setkey() 118 crypto_aead_set_flags(authenc, CRYPTO_TFM_RES_BAD_KEY_LEN); in crypto_authenc_setkey() 125 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in authenc_geniv_ahash_done() local 126 struct aead_instance *inst = aead_alg_instance(authenc); in authenc_geniv_ahash_done() 136 crypto_aead_authsize(authenc), 1); in authenc_geniv_ahash_done() [all …]
|
| D | Makefile | 144 obj-$(CONFIG_CRYPTO_AUTHENC) += authenc.o authencesn.o
|
| D | Kconfig | 506 that the keys are presented in the same format used by the authenc
|
| /Linux-v5.4/drivers/crypto/ |
| D | talitos.c | 888 static int aead_setkey(struct crypto_aead *authenc, in aead_setkey() argument 891 struct talitos_ctx *ctx = crypto_aead_ctx(authenc); in aead_setkey() 917 crypto_aead_set_flags(authenc, CRYPTO_TFM_RES_BAD_KEY_LEN); in aead_setkey() 922 static int aead_des3_setkey(struct crypto_aead *authenc, in aead_des3_setkey() argument 925 struct talitos_ctx *ctx = crypto_aead_ctx(authenc); in aead_des3_setkey() 938 err = verify_aead_des3_key(authenc, keys.enckey, keys.enckeylen); in aead_des3_setkey() 959 crypto_aead_set_flags(authenc, CRYPTO_TFM_RES_BAD_KEY_LEN); in aead_des3_setkey() 1031 struct crypto_aead *authenc = crypto_aead_reqtfm(areq); in ipsec_esp_encrypt_done() local 1032 unsigned int ivsize = crypto_aead_ivsize(authenc); in ipsec_esp_encrypt_done() 1051 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in ipsec_esp_decrypt_swauth_done() local [all …]
|
| D | Kconfig | 501 authenc(hmac(shaX),Y(cbc)) algorithms.
|
| /Linux-v5.4/drivers/crypto/caam/ |
| D | caamalg_qi.c | 177 static int aead_setauthsize(struct crypto_aead *authenc, unsigned int authsize) in aead_setauthsize() argument 179 struct caam_ctx *ctx = crypto_aead_ctx(authenc); in aead_setauthsize() 182 aead_set_sh_desc(authenc); in aead_setauthsize() 336 static int gcm_setauthsize(struct crypto_aead *authenc, unsigned int authsize) in gcm_setauthsize() argument 338 struct caam_ctx *ctx = crypto_aead_ctx(authenc); in gcm_setauthsize() 346 gcm_set_sh_desc(authenc); in gcm_setauthsize() 441 static int rfc4106_setauthsize(struct crypto_aead *authenc, in rfc4106_setauthsize() argument 444 struct caam_ctx *ctx = crypto_aead_ctx(authenc); in rfc4106_setauthsize() 452 rfc4106_set_sh_desc(authenc); in rfc4106_setauthsize() 551 static int rfc4543_setauthsize(struct crypto_aead *authenc, in rfc4543_setauthsize() argument [all …]
|
| D | caamalg.c | 297 static int aead_setauthsize(struct crypto_aead *authenc, in aead_setauthsize() argument 300 struct caam_ctx *ctx = crypto_aead_ctx(authenc); in aead_setauthsize() 303 aead_set_sh_desc(authenc); in aead_setauthsize() 358 static int gcm_setauthsize(struct crypto_aead *authenc, unsigned int authsize) in gcm_setauthsize() argument 360 struct caam_ctx *ctx = crypto_aead_ctx(authenc); in gcm_setauthsize() 368 gcm_set_sh_desc(authenc); in gcm_setauthsize() 425 static int rfc4106_setauthsize(struct crypto_aead *authenc, in rfc4106_setauthsize() argument 428 struct caam_ctx *ctx = crypto_aead_ctx(authenc); in rfc4106_setauthsize() 436 rfc4106_set_sh_desc(authenc); in rfc4106_setauthsize() 493 static int rfc4543_setauthsize(struct crypto_aead *authenc, in rfc4543_setauthsize() argument [all …]
|
| D | caamalg_qi2.c | 270 static int aead_setauthsize(struct crypto_aead *authenc, unsigned int authsize) in aead_setauthsize() argument 272 struct caam_ctx *ctx = crypto_aead_ctx(authenc); in aead_setauthsize() 275 aead_set_sh_desc(authenc); in aead_setauthsize() 705 static int gcm_setauthsize(struct crypto_aead *authenc, unsigned int authsize) in gcm_setauthsize() argument 707 struct caam_ctx *ctx = crypto_aead_ctx(authenc); in gcm_setauthsize() 715 gcm_set_sh_desc(authenc); in gcm_setauthsize() 801 static int rfc4106_setauthsize(struct crypto_aead *authenc, in rfc4106_setauthsize() argument 804 struct caam_ctx *ctx = crypto_aead_ctx(authenc); in rfc4106_setauthsize() 812 rfc4106_set_sh_desc(authenc); in rfc4106_setauthsize() 904 static int rfc4543_setauthsize(struct crypto_aead *authenc, in rfc4543_setauthsize() argument [all …]
|
| /Linux-v5.4/drivers/crypto/ccree/ |
| D | cc_aead.c | 679 static int cc_aead_setauthsize(struct crypto_aead *authenc, in cc_aead_setauthsize() argument 682 struct cc_aead_ctx *ctx = crypto_aead_ctx(authenc); in cc_aead_setauthsize() 687 authsize > crypto_aead_maxauthsize(authenc)) { in cc_aead_setauthsize() 697 static int cc_rfc4309_ccm_setauthsize(struct crypto_aead *authenc, in cc_rfc4309_ccm_setauthsize() argument 709 return cc_aead_setauthsize(authenc, authsize); in cc_rfc4309_ccm_setauthsize() 712 static int cc_ccm_setauthsize(struct crypto_aead *authenc, in cc_ccm_setauthsize() argument 728 return cc_aead_setauthsize(authenc, authsize); in cc_ccm_setauthsize() 2172 static int cc_gcm_setauthsize(struct crypto_aead *authenc, in cc_gcm_setauthsize() argument 2188 return cc_aead_setauthsize(authenc, authsize); in cc_gcm_setauthsize() 2191 static int cc_rfc4106_gcm_setauthsize(struct crypto_aead *authenc, in cc_rfc4106_gcm_setauthsize() argument [all …]
|
| /Linux-v5.4/drivers/crypto/chelsio/ |
| D | chcr_algo.c | 121 return gctx->ctx->authenc; in AUTHENC_CTX() 3413 static int chcr_authenc_setkey(struct crypto_aead *authenc, const u8 *key, in chcr_authenc_setkey() argument 3416 struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(authenc)); in chcr_authenc_setkey() 3421 unsigned int max_authsize = crypto_aead_alg(authenc)->maxauthsize; in chcr_authenc_setkey() 3431 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(authenc) in chcr_authenc_setkey() 3434 crypto_aead_clear_flags(authenc, CRYPTO_TFM_RES_MASK); in chcr_authenc_setkey() 3435 crypto_aead_set_flags(authenc, crypto_aead_get_flags(aeadctx->sw_cipher) in chcr_authenc_setkey() 3441 crypto_aead_set_flags(authenc, CRYPTO_TFM_RES_BAD_KEY_LEN); in chcr_authenc_setkey() 3449 subtype = get_aead_subtype(authenc); in chcr_authenc_setkey() 3548 static int chcr_aead_digest_null_setkey(struct crypto_aead *authenc, in chcr_aead_digest_null_setkey() argument [all …]
|
| D | chcr_crypto.h | 224 struct chcr_authenc_ctx authenc[0]; member
|
| /Linux-v5.4/Documentation/admin-guide/device-mapper/ |
| D | dm-crypt.rst | 46 capi:authenc(hmac(sha256),xts(aes))-random
|
| /Linux-v5.4/Documentation/dev-tools/ |
| D | coccinelle.rst | 380 /home/user/linux/crypto/authenc.c:619:9-16: ERR_CAST can be used with auth 504 …* TODO [[view:/home/user/linux/crypto/authenc.c::face=ovl-face1::linb=619::colb=9::cole=16][ERR_CA…
|
| /Linux-v5.4/Documentation/crypto/ |
| D | architecture.rst | 52 - authenc(hmac(sha1),cbc(aes))
|