| /linux/crypto/ |
| H A D | authenc.c | 82 static int crypto_authenc_setkey(struct crypto_aead *authenc, const u8 *key, in crypto_authenc_setkey() argument 85 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_setkey() 95 crypto_ahash_set_flags(auth, crypto_aead_get_flags(authenc) & in crypto_authenc_setkey() 102 crypto_skcipher_set_flags(enc, crypto_aead_get_flags(authenc) & in crypto_authenc_setkey() 112 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in authenc_geniv_ahash_finish() local 113 struct aead_instance *inst = aead_alg_instance(authenc); in authenc_geniv_ahash_finish() 120 crypto_aead_authsize(authenc), 1); in authenc_geniv_ahash_finish() 147 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_genicv() local 148 struct aead_instance *inst = aead_alg_instance(authenc); in crypto_authenc_genicv() 149 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_genicv() [all …]
|
| H A D | Kconfig | 847 that the keys are presented in the same format used by the authenc
|
| /linux/drivers/crypto/ccree/ |
| H A D | cc_aead.c | 669 static int cc_aead_setauthsize(struct crypto_aead *authenc, in cc_aead_setauthsize() argument 672 struct cc_aead_ctx *ctx = crypto_aead_ctx(authenc); in cc_aead_setauthsize() 677 authsize > crypto_aead_maxauthsize(authenc)) { in cc_aead_setauthsize() 687 static int cc_rfc4309_ccm_setauthsize(struct crypto_aead *authenc, in cc_rfc4309_ccm_setauthsize() argument 699 return cc_aead_setauthsize(authenc, authsize); in cc_rfc4309_ccm_setauthsize() 702 static int cc_ccm_setauthsize(struct crypto_aead *authenc, in cc_ccm_setauthsize() argument 718 return cc_aead_setauthsize(authenc, authsize); in cc_ccm_setauthsize() 2141 static int cc_gcm_setauthsize(struct crypto_aead *authenc, in cc_gcm_setauthsize() argument 2157 return cc_aead_setauthsize(authenc, authsize); in cc_gcm_setauthsize() 2160 static int cc_rfc4106_gcm_setauthsize(struct crypto_aead *authenc, in cc_rfc4106_gcm_setauthsize() argument [all …]
|
| /linux/drivers/crypto/ |
| H A D | talitos.c | 889 static int aead_setkey(struct crypto_aead *authenc, in aead_setkey() argument 892 struct talitos_ctx *ctx = crypto_aead_ctx(authenc); 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() 1027 struct crypto_aead *authenc = crypto_aead_reqtfm(areq); in ipsec_esp_encrypt_done() local 1028 unsigned int ivsize = crypto_aead_ivsize(authenc); in ipsec_esp_encrypt_done() 1047 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in ipsec_esp_decrypt_swauth_done() local 1048 unsigned int authsize = crypto_aead_authsize(authenc); in ipsec_esp_decrypt_swauth_done() 1420 struct crypto_aead *authenc = crypto_aead_reqtfm(areq); in aead_edesc_alloc() local [all …]
|
| H A D | sa2ul.c | 1769 static int sa_aead_setkey(struct crypto_aead *authenc, in sa_aead_setkey() argument 1773 struct sa_tfm_ctx *ctx = crypto_aead_ctx(authenc); in sa_aead_setkey() 1804 cfg.iv_size = crypto_aead_ivsize(authenc); in sa_aead_setkey() 1839 crypto_aead_get_flags(authenc) & in sa_aead_setkey() 1852 static int sa_aead_cbc_sha1_setkey(struct crypto_aead *authenc, in sa_aead_cbc_sha1_setkey() argument 1862 return sa_aead_setkey(authenc, key, keylen, &ad); in sa_aead_cbc_sha1_setkey() 1865 static int sa_aead_cbc_sha256_setkey(struct crypto_aead *authenc, in sa_aead_cbc_sha256_setkey() argument 1875 return sa_aead_setkey(authenc, key, keylen, &ad); in sa_aead_cbc_sha256_setkey()
|
| H A D | Kconfig | 438 authenc(hmac(shaX),Y(cbc)) algorithms. 630 - authenc()
|
| /linux/drivers/crypto/caam/ |
| H A D | caamalg_qi.c | 190 static int aead_setauthsize(struct crypto_aead *authenc, unsigned int authsize) in aead_setauthsize() argument 192 struct caam_ctx *ctx = crypto_aead_ctx_dma(authenc); in aead_setauthsize() 195 aead_set_sh_desc(authenc); in aead_setauthsize() 348 static int gcm_setauthsize(struct crypto_aead *authenc, unsigned int authsize) in gcm_setauthsize() argument 350 struct caam_ctx *ctx = crypto_aead_ctx_dma(authenc); in gcm_setauthsize() 358 gcm_set_sh_desc(authenc); in gcm_setauthsize() 451 static int rfc4106_setauthsize(struct crypto_aead *authenc, in rfc4106_setauthsize() argument 454 struct caam_ctx *ctx = crypto_aead_ctx_dma(authenc); in rfc4106_setauthsize() 462 rfc4106_set_sh_desc(authenc); in rfc4106_setauthsize() 559 static int rfc4543_setauthsize(struct crypto_aead *authenc, in rfc4543_setauthsize() argument [all …]
|
| H A D | caamalg.c | 327 static int aead_setauthsize(struct crypto_aead *authenc, in aead_setauthsize() argument 330 struct caam_ctx *ctx = crypto_aead_ctx_dma(authenc); in aead_setauthsize() 333 aead_set_sh_desc(authenc); in aead_setauthsize() 388 static int gcm_setauthsize(struct crypto_aead *authenc, unsigned int authsize) in gcm_setauthsize() argument 390 struct caam_ctx *ctx = crypto_aead_ctx_dma(authenc); in gcm_setauthsize() 398 gcm_set_sh_desc(authenc); in gcm_setauthsize() 455 static int rfc4106_setauthsize(struct crypto_aead *authenc, in rfc4106_setauthsize() argument 458 struct caam_ctx *ctx = crypto_aead_ctx_dma(authenc); in rfc4106_setauthsize() 466 rfc4106_set_sh_desc(authenc); in rfc4106_setauthsize() 523 static int rfc4543_setauthsize(struct crypto_aead *authenc, in rfc4543_setauthsize() argument [all …]
|
| H A D | caamalg_qi2.c | 280 static int aead_setauthsize(struct crypto_aead *authenc, unsigned int authsize) in aead_setauthsize() argument 282 struct caam_ctx *ctx = crypto_aead_ctx_dma(authenc); in aead_setauthsize() 285 aead_set_sh_desc(authenc); in aead_setauthsize() 709 static int gcm_setauthsize(struct crypto_aead *authenc, unsigned int authsize) in gcm_setauthsize() argument 711 struct caam_ctx *ctx = crypto_aead_ctx_dma(authenc); in gcm_setauthsize() 719 gcm_set_sh_desc(authenc); in gcm_setauthsize() 803 static int rfc4106_setauthsize(struct crypto_aead *authenc, in rfc4106_setauthsize() argument 806 struct caam_ctx *ctx = crypto_aead_ctx_dma(authenc); in rfc4106_setauthsize() 814 rfc4106_set_sh_desc(authenc); in rfc4106_setauthsize() 904 static int rfc4543_setauthsize(struct crypto_aead *authenc, in rfc4543_setauthsize() argument [all …]
|
| /linux/drivers/crypto/inside-secure/eip93/ |
| H A D | Kconfig | 20 Also provide AEAD authenc(hmac(x), cipher(y)) for supported algo.
|
| /linux/drivers/crypto/chelsio/ |
| H A D | chcr_crypto.h | 227 DECLARE_FLEX_ARRAY(struct chcr_authenc_ctx, authenc);
|
| H A D | chcr_algo.c | 120 return gctx->ctx->authenc; in AUTHENC_CTX() 3460 static int chcr_authenc_setkey(struct crypto_aead *authenc, const u8 *key, in chcr_authenc_setkey() argument 3463 struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(authenc)); in chcr_authenc_setkey() 3468 unsigned int max_authsize = crypto_aead_alg(authenc)->maxauthsize; in chcr_authenc_setkey() 3475 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(authenc) in chcr_authenc_setkey() 3488 subtype = get_aead_subtype(authenc); in chcr_authenc_setkey() 3543 static int chcr_aead_digest_null_setkey(struct crypto_aead *authenc, in chcr_aead_digest_null_setkey() argument 3546 struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(authenc)); in chcr_aead_digest_null_setkey() 3556 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(authenc) in chcr_aead_digest_null_setkey() 3565 subtype = get_aead_subtype(authenc); in chcr_aead_digest_null_setkey()
|
| /linux/Documentation/dev-tools/ |
| H A D | coccinelle.rst | 397 /home/user/linux/crypto/authenc.c:619:9-16: ERR_CAST can be used with auth 521 …* TODO [[view:/home/user/linux/crypto/authenc.c::face=ovl-face1::linb=619::colb=9::cole=16][ERR_CA…
|
| /linux/Documentation/admin-guide/device-mapper/ |
| H A D | dm-crypt.rst | 46 capi:authenc(hmac(sha256),xts(aes))-random
|
| /linux/Documentation/crypto/ |
| H A D | krb5.rst | 252 plaintext before encrypting it (the reverse of authenc). The handle returned
|
| H A D | architecture.rst | 52 - authenc(hmac(sha1),cbc(aes))
|