Lines Matching defs:chacha
12 #include <crypto/chacha.h>
20 struct crypto_skcipher_spawn chacha;
26 struct crypto_skcipher *chacha;
66 struct chacha_req chacha;
127 struct chacha_req *creq = &rctx->u.chacha;
143 skcipher_request_set_tfm(&creq->req, ctx->chacha);
365 struct chacha_req *creq = &rctx->u.chacha;
383 skcipher_request_set_tfm(&creq->req, ctx->chacha);
403 struct chacha_req *creq = &rctx->u.chacha;
419 skcipher_request_set_tfm(&creq->req, ctx->chacha);
485 crypto_skcipher_clear_flags(ctx->chacha, CRYPTO_TFM_REQ_MASK);
486 crypto_skcipher_set_flags(ctx->chacha, crypto_aead_get_flags(aead) &
488 return crypto_skcipher_setkey(ctx->chacha, key, keylen);
505 struct crypto_skcipher *chacha;
513 chacha = crypto_spawn_skcipher(&ictx->chacha);
514 if (IS_ERR(chacha)) {
516 return PTR_ERR(chacha);
519 ctx->chacha = chacha;
530 crypto_skcipher_reqsize(chacha),
543 crypto_free_skcipher(ctx->chacha);
550 crypto_drop_skcipher(&ctx->chacha);
561 struct skcipher_alg_common *chacha;
578 err = crypto_grab_skcipher(&ctx->chacha, aead_crypto_instance(inst),
582 chacha = crypto_spawn_skcipher_alg_common(&ctx->chacha);
594 if (chacha->ivsize != CHACHA_IV_SIZE)
597 if (chacha->base.cra_blocksize != 1)
602 "%s(%s,%s)", name, chacha->base.cra_name,
606 "%s(%s,%s)", name, chacha->base.cra_driver_name,
610 inst->alg.base.cra_priority = (chacha->base.cra_priority +
613 inst->alg.base.cra_alignmask = chacha->base.cra_alignmask;
617 inst->alg.chunksize = chacha->chunksize;