Home
last modified time | relevance | path

Searched refs:CRYPTO_MAX_ALG_NAME (Results 1 – 25 of 54) sorted by relevance

123

/kernel/linux/linux-5.10/crypto/
Dsimd.c166 if (snprintf(alg->base.cra_name, CRYPTO_MAX_ALG_NAME, "%s", algname) >= in simd_skcipher_create_compat()
167 CRYPTO_MAX_ALG_NAME) in simd_skcipher_create_compat()
170 if (snprintf(alg->base.cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s", in simd_skcipher_create_compat()
171 drvname) >= CRYPTO_MAX_ALG_NAME) in simd_skcipher_create_compat()
212 char drvname[CRYPTO_MAX_ALG_NAME]; in simd_skcipher_create()
214 if (snprintf(drvname, CRYPTO_MAX_ALG_NAME, "simd-%s", basename) >= in simd_skcipher_create()
215 CRYPTO_MAX_ALG_NAME) in simd_skcipher_create()
413 if (snprintf(alg->base.cra_name, CRYPTO_MAX_ALG_NAME, "%s", algname) >= in simd_aead_create_compat()
414 CRYPTO_MAX_ALG_NAME) in simd_aead_create_compat()
417 if (snprintf(alg->base.cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s", in simd_aead_create_compat()
[all …]
Dgeniv.c77 if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, in aead_geniv_alloc()
79 CRYPTO_MAX_ALG_NAME) in aead_geniv_alloc()
81 if (snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, in aead_geniv_alloc()
83 CRYPTO_MAX_ALG_NAME) in aead_geniv_alloc()
Dccm.c495 if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, in crypto_ccm_create_common()
496 "ccm(%s", ctr->base.cra_name + 4) >= CRYPTO_MAX_ALG_NAME) in crypto_ccm_create_common()
499 if (snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, in crypto_ccm_create_common()
501 mac->base.cra_driver_name) >= CRYPTO_MAX_ALG_NAME) in crypto_ccm_create_common()
533 char ctr_name[CRYPTO_MAX_ALG_NAME]; in crypto_ccm_create()
534 char mac_name[CRYPTO_MAX_ALG_NAME]; in crypto_ccm_create()
540 if (snprintf(ctr_name, CRYPTO_MAX_ALG_NAME, "ctr(%s)", in crypto_ccm_create()
541 cipher_name) >= CRYPTO_MAX_ALG_NAME) in crypto_ccm_create()
544 if (snprintf(mac_name, CRYPTO_MAX_ALG_NAME, "cbcmac(%s)", in crypto_ccm_create()
545 cipher_name) >= CRYPTO_MAX_ALG_NAME) in crypto_ccm_create()
[all …]
Dgcm.c622 if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, in crypto_gcm_create_common()
623 "gcm(%s", ctr->base.cra_name + 4) >= CRYPTO_MAX_ALG_NAME) in crypto_gcm_create_common()
626 if (snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, in crypto_gcm_create_common()
629 CRYPTO_MAX_ALG_NAME) in crypto_gcm_create_common()
661 char ctr_name[CRYPTO_MAX_ALG_NAME]; in crypto_gcm_create()
667 if (snprintf(ctr_name, CRYPTO_MAX_ALG_NAME, "ctr(%s)", cipher_name) >= in crypto_gcm_create()
668 CRYPTO_MAX_ALG_NAME) in crypto_gcm_create()
863 if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, in crypto_rfc4106_create()
865 CRYPTO_MAX_ALG_NAME || in crypto_rfc4106_create()
866 snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, in crypto_rfc4106_create()
[all …]
Dessiv.c45 char essiv_cipher_name[CRYPTO_MAX_ALG_NAME];
46 char shash_driver_name[CRYPTO_MAX_ALG_NAME];
399 if (len >= CRYPTO_MAX_ALG_NAME) in parse_cipher_name()
546 CRYPTO_MAX_ALG_NAME); in essiv_create()
551 if (snprintf(base->cra_name, CRYPTO_MAX_ALG_NAME, in essiv_create()
553 hash_alg->base.cra_name) >= CRYPTO_MAX_ALG_NAME) in essiv_create()
555 if (snprintf(base->cra_driver_name, CRYPTO_MAX_ALG_NAME, in essiv_create()
557 hash_alg->base.cra_driver_name) >= CRYPTO_MAX_ALG_NAME) in essiv_create()
Dlrw.c305 char ecb_name[CRYPTO_MAX_ALG_NAME]; in lrw_create()
327 if (snprintf(ecb_name, CRYPTO_MAX_ALG_NAME, "ecb(%s)", in lrw_create()
328 cipher_name) >= CRYPTO_MAX_ALG_NAME) in lrw_create()
371 if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, in lrw_create()
372 "lrw(%s)", ecb_name) >= CRYPTO_MAX_ALG_NAME) { in lrw_create()
Drsa-pkcs1pad.c628 CRYPTO_MAX_ALG_NAME, "pkcs1pad(%s)", in pkcs1pad_create()
629 rsa_alg->base.cra_name) >= CRYPTO_MAX_ALG_NAME) in pkcs1pad_create()
633 CRYPTO_MAX_ALG_NAME, "pkcs1pad(%s)", in pkcs1pad_create()
635 CRYPTO_MAX_ALG_NAME) in pkcs1pad_create()
644 if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, in pkcs1pad_create()
646 hash_name) >= CRYPTO_MAX_ALG_NAME) in pkcs1pad_create()
650 CRYPTO_MAX_ALG_NAME, "pkcs1pad(%s,%s)", in pkcs1pad_create()
652 hash_name) >= CRYPTO_MAX_ALG_NAME) in pkcs1pad_create()
Dcryptd.c213 if (snprintf(inst->alg.cra_driver_name, CRYPTO_MAX_ALG_NAME, in cryptd_init_instance()
215 alg->cra_driver_name) >= CRYPTO_MAX_ALG_NAME) in cryptd_init_instance()
218 memcpy(inst->alg.cra_name, alg->cra_name, CRYPTO_MAX_ALG_NAME); in cryptd_init_instance()
907 char cryptd_alg_name[CRYPTO_MAX_ALG_NAME]; in cryptd_alloc_skcipher()
911 if (snprintf(cryptd_alg_name, CRYPTO_MAX_ALG_NAME, in cryptd_alloc_skcipher()
912 "cryptd(%s)", alg_name) >= CRYPTO_MAX_ALG_NAME) in cryptd_alloc_skcipher()
959 char cryptd_alg_name[CRYPTO_MAX_ALG_NAME]; in cryptd_alloc_ahash()
963 if (snprintf(cryptd_alg_name, CRYPTO_MAX_ALG_NAME, in cryptd_alloc_ahash()
964 "cryptd(%s)", alg_name) >= CRYPTO_MAX_ALG_NAME) in cryptd_alloc_ahash()
1016 char cryptd_alg_name[CRYPTO_MAX_ALG_NAME]; in cryptd_alloc_aead()
[all …]
Dalgboss.c43 char template[CRYPTO_MAX_ALG_NAME];
52 char driver[CRYPTO_MAX_ALG_NAME];
53 char alg[CRYPTO_MAX_ALG_NAME];
Dxts.c30 char name[CRYPTO_MAX_ALG_NAME];
365 if (snprintf(ctx->name, CRYPTO_MAX_ALG_NAME, "ecb(%s)", in xts_create()
366 cipher_name) >= CRYPTO_MAX_ALG_NAME) in xts_create()
409 if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, in xts_create()
410 "xts(%s)", ctx->name) >= CRYPTO_MAX_ALG_NAME) { in xts_create()
Dctr.c292 if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, in crypto_rfc3686_create()
293 "rfc3686(%s)", alg->base.cra_name) >= CRYPTO_MAX_ALG_NAME) in crypto_rfc3686_create()
295 if (snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, in crypto_rfc3686_create()
297 CRYPTO_MAX_ALG_NAME) in crypto_rfc3686_create()
Dpcrypt.c219 if (snprintf(inst->alg.cra_driver_name, CRYPTO_MAX_ALG_NAME, in pcrypt_init_instance()
220 "pcrypt(%s)", alg->cra_driver_name) >= CRYPTO_MAX_ALG_NAME) in pcrypt_init_instance()
223 memcpy(inst->alg.cra_name, alg->cra_name, CRYPTO_MAX_ALG_NAME); in pcrypt_init_instance()
Dauthencesn.c424 if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, in crypto_authenc_esn_create()
426 enc->base.cra_name) >= CRYPTO_MAX_ALG_NAME) in crypto_authenc_esn_create()
429 if (snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, in crypto_authenc_esn_create()
431 enc->base.cra_driver_name) >= CRYPTO_MAX_ALG_NAME) in crypto_authenc_esn_create()
Dauthenc.c409 if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, in crypto_authenc_create()
412 CRYPTO_MAX_ALG_NAME) in crypto_authenc_create()
415 if (snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, in crypto_authenc_create()
417 enc->base.cra_driver_name) >= CRYPTO_MAX_ALG_NAME) in crypto_authenc_create()
Dadiantum.c551 if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, in adiantum_create()
553 blockcipher_alg->cra_name) >= CRYPTO_MAX_ALG_NAME) in adiantum_create()
555 if (snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, in adiantum_create()
559 hash_alg->base.cra_driver_name) >= CRYPTO_MAX_ALG_NAME) in adiantum_create()
/kernel/linux/linux-5.10/crypto/asymmetric_keys/
Dpublic_key.c68 char alg_name[CRYPTO_MAX_ALG_NAME]) in software_key_determine_akcipher() argument
78 n = snprintf(alg_name, CRYPTO_MAX_ALG_NAME, in software_key_determine_akcipher()
82 n = snprintf(alg_name, CRYPTO_MAX_ALG_NAME, in software_key_determine_akcipher()
85 return n >= CRYPTO_MAX_ALG_NAME ? -EINVAL : 0; in software_key_determine_akcipher()
110 char alg_name[CRYPTO_MAX_ALG_NAME]; in software_key_query()
174 char alg_name[CRYPTO_MAX_ALG_NAME]; in software_key_eds_op()
316 char alg_name[CRYPTO_MAX_ALG_NAME]; in public_key_verify_signature()
Dasym_tpm.c366 char alg_name[CRYPTO_MAX_ALG_NAME]) in determine_akcipher() argument
374 if (snprintf(alg_name, CRYPTO_MAX_ALG_NAME, "pkcs1pad(rsa,%s)", in determine_akcipher()
375 hash_algo) >= CRYPTO_MAX_ALG_NAME) in determine_akcipher()
397 char alg_name[CRYPTO_MAX_ALG_NAME]; in tpm_key_query()
447 char alg_name[CRYPTO_MAX_ALG_NAME]; in tpm_key_encrypt()
739 char alg_name[CRYPTO_MAX_ALG_NAME]; in tpm_key_verify_signature()
/kernel/linux/linux-5.10/include/crypto/
Ddrbg.h88 char cra_name[CRYPTO_MAX_ALG_NAME]; /* mapping to kernel crypto API */
90 char backend_cra_name[CRYPTO_MAX_ALG_NAME];
/kernel/linux/linux-5.10/drivers/crypto/ccree/
Dcc_driver.h171 char name[CRYPTO_MAX_ALG_NAME];
172 char driver_name[CRYPTO_MAX_ALG_NAME];
/kernel/linux/linux-5.10/include/linux/
Dcrypto.h148 #define CRYPTO_MAX_ALG_NAME 128 macro
481 char cra_name[CRYPTO_MAX_ALG_NAME];
482 char cra_driver_name[CRYPTO_MAX_ALG_NAME];
664 char name[CRYPTO_MAX_ALG_NAME];
/kernel/linux/linux-5.10/drivers/crypto/ccp/
Dccp-crypto-sha.c428 strscpy(ccp_alg->child_alg, def->name, CRYPTO_MAX_ALG_NAME); in ccp_register_hmac_alg()
436 snprintf(base->cra_name, CRYPTO_MAX_ALG_NAME, "hmac(%s)", def->name); in ccp_register_hmac_alg()
437 snprintf(base->cra_driver_name, CRYPTO_MAX_ALG_NAME, "hmac-%s", in ccp_register_hmac_alg()
486 snprintf(base->cra_name, CRYPTO_MAX_ALG_NAME, "%s", def->name); in ccp_register_sha_alg()
487 snprintf(base->cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s", in ccp_register_sha_alg()
Dccp-crypto-des3.c197 snprintf(alg->base.cra_name, CRYPTO_MAX_ALG_NAME, "%s", def->name); in ccp_register_des3_alg()
198 snprintf(alg->base.cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s", in ccp_register_des3_alg()
Dccp-crypto-aes-galois.c226 snprintf(alg->base.cra_name, CRYPTO_MAX_ALG_NAME, "%s", def->name); in ccp_register_aes_aead()
227 snprintf(alg->base.cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s", in ccp_register_aes_aead()
/kernel/linux/linux-5.10/net/ipv4/
Desp4.c1022 char aead_name[CRYPTO_MAX_ALG_NAME]; in esp_init_aead()
1027 if (snprintf(aead_name, CRYPTO_MAX_ALG_NAME, "%s(%s)", in esp_init_aead()
1028 x->geniv, x->aead->alg_name) >= CRYPTO_MAX_ALG_NAME) in esp_init_aead()
1058 char authenc_name[CRYPTO_MAX_ALG_NAME]; in esp_init_authenc()
1069 if (snprintf(authenc_name, CRYPTO_MAX_ALG_NAME, in esp_init_authenc()
1074 x->geniv ? ")" : "") >= CRYPTO_MAX_ALG_NAME) in esp_init_authenc()
1077 if (snprintf(authenc_name, CRYPTO_MAX_ALG_NAME, in esp_init_authenc()
1082 x->geniv ? ")" : "") >= CRYPTO_MAX_ALG_NAME) in esp_init_authenc()
/kernel/linux/linux-5.10/net/ipv6/
Desp6.c1064 char aead_name[CRYPTO_MAX_ALG_NAME]; in esp_init_aead()
1069 if (snprintf(aead_name, CRYPTO_MAX_ALG_NAME, "%s(%s)", in esp_init_aead()
1070 x->geniv, x->aead->alg_name) >= CRYPTO_MAX_ALG_NAME) in esp_init_aead()
1100 char authenc_name[CRYPTO_MAX_ALG_NAME]; in esp_init_authenc()
1111 if (snprintf(authenc_name, CRYPTO_MAX_ALG_NAME, in esp_init_authenc()
1116 x->geniv ? ")" : "") >= CRYPTO_MAX_ALG_NAME) in esp_init_authenc()
1119 if (snprintf(authenc_name, CRYPTO_MAX_ALG_NAME, in esp_init_authenc()
1124 x->geniv ? ")" : "") >= CRYPTO_MAX_ALG_NAME) in esp_init_authenc()

123