Lines Matching refs:streamcipher_alg
471 static bool adiantum_supported_algorithms(struct skcipher_alg *streamcipher_alg, in adiantum_supported_algorithms() argument
475 if (strcmp(streamcipher_alg->base.cra_name, "xchacha12") != 0 && in adiantum_supported_algorithms()
476 strcmp(streamcipher_alg->base.cra_name, "xchacha20") != 0) in adiantum_supported_algorithms()
497 struct skcipher_alg *streamcipher_alg; in adiantum_create() local
517 streamcipher_alg = crypto_spawn_skcipher_alg(&ictx->streamcipher_spawn); in adiantum_create()
539 if (!adiantum_supported_algorithms(streamcipher_alg, blockcipher_alg, in adiantum_create()
542 streamcipher_alg->base.cra_name, in adiantum_create()
552 "adiantum(%s,%s)", streamcipher_alg->base.cra_name, in adiantum_create()
557 streamcipher_alg->base.cra_driver_name, in adiantum_create()
564 inst->alg.base.cra_alignmask = streamcipher_alg->base.cra_alignmask | in adiantum_create()
572 inst->alg.base.cra_priority = (4 * streamcipher_alg->base.cra_priority + in adiantum_create()
581 inst->alg.min_keysize = crypto_skcipher_alg_min_keysize(streamcipher_alg); in adiantum_create()
582 inst->alg.max_keysize = crypto_skcipher_alg_max_keysize(streamcipher_alg); in adiantum_create()