Lines Matching refs:rctx
231 struct adiantum_request_ctx *rctx = skcipher_request_ctx(req); in adiantum_hash_header() local
251 poly1305_core_emit(&state, &rctx->header_hash); in adiantum_hash_header()
260 struct adiantum_request_ctx *rctx = skcipher_request_ctx(req); in adiantum_hash_message() local
262 struct shash_desc *hash_desc = &rctx->u.hash_desc; in adiantum_hash_message()
294 struct adiantum_request_ctx *rctx = skcipher_request_ctx(req); in adiantum_finish() local
300 if (!rctx->enc) in adiantum_finish()
301 crypto_cipher_decrypt_one(tctx->blockcipher, rctx->rbuf.bytes, in adiantum_finish()
302 rctx->rbuf.bytes); in adiantum_finish()
312 le128_add(&digest, &digest, &rctx->header_hash); in adiantum_finish()
313 le128_sub(&rctx->rbuf.bignum, &rctx->rbuf.bignum, &digest); in adiantum_finish()
314 scatterwalk_map_and_copy(&rctx->rbuf.bignum, req->dst, in adiantum_finish()
334 struct adiantum_request_ctx *rctx = skcipher_request_ctx(req); in adiantum_crypt() local
343 rctx->enc = enc; in adiantum_crypt()
354 le128_add(&digest, &digest, &rctx->header_hash); in adiantum_crypt()
355 scatterwalk_map_and_copy(&rctx->rbuf.bignum, req->src, in adiantum_crypt()
357 le128_add(&rctx->rbuf.bignum, &rctx->rbuf.bignum, &digest); in adiantum_crypt()
361 crypto_cipher_encrypt_one(tctx->blockcipher, rctx->rbuf.bytes, in adiantum_crypt()
362 rctx->rbuf.bytes); in adiantum_crypt()
367 rctx->rbuf.words[4] = cpu_to_le32(1); in adiantum_crypt()
368 rctx->rbuf.words[5] = 0; in adiantum_crypt()
369 rctx->rbuf.words[6] = 0; in adiantum_crypt()
370 rctx->rbuf.words[7] = 0; in adiantum_crypt()
385 skcipher_request_set_tfm(&rctx->u.streamcipher_req, tctx->streamcipher); in adiantum_crypt()
386 skcipher_request_set_crypt(&rctx->u.streamcipher_req, req->src, in adiantum_crypt()
387 req->dst, stream_len, &rctx->rbuf); in adiantum_crypt()
388 skcipher_request_set_callback(&rctx->u.streamcipher_req, in adiantum_crypt()
391 return crypto_skcipher_encrypt(&rctx->u.streamcipher_req) ?: in adiantum_crypt()