Home
last modified time | relevance | path

Searched refs:cipher_name (Results 1 – 6 of 6) sorted by relevance

/crypto/
Dlrw.c304 const char *cipher_name; in create() local
315 cipher_name = crypto_attr_alg_name(tb[1]); in create()
316 if (IS_ERR(cipher_name)) in create()
317 return PTR_ERR(cipher_name); in create()
326 err = crypto_grab_skcipher(spawn, cipher_name, 0, in create()
332 cipher_name) >= CRYPTO_MAX_ALG_NAME) in create()
358 cipher_name = alg->base.cra_name; in create()
363 if (!strncmp(cipher_name, "ecb(", 4)) { in create()
366 len = strlcpy(ecb_name, cipher_name + 4, sizeof(ecb_name)); in create()
Dxts.c343 const char *cipher_name; in create() local
354 cipher_name = crypto_attr_alg_name(tb[1]); in create()
355 if (IS_ERR(cipher_name)) in create()
356 return PTR_ERR(cipher_name); in create()
370 err = crypto_grab_skcipher(&ctx->spawn, cipher_name, 0, mask); in create()
374 cipher_name) >= CRYPTO_MAX_ALG_NAME) in create()
398 cipher_name = alg->base.cra_name; in create()
403 if (!strncmp(cipher_name, "ecb(", 4)) { in create()
406 len = strlcpy(ctx->name, cipher_name + 4, sizeof(ctx->name)); in create()
Dctr.c269 const char *cipher_name; in crypto_rfc3686_create() local
281 cipher_name = crypto_attr_alg_name(tb[1]); in crypto_rfc3686_create()
282 if (IS_ERR(cipher_name)) in crypto_rfc3686_create()
283 return PTR_ERR(cipher_name); in crypto_rfc3686_create()
296 err = crypto_grab_skcipher(spawn, cipher_name, 0, mask); in crypto_rfc3686_create()
Dcts.c334 const char *cipher_name; in crypto_cts_create() local
344 cipher_name = crypto_attr_alg_name(tb[1]); in crypto_cts_create()
345 if (IS_ERR(cipher_name)) in crypto_cts_create()
346 return PTR_ERR(cipher_name); in crypto_cts_create()
355 err = crypto_grab_skcipher(spawn, cipher_name, 0, in crypto_cts_create()
Dccm.c566 const char *cipher_name; in crypto_ccm_create() local
570 cipher_name = crypto_attr_alg_name(tb[1]); in crypto_ccm_create()
571 if (IS_ERR(cipher_name)) in crypto_ccm_create()
572 return PTR_ERR(cipher_name); in crypto_ccm_create()
575 cipher_name) >= CRYPTO_MAX_ALG_NAME) in crypto_ccm_create()
579 cipher_name) >= CRYPTO_MAX_ALG_NAME) in crypto_ccm_create()
Dgcm.c694 const char *cipher_name; in crypto_gcm_create() local
697 cipher_name = crypto_attr_alg_name(tb[1]); in crypto_gcm_create()
698 if (IS_ERR(cipher_name)) in crypto_gcm_create()
699 return PTR_ERR(cipher_name); in crypto_gcm_create()
701 if (snprintf(ctr_name, CRYPTO_MAX_ALG_NAME, "ctr(%s)", cipher_name) >= in crypto_gcm_create()