Home
last modified time | relevance | path

Searched refs:authenc (Results 1 – 12 of 12) sorted by relevance

/Linux-v4.19/crypto/
Dauthenc.c81 static int crypto_authenc_setkey(struct crypto_aead *authenc, const u8 *key, in crypto_authenc_setkey() argument
84 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_setkey()
94 crypto_ahash_set_flags(auth, crypto_aead_get_flags(authenc) & in crypto_authenc_setkey()
97 crypto_aead_set_flags(authenc, crypto_ahash_get_flags(auth) & in crypto_authenc_setkey()
104 crypto_skcipher_set_flags(enc, crypto_aead_get_flags(authenc) & in crypto_authenc_setkey()
107 crypto_aead_set_flags(authenc, crypto_skcipher_get_flags(enc) & in crypto_authenc_setkey()
115 crypto_aead_set_flags(authenc, CRYPTO_TFM_RES_BAD_KEY_LEN); in crypto_authenc_setkey()
122 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in authenc_geniv_ahash_done() local
123 struct aead_instance *inst = aead_alg_instance(authenc); in authenc_geniv_ahash_done()
133 crypto_aead_authsize(authenc), 1); in authenc_geniv_ahash_done()
[all …]
DMakefile127 obj-$(CONFIG_CRYPTO_AUTHENC) += authenc.o authencesn.o
/Linux-v4.19/drivers/crypto/ccree/
Dcc_aead.c660 static int cc_aead_setauthsize(struct crypto_aead *authenc, in cc_aead_setauthsize() argument
663 struct cc_aead_ctx *ctx = crypto_aead_ctx(authenc); in cc_aead_setauthsize()
668 authsize > crypto_aead_maxauthsize(authenc)) { in cc_aead_setauthsize()
678 static int cc_rfc4309_ccm_setauthsize(struct crypto_aead *authenc, in cc_rfc4309_ccm_setauthsize() argument
690 return cc_aead_setauthsize(authenc, authsize); in cc_rfc4309_ccm_setauthsize()
693 static int cc_ccm_setauthsize(struct crypto_aead *authenc, in cc_ccm_setauthsize() argument
709 return cc_aead_setauthsize(authenc, authsize); in cc_ccm_setauthsize()
2178 static int cc_gcm_setauthsize(struct crypto_aead *authenc, in cc_gcm_setauthsize() argument
2194 return cc_aead_setauthsize(authenc, authsize); in cc_gcm_setauthsize()
2197 static int cc_rfc4106_gcm_setauthsize(struct crypto_aead *authenc, in cc_rfc4106_gcm_setauthsize() argument
[all …]
/Linux-v4.19/drivers/crypto/caam/
Dcaamalg_qi.c188 static int aead_setauthsize(struct crypto_aead *authenc, unsigned int authsize) in aead_setauthsize() argument
190 struct caam_ctx *ctx = crypto_aead_ctx(authenc); in aead_setauthsize()
193 aead_set_sh_desc(authenc); in aead_setauthsize()
332 static int gcm_setauthsize(struct crypto_aead *authenc, unsigned int authsize) in gcm_setauthsize() argument
334 struct caam_ctx *ctx = crypto_aead_ctx(authenc); in gcm_setauthsize()
337 gcm_set_sh_desc(authenc); in gcm_setauthsize()
427 static int rfc4106_setauthsize(struct crypto_aead *authenc, in rfc4106_setauthsize() argument
430 struct caam_ctx *ctx = crypto_aead_ctx(authenc); in rfc4106_setauthsize()
433 rfc4106_set_sh_desc(authenc); in rfc4106_setauthsize()
531 static int rfc4543_setauthsize(struct crypto_aead *authenc, in rfc4543_setauthsize() argument
[all …]
Dcaamalg.c316 static int aead_setauthsize(struct crypto_aead *authenc, in aead_setauthsize() argument
319 struct caam_ctx *ctx = crypto_aead_ctx(authenc); in aead_setauthsize()
322 aead_set_sh_desc(authenc); in aead_setauthsize()
377 static int gcm_setauthsize(struct crypto_aead *authenc, unsigned int authsize) in gcm_setauthsize() argument
379 struct caam_ctx *ctx = crypto_aead_ctx(authenc); in gcm_setauthsize()
382 gcm_set_sh_desc(authenc); in gcm_setauthsize()
439 static int rfc4106_setauthsize(struct crypto_aead *authenc, in rfc4106_setauthsize() argument
442 struct caam_ctx *ctx = crypto_aead_ctx(authenc); in rfc4106_setauthsize()
445 rfc4106_set_sh_desc(authenc); in rfc4106_setauthsize()
502 static int rfc4543_setauthsize(struct crypto_aead *authenc, in rfc4543_setauthsize() argument
[all …]
/Linux-v4.19/drivers/crypto/
Dtalitos.c882 static int aead_setkey(struct crypto_aead *authenc, in aead_setkey() argument
885 struct talitos_ctx *ctx = crypto_aead_ctx(authenc); in aead_setkey()
911 crypto_aead_set_flags(authenc, CRYPTO_TFM_RES_BAD_KEY_LEN); in aead_setkey()
1014 struct crypto_aead *authenc = crypto_aead_reqtfm(areq); in ipsec_esp_encrypt_done() local
1015 unsigned int authsize = crypto_aead_authsize(authenc); in ipsec_esp_encrypt_done()
1016 unsigned int ivsize = crypto_aead_ivsize(authenc); in ipsec_esp_encrypt_done()
1049 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in ipsec_esp_decrypt_swauth_done() local
1050 unsigned int authsize = crypto_aead_authsize(authenc); in ipsec_esp_decrypt_swauth_done()
1457 struct crypto_aead *authenc = crypto_aead_reqtfm(areq); in aead_edesc_alloc() local
1458 unsigned int authsize = crypto_aead_authsize(authenc); in aead_edesc_alloc()
[all …]
DKconfig478 authenc(hmac(shaX),Y(cbc)) algorithms.
/Linux-v4.19/drivers/crypto/chelsio/
Dchcr_algo.c121 return gctx->ctx->authenc; in AUTHENC_CTX()
3362 static int chcr_authenc_setkey(struct crypto_aead *authenc, const u8 *key, in chcr_authenc_setkey() argument
3365 struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(authenc)); in chcr_authenc_setkey()
3370 unsigned int max_authsize = crypto_aead_alg(authenc)->maxauthsize; in chcr_authenc_setkey()
3380 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(authenc) in chcr_authenc_setkey()
3383 crypto_aead_clear_flags(authenc, CRYPTO_TFM_RES_MASK); in chcr_authenc_setkey()
3384 crypto_aead_set_flags(authenc, crypto_aead_get_flags(aeadctx->sw_cipher) in chcr_authenc_setkey()
3390 crypto_aead_set_flags(authenc, CRYPTO_TFM_RES_BAD_KEY_LEN); in chcr_authenc_setkey()
3398 subtype = get_aead_subtype(authenc); in chcr_authenc_setkey()
3498 static int chcr_aead_digest_null_setkey(struct crypto_aead *authenc, in chcr_aead_digest_null_setkey() argument
[all …]
Dchcr_crypto.h227 struct chcr_authenc_ctx authenc[0]; member
/Linux-v4.19/Documentation/device-mapper/
Ddm-crypt.txt35 capi:authenc(hmac(sha256),xts(aes))-random
/Linux-v4.19/Documentation/dev-tools/
Dcoccinelle.rst363 /home/user/linux/crypto/authenc.c:619:9-16: ERR_CAST can be used with auth
487 …* TODO [[view:/home/user/linux/crypto/authenc.c::face=ovl-face1::linb=619::colb=9::cole=16][ERR_CA…
/Linux-v4.19/Documentation/crypto/
Darchitecture.rst52 - authenc(hmac(sha1),cbc(aes))