Home
last modified time | relevance | path

Searched refs:algt (Results 1 – 18 of 18) sorted by relevance

/crypto/
Dpcrypt.c218 struct crypto_attr_type *algt; in pcrypt_create_aead() local
224 algt = crypto_get_attr_type(tb); in pcrypt_create_aead()
225 if (IS_ERR(algt)) in pcrypt_create_aead()
226 return PTR_ERR(algt); in pcrypt_create_aead()
281 struct crypto_attr_type *algt; in pcrypt_create() local
283 algt = crypto_get_attr_type(tb); in pcrypt_create()
284 if (IS_ERR(algt)) in pcrypt_create()
285 return PTR_ERR(algt); in pcrypt_create()
287 switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) { in pcrypt_create()
289 return pcrypt_create_aead(tmpl, tb, algt->type, algt->mask); in pcrypt_create()
Dlrw.c302 struct crypto_attr_type *algt; in create() local
308 algt = crypto_get_attr_type(tb); in create()
309 if (IS_ERR(algt)) in create()
310 return PTR_ERR(algt); in create()
312 if ((algt->type ^ CRYPTO_ALG_TYPE_SKCIPHER) & algt->mask) in create()
327 crypto_requires_sync(algt->type, in create()
328 algt->mask)); in create()
336 crypto_requires_sync(algt->type, in create()
337 algt->mask)); in create()
Dctr.c265 struct crypto_attr_type *algt; in crypto_rfc3686_create() local
274 algt = crypto_get_attr_type(tb); in crypto_rfc3686_create()
275 if (IS_ERR(algt)) in crypto_rfc3686_create()
276 return PTR_ERR(algt); in crypto_rfc3686_create()
278 if ((algt->type ^ CRYPTO_ALG_TYPE_SKCIPHER) & algt->mask) in crypto_rfc3686_create()
289 mask = crypto_requires_sync(algt->type, algt->mask) | in crypto_rfc3686_create()
290 crypto_requires_off(algt->type, algt->mask, in crypto_rfc3686_create()
Dgcm.c587 struct crypto_attr_type *algt; in crypto_gcm_create_common() local
595 algt = crypto_get_attr_type(tb); in crypto_gcm_create_common()
596 if (IS_ERR(algt)) in crypto_gcm_create_common()
597 return PTR_ERR(algt); in crypto_gcm_create_common()
599 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in crypto_gcm_create_common()
605 crypto_requires_sync(algt->type, in crypto_gcm_create_common()
606 algt->mask)); in crypto_gcm_create_common()
630 crypto_requires_sync(algt->type, in crypto_gcm_create_common()
631 algt->mask)); in crypto_gcm_create_common()
869 struct crypto_attr_type *algt; in crypto_rfc4106_create() local
[all …]
Dseqiv.c175 struct crypto_attr_type *algt; in seqiv_create() local
177 algt = crypto_get_attr_type(tb); in seqiv_create()
178 if (IS_ERR(algt)) in seqiv_create()
179 return PTR_ERR(algt); in seqiv_create()
181 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & CRYPTO_ALG_TYPE_MASK) in seqiv_create()
Dcts.c332 struct crypto_attr_type *algt; in crypto_cts_create() local
337 algt = crypto_get_attr_type(tb); in crypto_cts_create()
338 if (IS_ERR(algt)) in crypto_cts_create()
339 return PTR_ERR(algt); in crypto_cts_create()
341 if ((algt->type ^ CRYPTO_ALG_TYPE_SKCIPHER) & algt->mask) in crypto_cts_create()
356 crypto_requires_sync(algt->type, in crypto_cts_create()
357 algt->mask)); in crypto_cts_create()
Dauthenc.c385 struct crypto_attr_type *algt; in crypto_authenc_create() local
394 algt = crypto_get_attr_type(tb); in crypto_authenc_create()
395 if (IS_ERR(algt)) in crypto_authenc_create()
396 return PTR_ERR(algt); in crypto_authenc_create()
398 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in crypto_authenc_create()
403 crypto_requires_sync(algt->type, algt->mask)); in crypto_authenc_create()
428 crypto_requires_sync(algt->type, in crypto_authenc_create()
429 algt->mask)); in crypto_authenc_create()
Dauthencesn.c403 struct crypto_attr_type *algt; in crypto_authenc_esn_create() local
412 algt = crypto_get_attr_type(tb); in crypto_authenc_esn_create()
413 if (IS_ERR(algt)) in crypto_authenc_esn_create()
414 return PTR_ERR(algt); in crypto_authenc_esn_create()
416 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in crypto_authenc_esn_create()
421 crypto_requires_sync(algt->type, algt->mask)); in crypto_authenc_esn_create()
446 crypto_requires_sync(algt->type, in crypto_authenc_esn_create()
447 algt->mask)); in crypto_authenc_esn_create()
Dxts.c340 struct crypto_attr_type *algt; in create() local
347 algt = crypto_get_attr_type(tb); in create()
348 if (IS_ERR(algt)) in create()
349 return PTR_ERR(algt); in create()
351 if ((algt->type ^ CRYPTO_ALG_TYPE_SKCIPHER) & algt->mask) in create()
366 mask = crypto_requires_off(algt->type, algt->mask, in create()
Daead.c236 struct crypto_attr_type *algt; in aead_geniv_alloc() local
243 algt = crypto_get_attr_type(tb); in aead_geniv_alloc()
244 if (IS_ERR(algt)) in aead_geniv_alloc()
245 return ERR_CAST(algt); in aead_geniv_alloc()
247 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in aead_geniv_alloc()
261 mask |= crypto_requires_sync(algt->type, algt->mask); in aead_geniv_alloc()
Dessiv.c458 struct crypto_attr_type *algt; in essiv_create() local
474 algt = crypto_get_attr_type(tb); in essiv_create()
475 if (IS_ERR(algt)) in essiv_create()
476 return PTR_ERR(algt); in essiv_create()
486 type = algt->type & algt->mask; in essiv_create()
502 crypto_requires_sync(algt->type, in essiv_create()
503 algt->mask)); in essiv_create()
524 crypto_requires_sync(algt->type, in essiv_create()
525 algt->mask)); in essiv_create()
Dccm.c459 struct crypto_attr_type *algt; in crypto_ccm_create_common() local
467 algt = crypto_get_attr_type(tb); in crypto_ccm_create_common()
468 if (IS_ERR(algt)) in crypto_ccm_create_common()
469 return PTR_ERR(algt); in crypto_ccm_create_common()
471 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in crypto_ccm_create_common()
500 crypto_requires_sync(algt->type, in crypto_ccm_create_common()
501 algt->mask)); in crypto_ccm_create_common()
747 struct crypto_attr_type *algt; in crypto_rfc4309_create() local
754 algt = crypto_get_attr_type(tb); in crypto_rfc4309_create()
755 if (IS_ERR(algt)) in crypto_rfc4309_create()
[all …]
Dchacha20poly1305.c565 struct crypto_attr_type *algt; in chachapoly_create() local
577 algt = crypto_get_attr_type(tb); in chachapoly_create()
578 if (IS_ERR(algt)) in chachapoly_create()
579 return PTR_ERR(algt); in chachapoly_create()
581 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in chachapoly_create()
594 crypto_requires_sync(algt->type, in chachapoly_create()
595 algt->mask)); in chachapoly_create()
618 crypto_requires_sync(algt->type, in chachapoly_create()
619 algt->mask)); in chachapoly_create()
Dadiantum.c502 struct crypto_attr_type *algt; in adiantum_create() local
514 algt = crypto_get_attr_type(tb); in adiantum_create()
515 if (IS_ERR(algt)) in adiantum_create()
516 return PTR_ERR(algt); in adiantum_create()
518 if ((algt->type ^ CRYPTO_ALG_TYPE_SKCIPHER) & algt->mask) in adiantum_create()
544 0, crypto_requires_sync(algt->type, in adiantum_create()
545 algt->mask)); in adiantum_create()
Drsa-pkcs1pad.c600 struct crypto_attr_type *algt; in pkcs1pad_create() local
609 algt = crypto_get_attr_type(tb); in pkcs1pad_create()
610 if (IS_ERR(algt)) in pkcs1pad_create()
611 return PTR_ERR(algt); in pkcs1pad_create()
613 if ((algt->type ^ CRYPTO_ALG_TYPE_AKCIPHER) & algt->mask) in pkcs1pad_create()
641 crypto_requires_sync(algt->type, algt->mask)); in pkcs1pad_create()
Dcryptd.c197 struct crypto_attr_type *algt; in cryptd_check_internal() local
199 algt = crypto_get_attr_type(tb); in cryptd_check_internal()
200 if (IS_ERR(algt)) in cryptd_check_internal()
203 *type |= algt->type & CRYPTO_ALG_INTERNAL; in cryptd_check_internal()
204 *mask |= algt->mask & CRYPTO_ALG_INTERNAL; in cryptd_check_internal()
915 struct crypto_attr_type *algt; in cryptd_create() local
917 algt = crypto_get_attr_type(tb); in cryptd_create()
918 if (IS_ERR(algt)) in cryptd_create()
919 return PTR_ERR(algt); in cryptd_create()
921 switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) { in cryptd_create()
Dalgapi.c764 struct crypto_attr_type *algt; in crypto_get_attr_type() local
768 if (RTA_PAYLOAD(rta) < sizeof(*algt)) in crypto_get_attr_type()
773 algt = RTA_DATA(rta); in crypto_get_attr_type()
775 return algt; in crypto_get_attr_type()
781 struct crypto_attr_type *algt; in crypto_check_attr_type() local
783 algt = crypto_get_attr_type(tb); in crypto_check_attr_type()
784 if (IS_ERR(algt)) in crypto_check_attr_type()
785 return PTR_ERR(algt); in crypto_check_attr_type()
787 if ((algt->type ^ type) & algt->mask) in crypto_check_attr_type()
Dskcipher.c1173 struct crypto_attr_type *algt; in skcipher_alloc_instance_simple() local
1180 algt = crypto_get_attr_type(tb); in skcipher_alloc_instance_simple()
1181 if (IS_ERR(algt)) in skcipher_alloc_instance_simple()
1182 return ERR_CAST(algt); in skcipher_alloc_instance_simple()
1184 if ((algt->type ^ CRYPTO_ALG_TYPE_SKCIPHER) & algt->mask) in skcipher_alloc_instance_simple()
1188 crypto_requires_off(algt->type, algt->mask, in skcipher_alloc_instance_simple()