Lines Matching refs:rctx
223 struct adiantum_request_ctx *rctx = skcipher_request_ctx(req); in adiantum_hash_header() local
243 poly1305_core_emit(&state, NULL, &rctx->header_hash); in adiantum_hash_header()
252 struct adiantum_request_ctx *rctx = skcipher_request_ctx(req); in adiantum_hash_message() local
254 struct shash_desc *hash_desc = &rctx->u.hash_desc; in adiantum_hash_message()
286 struct adiantum_request_ctx *rctx = skcipher_request_ctx(req); in adiantum_finish() local
292 if (!rctx->enc) in adiantum_finish()
293 crypto_cipher_decrypt_one(tctx->blockcipher, rctx->rbuf.bytes, in adiantum_finish()
294 rctx->rbuf.bytes); in adiantum_finish()
304 le128_add(&digest, &digest, &rctx->header_hash); in adiantum_finish()
305 le128_sub(&rctx->rbuf.bignum, &rctx->rbuf.bignum, &digest); in adiantum_finish()
306 scatterwalk_map_and_copy(&rctx->rbuf.bignum, req->dst, in adiantum_finish()
326 struct adiantum_request_ctx *rctx = skcipher_request_ctx(req); in adiantum_crypt() local
335 rctx->enc = enc; in adiantum_crypt()
346 le128_add(&digest, &digest, &rctx->header_hash); in adiantum_crypt()
347 scatterwalk_map_and_copy(&rctx->rbuf.bignum, req->src, in adiantum_crypt()
349 le128_add(&rctx->rbuf.bignum, &rctx->rbuf.bignum, &digest); in adiantum_crypt()
353 crypto_cipher_encrypt_one(tctx->blockcipher, rctx->rbuf.bytes, in adiantum_crypt()
354 rctx->rbuf.bytes); in adiantum_crypt()
359 rctx->rbuf.words[4] = cpu_to_le32(1); in adiantum_crypt()
360 rctx->rbuf.words[5] = 0; in adiantum_crypt()
361 rctx->rbuf.words[6] = 0; in adiantum_crypt()
362 rctx->rbuf.words[7] = 0; in adiantum_crypt()
377 skcipher_request_set_tfm(&rctx->u.streamcipher_req, tctx->streamcipher); in adiantum_crypt()
378 skcipher_request_set_crypt(&rctx->u.streamcipher_req, req->src, in adiantum_crypt()
379 req->dst, stream_len, &rctx->rbuf); in adiantum_crypt()
380 skcipher_request_set_callback(&rctx->u.streamcipher_req, in adiantum_crypt()
383 return crypto_skcipher_encrypt(&rctx->u.streamcipher_req) ?: in adiantum_crypt()