Searched refs:crypt_ctx (Results 1 - 19 of 19) sorted by relevance

/linux-4.4.14/include/crypto/
H A Dxts.h17 void *crypt_ctx; member in struct:xts_crypt_req
H A Dlrw.h35 void *crypt_ctx; member in struct:lrw_crypt_req
/linux-4.4.14/arch/x86/crypto/
H A Dserpent_sse2_glue.c249 struct crypt_priv crypt_ctx = { lrw_encrypt() local
258 .crypt_ctx = &crypt_ctx, lrw_encrypt()
265 serpent_fpu_end(crypt_ctx.fpu_enabled); lrw_encrypt()
275 struct crypt_priv crypt_ctx = { lrw_decrypt() local
284 .crypt_ctx = &crypt_ctx, lrw_decrypt()
291 serpent_fpu_end(crypt_ctx.fpu_enabled); lrw_decrypt()
305 struct serpent_ctx crypt_ctx; member in struct:serpent_xts_ctx
324 err = __serpent_setkey(&ctx->crypt_ctx, key, keylen / 2); xts_serpent_setkey()
337 struct crypt_priv crypt_ctx = { xts_encrypt() local
338 .ctx = &ctx->crypt_ctx, xts_encrypt()
347 .crypt_ctx = &crypt_ctx, xts_encrypt()
354 serpent_fpu_end(crypt_ctx.fpu_enabled); xts_encrypt()
364 struct crypt_priv crypt_ctx = { xts_decrypt() local
365 .ctx = &ctx->crypt_ctx, xts_decrypt()
374 .crypt_ctx = &crypt_ctx, xts_decrypt()
381 serpent_fpu_end(crypt_ctx.fpu_enabled); xts_decrypt()
H A Dcamellia_aesni_avx_glue.c266 struct crypt_priv crypt_ctx = { lrw_encrypt() local
275 .crypt_ctx = &crypt_ctx, lrw_encrypt()
282 camellia_fpu_end(crypt_ctx.fpu_enabled); lrw_encrypt()
292 struct crypt_priv crypt_ctx = { lrw_decrypt() local
301 .crypt_ctx = &crypt_ctx, lrw_decrypt()
308 camellia_fpu_end(crypt_ctx.fpu_enabled); lrw_decrypt()
320 &ctx->tweak_ctx, &ctx->crypt_ctx); xts_encrypt()
330 &ctx->tweak_ctx, &ctx->crypt_ctx); xts_decrypt()
H A Dserpent_avx2_glue.c240 struct crypt_priv crypt_ctx = { lrw_encrypt() local
249 .crypt_ctx = &crypt_ctx, lrw_encrypt()
256 serpent_fpu_end(crypt_ctx.fpu_enabled); lrw_encrypt()
266 struct crypt_priv crypt_ctx = { lrw_decrypt() local
275 .crypt_ctx = &crypt_ctx, lrw_decrypt()
282 serpent_fpu_end(crypt_ctx.fpu_enabled); lrw_decrypt()
294 &ctx->tweak_ctx, &ctx->crypt_ctx); xts_encrypt()
304 &ctx->tweak_ctx, &ctx->crypt_ctx); xts_decrypt()
H A Dcast6_avx_glue.c266 struct crypt_priv crypt_ctx = { lrw_encrypt() local
275 .crypt_ctx = &crypt_ctx, lrw_encrypt()
282 cast6_fpu_end(crypt_ctx.fpu_enabled); lrw_encrypt()
292 struct crypt_priv crypt_ctx = { lrw_decrypt() local
301 .crypt_ctx = &crypt_ctx, lrw_decrypt()
308 cast6_fpu_end(crypt_ctx.fpu_enabled); lrw_decrypt()
322 struct cast6_ctx crypt_ctx; member in struct:cast6_xts_ctx
341 err = __cast6_setkey(&ctx->crypt_ctx, key, keylen / 2, flags); xts_cast6_setkey()
357 &ctx->tweak_ctx, &ctx->crypt_ctx); xts_encrypt()
367 &ctx->tweak_ctx, &ctx->crypt_ctx); xts_decrypt()
H A Dserpent_avx_glue.c276 struct crypt_priv crypt_ctx = { lrw_encrypt() local
285 .crypt_ctx = &crypt_ctx, lrw_encrypt()
292 serpent_fpu_end(crypt_ctx.fpu_enabled); lrw_encrypt()
302 struct crypt_priv crypt_ctx = { lrw_decrypt() local
311 .crypt_ctx = &crypt_ctx, lrw_decrypt()
318 serpent_fpu_end(crypt_ctx.fpu_enabled); lrw_decrypt()
347 err = __serpent_setkey(&ctx->crypt_ctx, key, keylen / 2); xts_serpent_setkey()
363 &ctx->tweak_ctx, &ctx->crypt_ctx); xts_encrypt()
373 &ctx->tweak_ctx, &ctx->crypt_ctx); xts_decrypt()
H A Dcamellia_aesni_avx2_glue.c274 struct crypt_priv crypt_ctx = { lrw_encrypt() local
283 .crypt_ctx = &crypt_ctx, lrw_encrypt()
290 camellia_fpu_end(crypt_ctx.fpu_enabled); lrw_encrypt()
300 struct crypt_priv crypt_ctx = { lrw_decrypt() local
309 .crypt_ctx = &crypt_ctx, lrw_decrypt()
316 camellia_fpu_end(crypt_ctx.fpu_enabled); lrw_decrypt()
328 &ctx->tweak_ctx, &ctx->crypt_ctx); xts_encrypt()
338 &ctx->tweak_ctx, &ctx->crypt_ctx); xts_decrypt()
H A Dtwofish_avx_glue.c270 struct crypt_priv crypt_ctx = { lrw_encrypt() local
279 .crypt_ctx = &crypt_ctx, lrw_encrypt()
286 twofish_fpu_end(crypt_ctx.fpu_enabled); lrw_encrypt()
296 struct crypt_priv crypt_ctx = { lrw_decrypt() local
305 .crypt_ctx = &crypt_ctx, lrw_decrypt()
312 twofish_fpu_end(crypt_ctx.fpu_enabled); lrw_decrypt()
324 &ctx->tweak_ctx, &ctx->crypt_ctx); xts_encrypt()
334 &ctx->tweak_ctx, &ctx->crypt_ctx); xts_decrypt()
H A Dtwofish_glue_3way.c241 .crypt_ctx = &ctx->twofish_ctx, lrw_encrypt()
258 .crypt_ctx = &ctx->twofish_ctx, lrw_decrypt()
289 err = __twofish_setkey(&ctx->crypt_ctx, key, keylen / 2, flags); xts_twofish_setkey()
310 .crypt_ctx = &ctx->crypt_ctx, xts_encrypt()
328 .crypt_ctx = &ctx->crypt_ctx, xts_decrypt()
H A Dglue_helper.c347 void *tweak_ctx, void *crypt_ctx) glue_xts_crypt_128bit()
370 nbytes = __glue_xts_crypt_128bit(gctx, crypt_ctx, desc, &walk); glue_xts_crypt_128bit()
343 glue_xts_crypt_128bit(const struct common_glue_ctx *gctx, struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes, void (*tweak_fn)(void *ctx, u8 *dst, const u8 *src), void *tweak_ctx, void *crypt_ctx) glue_xts_crypt_128bit() argument
H A Dcamellia_glue.c1467 .crypt_ctx = &ctx->camellia_ctx, lrw_encrypt()
1484 .crypt_ctx = &ctx->camellia_ctx, lrw_decrypt()
1515 err = __camellia_setkey(&ctx->crypt_ctx, key, keylen / 2, flags); xts_camellia_setkey()
1536 .crypt_ctx = &ctx->crypt_ctx, xts_encrypt()
1554 .crypt_ctx = &ctx->crypt_ctx, xts_decrypt()
H A Daesni-intel_glue.c600 .crypt_ctx = aes_ctx(ctx->raw_aes_ctx), lrw_encrypt()
624 .crypt_ctx = aes_ctx(ctx->raw_aes_ctx), lrw_decrypt()
752 .crypt_ctx = aes_ctx(ctx->raw_crypt_ctx), xts_encrypt()
777 .crypt_ctx = aes_ctx(ctx->raw_crypt_ctx), xts_decrypt()
/linux-4.4.14/arch/x86/include/asm/crypto/
H A Dtwofish.h16 struct twofish_ctx crypt_ctx; member in struct:twofish_xts_ctx
H A Dserpent-avx.h16 struct serpent_ctx crypt_ctx; member in struct:serpent_xts_ctx
H A Dcamellia.h25 struct camellia_ctx crypt_ctx; member in struct:camellia_xts_ctx
H A Dglue_helper.h140 void *crypt_ctx);
/linux-4.4.14/crypto/
H A Dxts.c212 req->crypt_fn(req->crypt_ctx, (u8 *)dst, xts_crypt()
H A Dlrw.c269 req->crypt_fn(req->crypt_ctx, (u8 *)dst, lrw_crypt()

Completed in 225 milliseconds