/crypto/ |
D | pcrypt.c | 285 struct crypto_attr_type *algt; in pcrypt_create_aead() local 291 algt = crypto_get_attr_type(tb); in pcrypt_create_aead() 292 if (IS_ERR(algt)) in pcrypt_create_aead() 293 return PTR_ERR(algt); in pcrypt_create_aead() 348 struct crypto_attr_type *algt; in pcrypt_create() local 350 algt = crypto_get_attr_type(tb); in pcrypt_create() 351 if (IS_ERR(algt)) in pcrypt_create() 352 return PTR_ERR(algt); in pcrypt_create() 354 switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) { in pcrypt_create() 356 return pcrypt_create_aead(tmpl, tb, algt->type, algt->mask); in pcrypt_create()
|
D | gcm.c | 623 struct crypto_attr_type *algt; in crypto_gcm_create_common() local 631 algt = crypto_get_attr_type(tb); in crypto_gcm_create_common() 632 if (IS_ERR(algt)) in crypto_gcm_create_common() 633 return PTR_ERR(algt); in crypto_gcm_create_common() 635 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in crypto_gcm_create_common() 641 crypto_requires_sync(algt->type, in crypto_gcm_create_common() 642 algt->mask)); in crypto_gcm_create_common() 665 crypto_requires_sync(algt->type, in crypto_gcm_create_common() 666 algt->mask)); in crypto_gcm_create_common() 926 struct crypto_attr_type *algt; in crypto_rfc4106_create() local [all …]
|
D | ccm.c | 512 struct crypto_attr_type *algt; in crypto_ccm_create_common() local 519 algt = crypto_get_attr_type(tb); in crypto_ccm_create_common() 520 if (IS_ERR(algt)) in crypto_ccm_create_common() 521 return PTR_ERR(algt); in crypto_ccm_create_common() 523 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in crypto_ccm_create_common() 550 crypto_requires_sync(algt->type, in crypto_ccm_create_common() 551 algt->mask)); in crypto_ccm_create_common() 813 struct crypto_attr_type *algt; in crypto_rfc4309_create() local 820 algt = crypto_get_attr_type(tb); in crypto_rfc4309_create() 821 if (IS_ERR(algt)) in crypto_rfc4309_create() [all …]
|
D | aead.c | 196 struct crypto_attr_type *algt; in aead_geniv_alloc() local 203 algt = crypto_get_attr_type(tb); in aead_geniv_alloc() 204 if (IS_ERR(algt)) in aead_geniv_alloc() 205 return ERR_CAST(algt); in aead_geniv_alloc() 207 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in aead_geniv_alloc() 221 mask |= crypto_requires_sync(algt->type, algt->mask); in aead_geniv_alloc()
|
D | mcryptd.c | 257 struct crypto_attr_type *algt; in mcryptd_check_internal() local 259 algt = crypto_get_attr_type(tb); in mcryptd_check_internal() 260 if (IS_ERR(algt)) in mcryptd_check_internal() 263 *type |= algt->type & CRYPTO_ALG_INTERNAL; in mcryptd_check_internal() 264 *mask |= algt->mask & CRYPTO_ALG_INTERNAL; in mcryptd_check_internal() 556 struct crypto_attr_type *algt; in mcryptd_create() local 558 algt = crypto_get_attr_type(tb); in mcryptd_create() 559 if (IS_ERR(algt)) in mcryptd_create() 560 return PTR_ERR(algt); in mcryptd_create() 562 switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) { in mcryptd_create()
|
D | cts.c | 328 struct crypto_attr_type *algt; in crypto_cts_create() local 333 algt = crypto_get_attr_type(tb); in crypto_cts_create() 334 if (IS_ERR(algt)) in crypto_cts_create() 335 return PTR_ERR(algt); in crypto_cts_create() 337 if ((algt->type ^ CRYPTO_ALG_TYPE_SKCIPHER) & algt->mask) in crypto_cts_create() 352 crypto_requires_sync(algt->type, in crypto_cts_create() 353 algt->mask)); in crypto_cts_create()
|
D | authenc.c | 381 struct crypto_attr_type *algt; in crypto_authenc_create() local 390 algt = crypto_get_attr_type(tb); in crypto_authenc_create() 391 if (IS_ERR(algt)) in crypto_authenc_create() 392 return PTR_ERR(algt); in crypto_authenc_create() 394 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in crypto_authenc_create() 399 crypto_requires_sync(algt->type, algt->mask)); in crypto_authenc_create() 424 crypto_requires_sync(algt->type, in crypto_authenc_create() 425 algt->mask)); in crypto_authenc_create()
|
D | authencesn.c | 407 struct crypto_attr_type *algt; in crypto_authenc_esn_create() local 416 algt = crypto_get_attr_type(tb); in crypto_authenc_esn_create() 417 if (IS_ERR(algt)) in crypto_authenc_esn_create() 418 return PTR_ERR(algt); in crypto_authenc_esn_create() 420 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in crypto_authenc_esn_create() 425 crypto_requires_sync(algt->type, algt->mask)); in crypto_authenc_esn_create() 450 crypto_requires_sync(algt->type, in crypto_authenc_esn_create() 451 algt->mask)); in crypto_authenc_esn_create()
|
D | seqiv.c | 188 struct crypto_attr_type *algt; in seqiv_create() local 190 algt = crypto_get_attr_type(tb); in seqiv_create() 191 if (IS_ERR(algt)) in seqiv_create() 192 return PTR_ERR(algt); in seqiv_create() 194 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & CRYPTO_ALG_TYPE_MASK) in seqiv_create()
|
D | ctr.c | 348 struct crypto_attr_type *algt; in crypto_rfc3686_create() local 355 algt = crypto_get_attr_type(tb); in crypto_rfc3686_create() 356 if (IS_ERR(algt)) in crypto_rfc3686_create() 357 return PTR_ERR(algt); in crypto_rfc3686_create() 359 if ((algt->type ^ CRYPTO_ALG_TYPE_SKCIPHER) & algt->mask) in crypto_rfc3686_create() 374 crypto_requires_sync(algt->type, in crypto_rfc3686_create() 375 algt->mask)); in crypto_rfc3686_create()
|
D | chacha20poly1305.c | 580 struct crypto_attr_type *algt; in chachapoly_create() local 592 algt = crypto_get_attr_type(tb); in chachapoly_create() 593 if (IS_ERR(algt)) in chachapoly_create() 594 return PTR_ERR(algt); in chachapoly_create() 596 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in chachapoly_create() 609 crypto_requires_sync(algt->type, in chachapoly_create() 610 algt->mask)); in chachapoly_create() 633 crypto_requires_sync(algt->type, in chachapoly_create() 634 algt->mask)); in chachapoly_create()
|
D | rsa-pkcs1pad.c | 612 struct crypto_attr_type *algt; in pkcs1pad_create() local 621 algt = crypto_get_attr_type(tb); in pkcs1pad_create() 622 if (IS_ERR(algt)) in pkcs1pad_create() 623 return PTR_ERR(algt); in pkcs1pad_create() 625 if ((algt->type ^ CRYPTO_ALG_TYPE_AKCIPHER) & algt->mask) in pkcs1pad_create() 650 crypto_requires_sync(algt->type, algt->mask)); in pkcs1pad_create()
|
D | algapi.c | 747 struct crypto_attr_type *algt; in crypto_get_attr_type() local 751 if (RTA_PAYLOAD(rta) < sizeof(*algt)) in crypto_get_attr_type() 756 algt = RTA_DATA(rta); in crypto_get_attr_type() 758 return algt; in crypto_get_attr_type() 764 struct crypto_attr_type *algt; in crypto_check_attr_type() local 766 algt = crypto_get_attr_type(tb); in crypto_check_attr_type() 767 if (IS_ERR(algt)) in crypto_check_attr_type() 768 return PTR_ERR(algt); in crypto_check_attr_type() 770 if ((algt->type ^ type) & algt->mask) in crypto_check_attr_type()
|
D | cryptd.c | 196 struct crypto_attr_type *algt; in cryptd_check_internal() local 198 algt = crypto_get_attr_type(tb); in cryptd_check_internal() 199 if (IS_ERR(algt)) in cryptd_check_internal() 202 *type |= algt->type & CRYPTO_ALG_INTERNAL; in cryptd_check_internal() 203 *mask |= algt->mask & CRYPTO_ALG_INTERNAL; in cryptd_check_internal() 890 struct crypto_attr_type *algt; in cryptd_create() local 892 algt = crypto_get_attr_type(tb); in cryptd_create() 893 if (IS_ERR(algt)) in cryptd_create() 894 return PTR_ERR(algt); in cryptd_create() 896 switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) { in cryptd_create()
|