Lines Matching refs:aes_ctx
186 struct crypto_aes_ctx *aes_ctx = (struct crypto_aes_ctx*)ctx; in aesni_gcm_enc_avx() local
187 if ((plaintext_len < AVX_GEN2_OPTSIZE) || (aes_ctx-> key_length != AES_KEYSIZE_128)){ in aesni_gcm_enc_avx()
202 struct crypto_aes_ctx *aes_ctx = (struct crypto_aes_ctx*)ctx; in aesni_gcm_dec_avx() local
203 if ((ciphertext_len < AVX_GEN2_OPTSIZE) || (aes_ctx-> key_length != AES_KEYSIZE_128)) { in aesni_gcm_dec_avx()
237 struct crypto_aes_ctx *aes_ctx = (struct crypto_aes_ctx*)ctx; in aesni_gcm_enc_avx2() local
238 if ((plaintext_len < AVX_GEN2_OPTSIZE) || (aes_ctx-> key_length != AES_KEYSIZE_128)) { in aesni_gcm_enc_avx2()
257 struct crypto_aes_ctx *aes_ctx = (struct crypto_aes_ctx*)ctx; in aesni_gcm_dec_avx2() local
258 if ((ciphertext_len < AVX_GEN2_OPTSIZE) || (aes_ctx-> key_length != AES_KEYSIZE_128)) { in aesni_gcm_dec_avx2()
294 static inline struct crypto_aes_ctx *aes_ctx(void *raw_ctx) in aes_ctx() function
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()
509 struct crypto_aes_ctx *ctx = aes_ctx(crypto_blkcipher_ctx(desc->tfm)); in ctr_crypt()
600 .crypt_ctx = aes_ctx(ctx->raw_aes_ctx), in lrw_encrypt()
624 .crypt_ctx = aes_ctx(ctx->raw_aes_ctx), in lrw_decrypt()
724 aes_ctx(ctx->raw_tweak_ctx), in xts_encrypt()
725 aes_ctx(ctx->raw_crypt_ctx)); in xts_encrypt()
735 aes_ctx(ctx->raw_tweak_ctx), in xts_decrypt()
736 aes_ctx(ctx->raw_crypt_ctx)); in xts_decrypt()
750 .tweak_ctx = aes_ctx(ctx->raw_tweak_ctx), in xts_encrypt()
752 .crypt_ctx = aes_ctx(ctx->raw_crypt_ctx), in xts_encrypt()
775 .tweak_ctx = aes_ctx(ctx->raw_tweak_ctx), in xts_decrypt()
777 .crypt_ctx = aes_ctx(ctx->raw_crypt_ctx), in xts_decrypt()
946 void *aes_ctx = &(ctx->aes_key_expanded); in helper_rfc4106_encrypt() local
992 aesni_gcm_enc_tfm(aes_ctx, dst, src, req->cryptlen, iv, in helper_rfc4106_encrypt()
1025 void *aes_ctx = &(ctx->aes_key_expanded); in helper_rfc4106_decrypt() local
1074 aesni_gcm_dec_tfm(aes_ctx, dst, src, tempCipherLen, iv, in helper_rfc4106_decrypt()