Lines Matching refs:streamcipher
71 struct crypto_skcipher *streamcipher; member
132 crypto_skcipher_clear_flags(tctx->streamcipher, CRYPTO_TFM_REQ_MASK); in adiantum_setkey()
133 crypto_skcipher_set_flags(tctx->streamcipher, in adiantum_setkey()
136 err = crypto_skcipher_setkey(tctx->streamcipher, key, keylen); in adiantum_setkey()
142 crypto_skcipher_reqsize(tctx->streamcipher), GFP_KERNEL); in adiantum_setkey()
148 skcipher_request_set_tfm(&data->req, tctx->streamcipher); in adiantum_setkey()
377 skcipher_request_set_tfm(&rctx->u.streamcipher_req, tctx->streamcipher); in adiantum_crypt()
402 struct crypto_skcipher *streamcipher; in adiantum_init_tfm() local
408 streamcipher = crypto_spawn_skcipher(&ictx->streamcipher_spawn); in adiantum_init_tfm()
409 if (IS_ERR(streamcipher)) in adiantum_init_tfm()
410 return PTR_ERR(streamcipher); in adiantum_init_tfm()
424 tctx->streamcipher = streamcipher; in adiantum_init_tfm()
435 crypto_skcipher_reqsize(streamcipher)); in adiantum_init_tfm()
445 crypto_free_skcipher(streamcipher); in adiantum_init_tfm()
453 crypto_free_skcipher(tctx->streamcipher); in adiantum_exit_tfm()