| /net/tipc/ |
| A D | crypto.c | 640 aead = kzalloc(sizeof(*aead), GFP_ATOMIC); in tipc_aead_clone() 810 tx_ctx->aead = aead; in tipc_aead_encrypt() 846 struct tipc_aead *aead = tx_ctx->aead; in tipc_aead_encrypt_done() local 944 rx_ctx->aead = aead; in tipc_aead_decrypt() 971 struct tipc_aead *aead = rx_ctx->aead; in tipc_aead_decrypt_done() local 1760 aead = tipc_aead_get(tx->aead[tx_key]); in tipc_crypto_xmit() 1915 aead->crypto->aead[1], aead->crypto->aead[2], in tipc_crypto_rcv_complete() 1916 aead->crypto->aead[3]); in tipc_crypto_rcv_complete() 2109 aead = rcu_dereference(c->aead[k]); in tipc_crypto_key_dump() 2212 aead = tipc_aead_get(tx->aead[key]); in tipc_crypto_key_distr() [all …]
|
| /net/rxrpc/ |
| A D | rxgk_kdf.c | 120 if (IS_ERR(aead)) in rxgk_set_up_ciphers() 122 gk->resp_enc = aead; in rxgk_set_up_ciphers() 150 if (IS_ERR(aead)) in rxgk_set_up_ciphers() 152 gk->tx_enc = aead; in rxgk_set_up_ciphers() 155 if (IS_ERR(aead)) in rxgk_set_up_ciphers() 157 gk->rx_enc = aead; in rxgk_set_up_ciphers() 177 if (IS_ERR(aead)) in rxgk_set_up_ciphers() 179 gk->tx_enc = aead; in rxgk_set_up_ciphers() 182 if (IS_ERR(aead)) in rxgk_set_up_ciphers() 282 if (IS_ERR(aead)) in rxgk_set_up_token_cipher() [all …]
|
| A D | rxgk_common.h | 70 struct crypto_aead *aead, in rxgk_decrypt_skb() argument 84 ret = crypto_krb5_decrypt(krb5, aead, sg, nr_sg, in rxgk_decrypt_skb()
|
| /net/ipv6/ |
| A D | esp6.c | 547 aead = x->data; in esp6_output_tail() 661 aead = x->data; in esp6_output() 1004 if (!aead) in esp6_destroy() 1024 if (IS_ERR(aead)) in esp_init_aead() 1027 x->data = aead; in esp_init_aead() 1029 err = crypto_aead_setkey(aead, x->aead->alg_key, in esp_init_aead() 1034 err = crypto_aead_setauthsize(aead, x->aead->alg_icv_len / 8); in esp_init_aead() 1083 if (IS_ERR(aead)) { in esp_init_authenc() 1088 x->data = aead; in esp_init_authenc() 1148 if (x->aead) { in esp6_init_state() [all …]
|
| A D | esp6_offload.c | 249 struct crypto_aead *aead; in esp6_gso_segment() local 262 aead = x->data; in esp6_gso_segment() 268 if (!pskb_may_pull(skb, sizeof(*esph) + crypto_aead_ivsize(aead))) in esp6_gso_segment() 271 __skb_pull(skb, sizeof(*esph) + crypto_aead_ivsize(aead)); in esp6_gso_segment() 289 struct crypto_aead *aead = x->data; in esp6_input_tail() local 292 if (!pskb_may_pull(skb, sizeof(struct ip_esp_hdr) + crypto_aead_ivsize(aead))) in esp6_input_tail() 308 struct crypto_aead *aead; in esp6_xmit() local 329 aead = x->data; in esp6_xmit() 330 alen = crypto_aead_authsize(aead); in esp6_xmit() 335 blksize = ALIGN(crypto_aead_blocksize(aead), 4); in esp6_xmit()
|
| /net/ipv4/ |
| A D | esp4.c | 516 aead = x->data; in esp_output_tail() 629 aead = x->data; in esp_output() 967 if (!aead) in esp_destroy() 987 if (IS_ERR(aead)) in esp_init_aead() 990 x->data = aead; in esp_init_aead() 992 err = crypto_aead_setkey(aead, x->aead->alg_key, in esp_init_aead() 997 err = crypto_aead_setauthsize(aead, x->aead->alg_icv_len / 8); in esp_init_aead() 1046 if (IS_ERR(aead)) { in esp_init_authenc() 1051 x->data = aead; in esp_init_authenc() 1111 if (x->aead) { in esp_init_state() [all …]
|
| A D | esp4_offload.c | 209 struct crypto_aead *aead; in esp4_gso_segment() local 222 aead = x->data; in esp4_gso_segment() 228 if (!pskb_may_pull(skb, sizeof(*esph) + crypto_aead_ivsize(aead))) in esp4_gso_segment() 231 __skb_pull(skb, sizeof(*esph) + crypto_aead_ivsize(aead)); in esp4_gso_segment() 251 struct crypto_aead *aead = x->data; in esp_input_tail() local 254 if (!pskb_may_pull(skb, sizeof(struct ip_esp_hdr) + crypto_aead_ivsize(aead))) in esp_input_tail() 270 struct crypto_aead *aead; in esp_xmit() local 294 aead = x->data; in esp_xmit() 295 alen = crypto_aead_authsize(aead); in esp_xmit() 300 blksize = ALIGN(crypto_aead_blocksize(aead), 4); in esp_xmit()
|
| /net/xfrm/ |
| A D | xfrm_algo.c | 32 .aead = { 51 .aead = { 70 .aead = { 89 .aead = { 108 .aead = { 127 .aead = { 146 .aead = { 165 .aead = { 770 const struct xfrm_aead_name *aead = data; in xfrm_aead_name_match() local 771 const char *name = aead->name; in xfrm_aead_name_match() [all …]
|
| A D | xfrm_user.c | 718 x->aead = p; in attach_aead() 719 x->geniv = algo->uinfo.aead.geniv; in attach_aead() 1244 ap->alg_key_len = aead->alg_key_len; in copy_to_user_aead() 1245 ap->alg_icv_len = aead->alg_icv_len; in copy_to_user_aead() 1247 if (redact_secret && aead->alg_key_len) in copy_to_user_aead() 1250 memcpy(ap->alg_key, aead->alg_key, in copy_to_user_aead() 1251 (aead->alg_key_len + 7) / 8); in copy_to_user_aead() 1350 if (x->aead) { in copy_to_user_state_extra() 1351 ret = copy_to_user_aead(x->aead, skb); in copy_to_user_state_extra() 3636 if (x->aead) in xfrm_sa_len() [all …]
|
| A D | xfrm_state.c | 601 kfree_sensitive(x->aead); in xfrm_state_gc_destroy() 1992 if (orig->aead) { in xfrm_state_clone_and_setup() 1993 x->aead = xfrm_algo_aead_clone(orig->aead); in xfrm_state_clone_and_setup() 1995 if (!x->aead) in xfrm_state_clone_and_setup() 3100 struct crypto_aead *aead; in xfrm_state_mtu() local 3107 aead = x->data; in xfrm_state_mtu() 3108 blksize = ALIGN(crypto_aead_blocksize(aead), 4); in xfrm_state_mtu() 3128 return ((mtu - x->props.header_len - crypto_aead_authsize(aead) - in xfrm_state_mtu()
|
| A D | xfrm_iptfs.c | 2473 struct crypto_aead *aead; in __iptfs_get_inner_mtu() local 2476 aead = x->data; in __iptfs_get_inner_mtu() 2477 blksize = ALIGN(crypto_aead_blocksize(aead), 4); in __iptfs_get_inner_mtu() 2478 return ((outer_mtu - x->props.header_len - crypto_aead_authsize(aead)) & in __iptfs_get_inner_mtu()
|
| /net/tls/ |
| A D | tls_device_fallback.c | 41 struct crypto_aead *aead, char *aad, in tls_enc_record() argument 112 struct crypto_aead *aead) in tls_init_aead_request() argument 114 aead_request_set_tfm(aead_req, aead); in tls_init_aead_request() 118 static struct aead_request *tls_alloc_aead_request(struct crypto_aead *aead, in tls_alloc_aead_request() argument 122 crypto_aead_reqsize(aead); in tls_alloc_aead_request() 127 tls_init_aead_request(aead_req, aead); in tls_alloc_aead_request() 132 struct crypto_aead *aead, struct scatterlist *sg_in, in tls_enc_records() argument 143 rc = tls_enc_record(aead_req, aead, aad, iv, in tls_enc_records()
|
| A D | tls_sw.c | 190 struct crypto_aead *aead = crypto_aead_reqtfm(aead_req); in tls_decrypt_done() local 2765 struct crypto_aead **aead; in tls_set_sw_offload() local 2790 aead = &sw_ctx_tx->aead_send; in tls_set_sw_offload() 2795 aead = &sw_ctx_rx->aead_recv; in tls_set_sw_offload() 2815 if (!*aead) { in tls_set_sw_offload() 2817 if (IS_ERR(*aead)) { in tls_set_sw_offload() 2818 rc = PTR_ERR(*aead); in tls_set_sw_offload() 2819 *aead = NULL; in tls_set_sw_offload() 2839 rc = crypto_aead_setauthsize(*aead, prot->tag_size); in tls_set_sw_offload() 2873 crypto_free_aead(*aead); in tls_set_sw_offload() [all …]
|