/linux-4.4.14/include/crypto/ |
H A D | xts.h | 17 void *crypt_ctx; member in struct:xts_crypt_req
|
H A D | lrw.h | 35 void *crypt_ctx; member in struct:lrw_crypt_req
|
/linux-4.4.14/arch/x86/crypto/ |
H A D | serpent_sse2_glue.c | 249 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 D | camellia_aesni_avx_glue.c | 266 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 D | serpent_avx2_glue.c | 240 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 D | cast6_avx_glue.c | 266 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 D | serpent_avx_glue.c | 276 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 D | camellia_aesni_avx2_glue.c | 274 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 D | twofish_avx_glue.c | 270 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 D | twofish_glue_3way.c | 241 .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 D | glue_helper.c | 347 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 D | camellia_glue.c | 1467 .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 D | aesni-intel_glue.c | 600 .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 D | twofish.h | 16 struct twofish_ctx crypt_ctx; member in struct:twofish_xts_ctx
|
H A D | serpent-avx.h | 16 struct serpent_ctx crypt_ctx; member in struct:serpent_xts_ctx
|
H A D | camellia.h | 25 struct camellia_ctx crypt_ctx; member in struct:camellia_xts_ctx
|
H A D | glue_helper.h | 140 void *crypt_ctx);
|
/linux-4.4.14/crypto/ |
H A D | xts.c | 212 req->crypt_fn(req->crypt_ctx, (u8 *)dst, xts_crypt()
|
H A D | lrw.c | 269 req->crypt_fn(req->crypt_ctx, (u8 *)dst, lrw_crypt()
|