Home
last modified time | relevance | path

Searched refs:aead (Results 1 – 25 of 81) sorted by relevance

1234

/linux-6.3-rc2/net/tipc/
A Dcrypto.c640 aead = kzalloc(sizeof(*aead), GFP_ATOMIC); in tipc_aead_clone()
810 tx_ctx->aead = aead; in tipc_aead_encrypt()
838 struct tipc_aead *aead = tx_ctx->aead; in tipc_aead_encrypt_done() local
935 rx_ctx->aead = aead; in tipc_aead_decrypt()
962 struct tipc_aead *aead = rx_ctx->aead; in tipc_aead_decrypt_done() local
1751 aead = tipc_aead_get(tx->aead[tx_key]); in tipc_crypto_xmit()
1906 aead->crypto->aead[1], aead->crypto->aead[2], in tipc_crypto_rcv_complete()
1907 aead->crypto->aead[3]); in tipc_crypto_rcv_complete()
2099 aead = rcu_dereference(c->aead[k]); in tipc_crypto_key_dump()
2202 aead = tipc_aead_get(tx->aead[key]); in tipc_crypto_key_distr()
[all …]
/linux-6.3-rc2/crypto/
A Daead.c86 struct crypto_alg *alg = aead->base.__crt_alg; in crypto_aead_encrypt()
94 ret = crypto_aead_alg(aead)->encrypt(req); in crypto_aead_encrypt()
113 ret = crypto_aead_alg(aead)->decrypt(req); in crypto_aead_decrypt()
122 struct aead_alg *alg = crypto_aead_alg(aead); in crypto_aead_exit_tfm()
124 alg->exit(aead); in crypto_aead_exit_tfm()
134 aead->authsize = alg->maxauthsize; in crypto_aead_init_tfm()
137 aead->base.exit = crypto_aead_exit_tfm; in crypto_aead_init_tfm()
140 return alg->init(aead); in crypto_aead_init_tfm()
157 raead.maxauthsize = aead->maxauthsize; in crypto_aead_report()
158 raead.ivsize = aead->ivsize; in crypto_aead_report()
[all …]
A Dalgif_aead.c40 struct crypto_aead *aead; member
51 struct crypto_aead *tfm = aeadc->aead; in aead_sufficient_data()
68 struct crypto_aead *tfm = aeadc->aead; in aead_sendmsg()
97 struct crypto_aead *tfm = aeadc->aead; in _aead_recvmsg()
470 struct crypto_aead *aead; in aead_bind() local
478 if (IS_ERR(aead)) { in aead_bind()
480 return ERR_CAST(aead); in aead_bind()
485 crypto_free_aead(aead); in aead_bind()
490 tfm->aead = aead; in aead_bind()
500 crypto_free_aead(tfm->aead); in aead_release()
[all …]
A Dgcm.c44 struct crypto_aead_spawn aead; member
792 struct crypto_aead *aead; in crypto_rfc4106_init_tfm() local
796 if (IS_ERR(aead)) in crypto_rfc4106_init_tfm()
797 return PTR_ERR(aead); in crypto_rfc4106_init_tfm()
799 ctx->child = aead; in crypto_rfc4106_init_tfm()
991 struct crypto_aead *aead; in crypto_rfc4543_init_tfm() local
997 if (IS_ERR(aead)) in crypto_rfc4543_init_tfm()
998 return PTR_ERR(aead); in crypto_rfc4543_init_tfm()
1005 ctx->child = aead; in crypto_rfc4543_init_tfm()
1019 crypto_free_aead(aead); in crypto_rfc4543_init_tfm()
[all …]
A Dccm.c90 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(aead); in crypto_ccm_setkey()
130 struct crypto_aead *aead = crypto_aead_reqtfm(req); in format_input() local
135 m = crypto_aead_authsize(aead); in format_input()
237 crypto_aead_authsize(aead), 1); in crypto_ccm_encrypt_done()
319 crypto_aead_authsize(aead), 1); in crypto_ccm_encrypt()
672 struct crypto_aead *aead; in crypto_rfc4309_init_tfm() local
675 aead = crypto_spawn_aead(spawn); in crypto_rfc4309_init_tfm()
676 if (IS_ERR(aead)) in crypto_rfc4309_init_tfm()
677 return PTR_ERR(aead); in crypto_rfc4309_init_tfm()
679 ctx->child = aead; in crypto_rfc4309_init_tfm()
[all …]
A Dessiv.c53 struct crypto_aead *aead; member
105 err = crypto_aead_setkey(tctx->u.aead, key, keylen); in essiv_aead_setkey()
246 aead_request_set_tfm(subreq, tctx->u.aead); in essiv_aead_crypt()
327 struct crypto_aead *aead; in essiv_aead_init_tfm() local
334 aead = crypto_spawn_aead(&ictx->u.aead_spawn); in essiv_aead_init_tfm()
335 if (IS_ERR(aead)) in essiv_aead_init_tfm()
336 return PTR_ERR(aead); in essiv_aead_init_tfm()
339 crypto_aead_reqsize(aead); in essiv_aead_init_tfm()
347 crypto_free_aead(aead); in essiv_aead_init_tfm()
351 tctx->u.aead = aead; in essiv_aead_init_tfm()
[all …]
A Dgeniv.c109 int aead_init_geniv(struct crypto_aead *aead) in aead_init_geniv() argument
111 struct aead_geniv_ctx *ctx = crypto_aead_ctx(aead); in aead_init_geniv()
112 struct aead_instance *inst = aead_alg_instance(aead); in aead_init_geniv()
123 crypto_aead_ivsize(aead)); in aead_init_geniv()
139 crypto_aead_set_reqsize(aead, crypto_aead_reqsize(child) + in aead_init_geniv()
/linux-6.3-rc2/drivers/crypto/cavium/nitrox/
A Dnitrox_aead.c69 aead->authsize = authsize; in nitrox_aead_setauthsize()
90 return nitrox_aead_setauthsize(aead, authsize); in nitrox_aes_gcm_setauthsize()
230 rctx->dstlen = rctx->srclen + aead->authsize; in nitrox_aes_gcm_enc()
261 rctx->cryptlen = areq->cryptlen - aead->authsize; in nitrox_aes_gcm_dec()
264 rctx->dstlen = rctx->srclen - aead->authsize; in nitrox_aes_gcm_dec()
311 ret = nitrox_aead_init(aead); in nitrox_gcm_common_init()
330 ret = nitrox_gcm_common_init(aead); in nitrox_aes_gcm_init()
334 crypto_aead_set_reqsize(aead, in nitrox_aes_gcm_init()
370 ret = nitrox_aes_gcm_setkey(aead, key, keylen); in nitrox_rfc4106_setkey()
390 return nitrox_aead_setauthsize(aead, authsize); in nitrox_rfc4106_setauthsize()
[all …]
/linux-6.3-rc2/drivers/crypto/xilinx/
A Dzynqmp-aes-gcm.c46 struct aead_alg aead; member
241 struct crypto_tfm *tfm = crypto_aead_tfm(aead); in zynqmp_aes_aead_setkey()
273 struct crypto_tfm *tfm = crypto_aead_tfm(aead); in zynqmp_aes_aead_setauthsize()
285 struct aead_alg *alg = crypto_aead_alg(aead); in zynqmp_aes_aead_encrypt()
298 struct aead_alg *alg = crypto_aead_alg(aead); in zynqmp_aes_aead_decrypt()
309 struct crypto_tfm *tfm = crypto_aead_tfm(aead); in zynqmp_aes_aead_init()
313 struct aead_alg *alg = crypto_aead_alg(aead); in zynqmp_aes_aead_init()
332 crypto_aead_set_reqsize(aead, in zynqmp_aes_aead_init()
353 .alg.aead = {
416 crypto_unregister_aead(&aes_drv_ctx.alg.aead); in zynqmp_aes_aead_probe()
[all …]
/linux-6.3-rc2/net/ipv4/
A Desp4.c556 aead = x->data; in esp_output_tail()
669 aead = x->data; in esp_output()
1005 if (!aead) in esp_destroy()
1025 if (IS_ERR(aead)) in esp_init_aead()
1028 x->data = aead; in esp_init_aead()
1030 err = crypto_aead_setkey(aead, x->aead->alg_key, in esp_init_aead()
1035 err = crypto_aead_setauthsize(aead, x->aead->alg_icv_len / 8); in esp_init_aead()
1084 if (IS_ERR(aead)) { in esp_init_authenc()
1089 x->data = aead; in esp_init_authenc()
1149 if (x->aead) { in esp_init_state()
[all …]
A Desp4_offload.c197 struct crypto_aead *aead; in esp4_gso_segment() local
210 aead = x->data; in esp4_gso_segment()
216 if (!pskb_may_pull(skb, sizeof(*esph) + crypto_aead_ivsize(aead))) in esp4_gso_segment()
219 __skb_pull(skb, sizeof(*esph) + crypto_aead_ivsize(aead)); in esp4_gso_segment()
239 struct crypto_aead *aead = x->data; in esp_input_tail() local
242 if (!pskb_may_pull(skb, sizeof(struct ip_esp_hdr) + crypto_aead_ivsize(aead))) in esp_input_tail()
258 struct crypto_aead *aead; in esp_xmit() local
281 aead = x->data; in esp_xmit()
282 alen = crypto_aead_authsize(aead); in esp_xmit()
287 blksize = ALIGN(crypto_aead_blocksize(aead), 4); in esp_xmit()
/linux-6.3-rc2/net/ipv6/
A Desp6.c593 aead = x->data; in esp6_output_tail()
707 aead = x->data; in esp6_output()
1048 if (!aead) in esp6_destroy()
1068 if (IS_ERR(aead)) in esp_init_aead()
1071 x->data = aead; in esp_init_aead()
1073 err = crypto_aead_setkey(aead, x->aead->alg_key, in esp_init_aead()
1078 err = crypto_aead_setauthsize(aead, x->aead->alg_icv_len / 8); in esp_init_aead()
1127 if (IS_ERR(aead)) { in esp_init_authenc()
1132 x->data = aead; in esp_init_authenc()
1192 if (x->aead) { in esp6_init_state()
[all …]
A Desp6_offload.c235 struct crypto_aead *aead; in esp6_gso_segment() local
248 aead = x->data; in esp6_gso_segment()
254 if (!pskb_may_pull(skb, sizeof(*esph) + crypto_aead_ivsize(aead))) in esp6_gso_segment()
257 __skb_pull(skb, sizeof(*esph) + crypto_aead_ivsize(aead)); in esp6_gso_segment()
275 struct crypto_aead *aead = x->data; in esp6_input_tail() local
278 if (!pskb_may_pull(skb, sizeof(struct ip_esp_hdr) + crypto_aead_ivsize(aead))) in esp6_input_tail()
294 struct crypto_aead *aead; in esp6_xmit() local
315 aead = x->data; in esp6_xmit()
316 alen = crypto_aead_authsize(aead); in esp6_xmit()
321 blksize = ALIGN(crypto_aead_blocksize(aead), 4); in esp6_xmit()
/linux-6.3-rc2/drivers/crypto/caam/
A Dcaamalg.c2038 .aead = {
2057 .aead = {
2077 .aead = {
2097 .aead = {
2118 .aead = {
2139 .aead = {
2160 .aead = {
2181 .aead = {
2202 .aead = {
2223 .aead = {
[all …]
A Dcaamalg_qi.c1592 .aead = {
1611 .aead = {
1631 .aead = {
1651 .aead = {
1672 .aead = {
1695 .aead = {
1716 .aead = {
1739 .aead = {
1760 .aead = {
1783 .aead = {
[all …]
A Dcaamalg_qi2.c1800 .aead = {
1819 .aead = {
1839 .aead = {
1859 .aead = {
1880 .aead = {
1903 .aead = {
1924 .aead = {
1947 .aead = {
1968 .aead = {
1991 .aead = {
[all …]
/linux-6.3-rc2/Documentation/crypto/
A Dapi-aead.rst4 .. kernel-doc:: include/crypto/aead.h
7 .. kernel-doc:: include/crypto/aead.h
13 .. kernel-doc:: include/crypto/aead.h
19 .. kernel-doc:: include/crypto/aead.h
22 .. kernel-doc:: include/crypto/aead.h
/linux-6.3-rc2/include/crypto/internal/
A Daead.h58 static inline struct aead_instance *aead_alg_instance(struct crypto_aead *aead) in aead_alg_instance() argument
60 return aead_instance(crypto_tfm_alg_instance(&aead->base)); in aead_alg_instance()
120 static inline void crypto_aead_set_reqsize(struct crypto_aead *aead, in crypto_aead_set_reqsize() argument
123 aead->reqsize = reqsize; in crypto_aead_set_reqsize()
126 static inline void crypto_aead_set_reqsize_dma(struct crypto_aead *aead, in crypto_aead_set_reqsize_dma() argument
130 aead->reqsize = reqsize; in crypto_aead_set_reqsize_dma()
/linux-6.3-rc2/arch/arm64/crypto/
A Dsm4-ce-ccm-glue.c56 struct crypto_aead *aead = crypto_aead_reqtfm(req); in ccm_format_input() local
71 m = crypto_aead_authsize(aead); in ccm_format_input()
93 struct crypto_aead *aead = crypto_aead_reqtfm(req); in ccm_calculate_auth_mac() local
94 struct sm4_ctx *ctx = crypto_aead_ctx(aead); in ccm_calculate_auth_mac()
215 struct crypto_aead *aead = crypto_aead_reqtfm(req); in ccm_encrypt() local
216 struct sm4_ctx *ctx = crypto_aead_ctx(aead); in ccm_encrypt()
235 crypto_aead_authsize(aead), 1); in ccm_encrypt()
242 struct crypto_aead *aead = crypto_aead_reqtfm(req); in ccm_decrypt() local
243 unsigned int authsize = crypto_aead_authsize(aead); in ccm_decrypt()
244 struct sm4_ctx *ctx = crypto_aead_ctx(aead); in ccm_decrypt()
A Daes-ce-ccm-glue.c61 struct crypto_aead *aead = crypto_aead_reqtfm(req); in ccm_init_mac() local
89 maciv[0] |= (crypto_aead_authsize(aead) - 2) << 2; in ccm_init_mac()
99 struct crypto_aead *aead = crypto_aead_reqtfm(req); in ccm_calculate_auth_mac() local
100 struct crypto_aes_ctx *ctx = crypto_aead_ctx(aead); in ccm_calculate_auth_mac()
148 struct crypto_aead *aead = crypto_aead_reqtfm(req); in ccm_encrypt() local
149 struct crypto_aes_ctx *ctx = crypto_aead_ctx(aead); in ccm_encrypt()
194 crypto_aead_authsize(aead), 1); in ccm_encrypt()
201 struct crypto_aead *aead = crypto_aead_reqtfm(req); in ccm_decrypt() local
202 struct crypto_aes_ctx *ctx = crypto_aead_ctx(aead); in ccm_decrypt()
203 unsigned int authsize = crypto_aead_authsize(aead); in ccm_decrypt()
A Dsm4-ce-gcm-glue.c75 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_calculate_auth_mac() local
76 struct sm4_gcm_ctx *ctx = crypto_aead_ctx(aead); in gcm_calculate_auth_mac()
144 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_crypt() local
145 struct sm4_gcm_ctx *ctx = crypto_aead_ctx(aead); in gcm_crypt()
200 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_encrypt() local
212 crypto_aead_authsize(aead), 1); in gcm_encrypt()
219 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_decrypt() local
220 unsigned int authsize = crypto_aead_authsize(aead); in gcm_decrypt()
A Dghash-ce-glue.c302 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_calculate_auth_mac() local
303 struct gcm_aes_ctx *ctx = crypto_aead_ctx(aead); in gcm_calculate_auth_mac()
337 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_encrypt() local
338 struct gcm_aes_ctx *ctx = crypto_aead_ctx(aead); in gcm_encrypt()
393 crypto_aead_authsize(aead), 1); in gcm_encrypt()
400 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_decrypt() local
401 struct gcm_aes_ctx *ctx = crypto_aead_ctx(aead); in gcm_decrypt()
402 unsigned int authsize = crypto_aead_authsize(aead); in gcm_decrypt()
502 struct crypto_aead *aead = crypto_aead_reqtfm(req); in rfc4106_encrypt() local
503 struct gcm_aes_ctx *ctx = crypto_aead_ctx(aead); in rfc4106_encrypt()
[all …]
/linux-6.3-rc2/net/xfrm/
A Dxfrm_algo.c31 .aead = {
50 .aead = {
69 .aead = {
88 .aead = {
107 .aead = {
126 .aead = {
145 .aead = {
164 .aead = {
775 const struct xfrm_aead_name *aead = data; in xfrm_aead_name_match() local
776 const char *name = aead->name; in xfrm_aead_name_match()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
A Dipsec.c117 struct crypto_aead *aead; in mlx5e_ipsec_build_accel_xfrm_attrs() local
124 crypto_data_len = (x->aead->alg_key_len + 7) / 8; in mlx5e_ipsec_build_accel_xfrm_attrs()
131 aead = x->data; in mlx5e_ipsec_build_accel_xfrm_attrs()
132 geniv_ctx = crypto_aead_ctx(aead); in mlx5e_ipsec_build_accel_xfrm_attrs()
133 ivsize = crypto_aead_ivsize(aead); in mlx5e_ipsec_build_accel_xfrm_attrs()
135 memcpy(&aes_gcm->salt, x->aead->alg_key + key_len, in mlx5e_ipsec_build_accel_xfrm_attrs()
141 aes_gcm->icv_len = x->aead->alg_icv_len; in mlx5e_ipsec_build_accel_xfrm_attrs()
204 if (!x->aead) { in mlx5e_xfrm_validate_state()
208 if (x->aead->alg_icv_len != 128) { in mlx5e_xfrm_validate_state()
212 if ((x->aead->alg_key_len != 128 + 32) && in mlx5e_xfrm_validate_state()
[all …]
/linux-6.3-rc2/drivers/crypto/inside-secure/
A Dsafexcel_cipher.c820 if (ctx->aead) in safexcel_send_req()
1751 .alg.aead = {
1787 .alg.aead = {
1823 .alg.aead = {
1859 .alg.aead = {
1895 .alg.aead = {
1932 .alg.aead = {
1969 .alg.aead = {
2006 .alg.aead = {
2043 .alg.aead = {
[all …]

Completed in 65 milliseconds

1234