Lines Matching defs:ctx
181 static void aesni_gcm_enc_avx(void *ctx, u8 *out, in aesni_gcm_enc_avx()
197 static void aesni_gcm_dec_avx(void *ctx, u8 *out, in aesni_gcm_dec_avx()
232 static void aesni_gcm_enc_avx2(void *ctx, u8 *out, in aesni_gcm_enc_avx2()
252 static void aesni_gcm_dec_avx2(void *ctx, u8 *out, in aesni_gcm_dec_avx2()
306 struct crypto_aes_ctx *ctx = aes_ctx(raw_ctx); in aes_set_key_common() local
335 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in aes_encrypt() local
348 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in aes_decrypt() local
361 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in __aes_encrypt() local
368 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in __aes_decrypt() local
377 struct crypto_aes_ctx *ctx = aes_ctx(crypto_blkcipher_ctx(desc->tfm)); in ecb_encrypt() local
401 struct crypto_aes_ctx *ctx = aes_ctx(crypto_blkcipher_ctx(desc->tfm)); in ecb_decrypt() local
425 struct crypto_aes_ctx *ctx = aes_ctx(crypto_blkcipher_ctx(desc->tfm)); in cbc_encrypt() local
449 struct crypto_aes_ctx *ctx = aes_ctx(crypto_blkcipher_ctx(desc->tfm)); in cbc_decrypt() local
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() local
558 static void lrw_xts_encrypt_callback(void *ctx, u8 *blks, unsigned int nbytes) in lrw_xts_encrypt_callback()
563 static void lrw_xts_decrypt_callback(void *ctx, u8 *blks, unsigned int nbytes) in lrw_xts_decrypt_callback()
571 struct aesni_lrw_ctx *ctx = crypto_tfm_ctx(tfm); in lrw_aesni_setkey() local
584 struct aesni_lrw_ctx *ctx = crypto_tfm_ctx(tfm); in lrw_aesni_exit_tfm() local
592 struct aesni_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in lrw_encrypt() local
616 struct aesni_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in lrw_decrypt() local
640 struct aesni_xts_ctx *ctx = crypto_tfm_ctx(tfm); in xts_aesni_setkey() local
663 static void aesni_xts_tweak(void *ctx, u8 *out, const u8 *in) in aesni_xts_tweak()
670 static void aesni_xts_enc(void *ctx, u128 *dst, const u128 *src, le128 *iv) in aesni_xts_enc()
675 static void aesni_xts_dec(void *ctx, u128 *dst, const u128 *src, le128 *iv) in aesni_xts_dec()
680 static void aesni_xts_enc8(void *ctx, u128 *dst, const u128 *src, le128 *iv) in aesni_xts_enc8()
685 static void aesni_xts_dec8(void *ctx, u128 *dst, const u128 *src, le128 *iv) in aesni_xts_dec8()
719 struct aesni_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in xts_encrypt() local
730 struct aesni_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in xts_decrypt() local
743 struct aesni_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in xts_encrypt() local
768 struct aesni_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in xts_decrypt() local
796 struct aesni_rfc4106_gcm_ctx *ctx = (struct aesni_rfc4106_gcm_ctx *) in rfc4106_init() local
817 struct aesni_rfc4106_gcm_ctx *ctx = in rfc4106_exit() local
900 struct aesni_rfc4106_gcm_ctx *ctx = aesni_rfc4106_gcm_ctx_get(aead); in common_rfc4106_set_key() local
953 struct aesni_rfc4106_gcm_ctx *ctx = aesni_rfc4106_gcm_ctx_get(parent); in rfc4106_set_key() local
987 struct aesni_rfc4106_gcm_ctx *ctx = aesni_rfc4106_gcm_ctx_get(parent); in rfc4106_set_authsize() local
1003 struct aesni_rfc4106_gcm_ctx *ctx = aesni_rfc4106_gcm_ctx_get(tfm); in __driver_rfc4106_encrypt() local
1089 struct aesni_rfc4106_gcm_ctx *ctx = aesni_rfc4106_gcm_ctx_get(tfm); in __driver_rfc4106_decrypt() local
1175 struct aesni_rfc4106_gcm_ctx *ctx = aesni_rfc4106_gcm_ctx_get(tfm); in rfc4106_encrypt() local
1196 struct aesni_rfc4106_gcm_ctx *ctx = aesni_rfc4106_gcm_ctx_get(tfm); in rfc4106_decrypt() local