Home
last modified time | relevance | path

Searched refs:creq (Results 1 – 2 of 2) sorted by relevance

/crypto/
Dchacha20poly1305.c129 struct chacha_req *creq = &rctx->u.chacha; in chacha_decrypt() local
136 chacha_iv(creq->iv, req, 1); in chacha_decrypt()
143 skcipher_request_set_callback(&creq->req, rctx->flags, in chacha_decrypt()
145 skcipher_request_set_tfm(&creq->req, ctx->chacha); in chacha_decrypt()
146 skcipher_request_set_crypt(&creq->req, src, dst, in chacha_decrypt()
147 rctx->cryptlen, creq->iv); in chacha_decrypt()
148 err = crypto_skcipher_decrypt(&creq->req); in chacha_decrypt()
367 struct chacha_req *creq = &rctx->u.chacha; in poly_genkey() local
379 sg_init_one(creq->src, rctx->key, sizeof(rctx->key)); in poly_genkey()
381 chacha_iv(creq->iv, req, 0); in poly_genkey()
[all …]
Dpcrypt.c88 struct aead_request *creq = pcrypt_request_ctx(preq); in pcrypt_aead_encrypt() local
99 aead_request_set_tfm(creq, ctx->child); in pcrypt_aead_encrypt()
100 aead_request_set_callback(creq, flags & ~CRYPTO_TFM_REQ_MAY_SLEEP, in pcrypt_aead_encrypt()
102 aead_request_set_crypt(creq, req->src, req->dst, in pcrypt_aead_encrypt()
104 aead_request_set_ad(creq, req->assoclen); in pcrypt_aead_encrypt()
130 struct aead_request *creq = pcrypt_request_ctx(preq); in pcrypt_aead_decrypt() local
141 aead_request_set_tfm(creq, ctx->child); in pcrypt_aead_decrypt()
142 aead_request_set_callback(creq, flags & ~CRYPTO_TFM_REQ_MAY_SLEEP, in pcrypt_aead_decrypt()
144 aead_request_set_crypt(creq, req->src, req->dst, in pcrypt_aead_decrypt()
146 aead_request_set_ad(creq, req->assoclen); in pcrypt_aead_decrypt()