Lines Matching refs:ctfm
65 struct crypto_ablkcipher *tfm = ctx->ctfm; in ext4_fname_encrypt()
143 struct crypto_ablkcipher *tfm = ctx->ctfm; in ext4_fname_decrypt()
266 if (ctx->ctfm && !IS_ERR(ctx->ctfm)) in ext4_free_fname_crypto_ctx()
267 crypto_free_ablkcipher(ctx->ctfm); in ext4_free_fname_crypto_ctx()
323 ctx->ctfm = NULL; in ext4_alloc_fname_crypto_ctx()
373 if (ctx->ctfm == NULL) { in ext4_get_fname_crypto_ctx()
374 ctx->ctfm = crypto_alloc_ablkcipher("cts(cbc(aes))", in ext4_get_fname_crypto_ctx()
377 if (IS_ERR(ctx->ctfm)) { in ext4_get_fname_crypto_ctx()
378 res = PTR_ERR(ctx->ctfm); in ext4_get_fname_crypto_ctx()
382 ctx->ctfm = NULL; in ext4_get_fname_crypto_ctx()
386 if (ctx->ctfm == NULL) { in ext4_get_fname_crypto_ctx()
412 crypto_ablkcipher_clear_flags(ctx->ctfm, ~0); in ext4_get_fname_crypto_ctx()
413 crypto_tfm_set_flags(crypto_ablkcipher_tfm(ctx->ctfm), in ext4_get_fname_crypto_ctx()
423 res = crypto_ablkcipher_setkey(ctx->ctfm, in ext4_get_fname_crypto_ctx()