Lines Matching refs:crypto_aes_ctx
57 struct crypto_aes_ctx aes_key_expanded
75 u8 raw_aes_ctx[sizeof(struct crypto_aes_ctx) + AESNI_ALIGN - 1];
79 u8 raw_tweak_ctx[sizeof(struct crypto_aes_ctx) + AESNI_ALIGN - 1];
80 u8 raw_crypt_ctx[sizeof(struct crypto_aes_ctx) + AESNI_ALIGN - 1];
83 asmlinkage int aesni_set_key(struct crypto_aes_ctx *ctx, const u8 *in_key,
85 asmlinkage void aesni_enc(struct crypto_aes_ctx *ctx, u8 *out,
87 asmlinkage void aesni_dec(struct crypto_aes_ctx *ctx, u8 *out,
89 asmlinkage void aesni_ecb_enc(struct crypto_aes_ctx *ctx, u8 *out,
91 asmlinkage void aesni_ecb_dec(struct crypto_aes_ctx *ctx, u8 *out,
93 asmlinkage void aesni_cbc_enc(struct crypto_aes_ctx *ctx, u8 *out,
95 asmlinkage void aesni_cbc_dec(struct crypto_aes_ctx *ctx, u8 *out,
106 static void (*aesni_ctr_enc_tfm)(struct crypto_aes_ctx *ctx, u8 *out,
108 asmlinkage void aesni_ctr_enc(struct crypto_aes_ctx *ctx, u8 *out,
111 asmlinkage void aesni_xts_crypt8(struct crypto_aes_ctx *ctx, u8 *out,
186 struct crypto_aes_ctx *aes_ctx = (struct crypto_aes_ctx*)ctx; in aesni_gcm_enc_avx()
202 struct crypto_aes_ctx *aes_ctx = (struct crypto_aes_ctx*)ctx; in aesni_gcm_dec_avx()
237 struct crypto_aes_ctx *aes_ctx = (struct crypto_aes_ctx*)ctx; in aesni_gcm_enc_avx2()
257 struct crypto_aes_ctx *aes_ctx = (struct crypto_aes_ctx*)ctx; in aesni_gcm_dec_avx2()
294 static inline struct crypto_aes_ctx *aes_ctx(void *raw_ctx) in aes_ctx()
301 return (struct crypto_aes_ctx *)ALIGN(addr, align); in aes_ctx()
307 struct crypto_aes_ctx *ctx = aes_ctx(raw_ctx); in aes_set_key_common()
336 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in aes_encrypt()
349 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in aes_decrypt()
362 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in __aes_encrypt()
369 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in __aes_decrypt()
378 struct crypto_aes_ctx *ctx = aes_ctx(crypto_blkcipher_ctx(desc->tfm)); in ecb_encrypt()
402 struct crypto_aes_ctx *ctx = aes_ctx(crypto_blkcipher_ctx(desc->tfm)); in ecb_decrypt()
426 struct crypto_aes_ctx *ctx = aes_ctx(crypto_blkcipher_ctx(desc->tfm)); in cbc_encrypt()
450 struct crypto_aes_ctx *ctx = aes_ctx(crypto_blkcipher_ctx(desc->tfm)); in cbc_decrypt()
471 static void ctr_crypt_final(struct crypto_aes_ctx *ctx, in ctr_crypt_final()
487 static void aesni_ctr_enc_avx_tfm(struct crypto_aes_ctx *ctx, u8 *out, in aesni_ctr_enc_avx_tfm()
509 struct crypto_aes_ctx *ctx = aes_ctx(crypto_blkcipher_ctx(desc->tfm)); in ctr_crypt()
1133 .cra_ctxsize = sizeof(struct crypto_aes_ctx) +
1152 .cra_ctxsize = sizeof(struct crypto_aes_ctx) +
1172 .cra_ctxsize = sizeof(struct crypto_aes_ctx) +
1193 .cra_ctxsize = sizeof(struct crypto_aes_ctx) +
1258 .cra_ctxsize = sizeof(struct crypto_aes_ctx) +