Lines Matching refs:crypto_aes_ctx

53 	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()
293 static inline struct crypto_aes_ctx *aes_ctx(void *raw_ctx) in aes_ctx()
300 return (struct crypto_aes_ctx *)ALIGN(addr, align); in aes_ctx()
306 struct crypto_aes_ctx *ctx = aes_ctx(raw_ctx); in aes_set_key_common()
335 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in aes_encrypt()
348 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in aes_decrypt()
361 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in __aes_encrypt()
368 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in __aes_decrypt()
377 struct crypto_aes_ctx *ctx = aes_ctx(crypto_blkcipher_ctx(desc->tfm)); in ecb_encrypt()
401 struct crypto_aes_ctx *ctx = aes_ctx(crypto_blkcipher_ctx(desc->tfm)); in ecb_decrypt()
425 struct crypto_aes_ctx *ctx = aes_ctx(crypto_blkcipher_ctx(desc->tfm)); in cbc_encrypt()
449 struct crypto_aes_ctx *ctx = aes_ctx(crypto_blkcipher_ctx(desc->tfm)); in cbc_decrypt()
470 static void ctr_crypt_final(struct crypto_aes_ctx *ctx, in ctr_crypt_final()
486 static void aesni_ctr_enc_avx_tfm(struct crypto_aes_ctx *ctx, u8 *out, in aesni_ctr_enc_avx_tfm()
508 struct crypto_aes_ctx *ctx = aes_ctx(crypto_blkcipher_ctx(desc->tfm)); in ctr_crypt()
1250 .cra_ctxsize = sizeof(struct crypto_aes_ctx) +
1269 .cra_ctxsize = sizeof(struct crypto_aes_ctx) +
1289 .cra_ctxsize = sizeof(struct crypto_aes_ctx) +
1310 .cra_ctxsize = sizeof(struct crypto_aes_ctx) +
1375 .cra_ctxsize = sizeof(struct crypto_aes_ctx) +