Lines Matching refs:streamcipher_alg
502 static bool adiantum_supported_algorithms(struct skcipher_alg_common *streamcipher_alg, in adiantum_supported_algorithms() argument
506 if (strcmp(streamcipher_alg->base.cra_name, "xchacha12") != 0 && in adiantum_supported_algorithms()
507 strcmp(streamcipher_alg->base.cra_name, "xchacha20") != 0) in adiantum_supported_algorithms()
528 struct skcipher_alg_common *streamcipher_alg; in adiantum_create() local
548 streamcipher_alg = crypto_spawn_skcipher_alg_common(&ictx->streamcipher_spawn); in adiantum_create()
570 if (!adiantum_supported_algorithms(streamcipher_alg, blockcipher_alg, in adiantum_create()
573 streamcipher_alg->base.cra_name, in adiantum_create()
583 "adiantum(%s,%s)", streamcipher_alg->base.cra_name, in adiantum_create()
588 streamcipher_alg->base.cra_driver_name, in adiantum_create()
595 inst->alg.base.cra_alignmask = streamcipher_alg->base.cra_alignmask; in adiantum_create()
602 inst->alg.base.cra_priority = (4 * streamcipher_alg->base.cra_priority + in adiantum_create()
611 inst->alg.min_keysize = streamcipher_alg->min_keysize; in adiantum_create()
612 inst->alg.max_keysize = streamcipher_alg->max_keysize; in adiantum_create()