/openbmc/linux/net/tipc/ |
H A D | crypto.c | 640 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() 2100 aead = rcu_dereference(c->aead[k]); in tipc_crypto_key_dump() 2203 aead = tipc_aead_get(tx->aead[key]); in tipc_crypto_key_distr() [all …]
|
/openbmc/linux/drivers/crypto/xilinx/ |
H A D | zynqmp-aes-gcm.c | 47 struct aead_engine_alg aead; member 244 struct crypto_tfm *tfm = crypto_aead_tfm(aead); in zynqmp_aes_aead_setkey() 276 struct crypto_tfm *tfm = crypto_aead_tfm(aead); in zynqmp_aes_aead_setauthsize() 288 struct aead_alg *alg = crypto_aead_alg(aead); in zynqmp_aes_aead_encrypt() 301 struct aead_alg *alg = crypto_aead_alg(aead); in zynqmp_aes_aead_decrypt() 312 struct crypto_tfm *tfm = crypto_aead_tfm(aead); in zynqmp_aes_aead_init() 316 struct aead_alg *alg = crypto_aead_alg(aead); in zynqmp_aes_aead_init() 331 crypto_aead_set_reqsize(aead, in zynqmp_aes_aead_init() 340 struct crypto_tfm *tfm = crypto_aead_tfm(aead); in zynqmp_aes_aead_exit() 352 .alg.aead.base = { [all …]
|
/openbmc/linux/crypto/ |
H A D | aead.c | 106 struct aead_alg *alg = crypto_aead_alg(aead); in crypto_aead_encrypt() 129 struct aead_alg *alg = crypto_aead_alg(aead); in crypto_aead_decrypt() 154 struct aead_alg *alg = crypto_aead_alg(aead); in crypto_aead_exit_tfm() 156 alg->exit(aead); in crypto_aead_exit_tfm() 162 struct aead_alg *alg = crypto_aead_alg(aead); in crypto_aead_init_tfm() 166 aead->authsize = alg->maxauthsize; in crypto_aead_init_tfm() 169 aead->base.exit = crypto_aead_exit_tfm; in crypto_aead_init_tfm() 172 return alg->init(aead); in crypto_aead_init_tfm() 189 raead.maxauthsize = aead->maxauthsize; in crypto_aead_report() 190 raead.ivsize = aead->ivsize; in crypto_aead_report() [all …]
|
H A D | algif_aead.c | 40 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() 458 struct crypto_aead *aead; in aead_bind() local 466 if (IS_ERR(aead)) { in aead_bind() 468 return ERR_CAST(aead); in aead_bind() 473 crypto_free_aead(aead); in aead_bind() 478 tfm->aead = aead; in aead_bind() 488 crypto_free_aead(tfm->aead); in aead_release() [all …]
|
H A D | gcm.c | 44 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 …]
|
H A D | ccm.c | 90 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 …]
|
H A D | essiv.c | 53 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 …]
|
H A D | geniv.c | 109 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()
|
/openbmc/linux/drivers/crypto/caam/ |
H A D | caamalg.c | 2083 .aead.op = { 2105 .aead.op = { 2128 .aead.op = { 2153 .aead.op = { 2177 .aead.op = { 2201 .aead.op = { 2225 .aead.op = { 2249 .aead.op = { 2273 .aead.op = { 2296 .aead.op = { [all …]
|
H A D | caamalg_qi.c | 1592 .aead = { 1611 .aead = { 1631 .aead = { 1651 .aead = { 1672 .aead = { 1695 .aead = { 1716 .aead = { 1739 .aead = { 1760 .aead = { 1783 .aead = { [all …]
|
H A D | caamalg_qi2.c | 1801 .aead = { 1820 .aead = { 1840 .aead = { 1860 .aead = { 1881 .aead = { 1904 .aead = { 1925 .aead = { 1948 .aead = { 1969 .aead = { 1992 .aead = { [all …]
|
/openbmc/linux/drivers/crypto/cavium/nitrox/ |
H A D | nitrox_aead.c | 69 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 …]
|
/openbmc/linux/net/ipv6/ |
H A D | esp6.c | 592 aead = x->data; in esp6_output_tail() 706 aead = x->data; in esp6_output() 1049 if (!aead) in esp6_destroy() 1069 if (IS_ERR(aead)) in esp_init_aead() 1072 x->data = aead; in esp_init_aead() 1074 err = crypto_aead_setkey(aead, x->aead->alg_key, in esp_init_aead() 1079 err = crypto_aead_setauthsize(aead, x->aead->alg_icv_len / 8); in esp_init_aead() 1128 if (IS_ERR(aead)) { in esp_init_authenc() 1133 x->data = aead; in esp_init_authenc() 1193 if (x->aead) { in esp6_init_state() [all …]
|
H A D | esp6_offload.c | 236 struct crypto_aead *aead; in esp6_gso_segment() local 249 aead = x->data; in esp6_gso_segment() 255 if (!pskb_may_pull(skb, sizeof(*esph) + crypto_aead_ivsize(aead))) in esp6_gso_segment() 258 __skb_pull(skb, sizeof(*esph) + crypto_aead_ivsize(aead)); in esp6_gso_segment() 276 struct crypto_aead *aead = x->data; in esp6_input_tail() local 279 if (!pskb_may_pull(skb, sizeof(struct ip_esp_hdr) + crypto_aead_ivsize(aead))) in esp6_input_tail() 295 struct crypto_aead *aead; in esp6_xmit() local 316 aead = x->data; in esp6_xmit() 317 alen = crypto_aead_authsize(aead); in esp6_xmit() 322 blksize = ALIGN(crypto_aead_blocksize(aead), 4); in esp6_xmit()
|
/openbmc/linux/net/ipv4/ |
H A D | esp4.c | 555 aead = x->data; in esp_output_tail() 668 aead = x->data; in esp_output() 1006 if (!aead) in esp_destroy() 1026 if (IS_ERR(aead)) in esp_init_aead() 1029 x->data = aead; in esp_init_aead() 1031 err = crypto_aead_setkey(aead, x->aead->alg_key, in esp_init_aead() 1036 err = crypto_aead_setauthsize(aead, x->aead->alg_icv_len / 8); in esp_init_aead() 1085 if (IS_ERR(aead)) { in esp_init_authenc() 1090 x->data = aead; in esp_init_authenc() 1150 if (x->aead) { in esp_init_state() [all …]
|
H A D | esp4_offload.c | 198 struct crypto_aead *aead; in esp4_gso_segment() local 211 aead = x->data; in esp4_gso_segment() 217 if (!pskb_may_pull(skb, sizeof(*esph) + crypto_aead_ivsize(aead))) in esp4_gso_segment() 220 __skb_pull(skb, sizeof(*esph) + crypto_aead_ivsize(aead)); in esp4_gso_segment() 240 struct crypto_aead *aead = x->data; in esp_input_tail() local 243 if (!pskb_may_pull(skb, sizeof(struct ip_esp_hdr) + crypto_aead_ivsize(aead))) in esp_input_tail() 259 struct crypto_aead *aead; in esp_xmit() local 282 aead = x->data; in esp_xmit() 283 alen = crypto_aead_authsize(aead); in esp_xmit() 288 blksize = ALIGN(crypto_aead_blocksize(aead), 4); in esp_xmit()
|
/openbmc/openbmc/meta-arm/meta-arm-bsp/recipes-security/trusted-services/corstone1000/ |
H A D | 0002-Fixes-in-AEAD-for-psa-arch-test-54-and-58.patch | 13 .../crypto/provider/extension/aead/aead_provider.c | 8 ++++++-- 14 .../extension/aead/serializer/aead_provider_serializer.h | 1 + 16 protocols/service/crypto/packed-c/aead.h | 1 + 44 …nents/service/crypto/provider/extension/aead/aead_provider.c b/components/service/crypto/provider/… 46 --- a/components/service/crypto/provider/extension/aead/aead_provider.c 47 +++ b/components/service/crypto/provider/extension/aead/aead_provider.c 74 psa_status = psa_aead_update(&crypto_context->op.aead, 75 …ce/crypto/provider/extension/aead/serializer/aead_provider_serializer.h b/components/service/crypt… 107 diff --git a/protocols/service/crypto/packed-c/aead.h b/protocols/service/crypto/packed-c/aead.h 109 --- a/protocols/service/crypto/packed-c/aead.h [all …]
|
/openbmc/linux/Documentation/crypto/ |
H A D | api-aead.rst | 4 .. 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
|
/openbmc/linux/include/crypto/internal/ |
H A D | aead.h | 58 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()
|
/openbmc/linux/arch/arm64/crypto/ |
H A D | aes-ce-ccm-glue.c | 61 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()
|
H A D | sm4-ce-ccm-glue.c | 56 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()
|
H A D | sm4-ce-gcm-glue.c | 75 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()
|
H A D | ghash-ce-glue.c | 302 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 …]
|
/openbmc/linux/net/xfrm/ |
H A D | xfrm_algo.c | 31 .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 …]
|
/openbmc/linux/arch/x86/crypto/ |
H A D | aegis128-aesni-glue.c | 135 static struct aegis_ctx *crypto_aegis128_aesni_ctx(struct crypto_aead *aead) in crypto_aegis128_aesni_ctx() argument 137 u8 *ctx = crypto_aead_ctx(aead); in crypto_aegis128_aesni_ctx() 142 static int crypto_aegis128_aesni_setkey(struct crypto_aead *aead, const u8 *key, in crypto_aegis128_aesni_setkey() argument 145 struct aegis_ctx *ctx = crypto_aegis128_aesni_ctx(aead); in crypto_aegis128_aesni_setkey() 230 static int crypto_aegis128_aesni_init_tfm(struct crypto_aead *aead) in crypto_aegis128_aesni_init_tfm() argument 235 static void crypto_aegis128_aesni_exit_tfm(struct crypto_aead *aead) in crypto_aegis128_aesni_exit_tfm() argument
|