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()
293 static inline struct crypto_aes_ctx *aes_ctx(void *raw_ctx) in aes_ctx() function
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()
508 struct crypto_aes_ctx *ctx = aes_ctx(crypto_blkcipher_ctx(desc->tfm)); in ctr_crypt()
599 .crypt_ctx = aes_ctx(ctx->raw_aes_ctx), in lrw_encrypt()
623 .crypt_ctx = aes_ctx(ctx->raw_aes_ctx), in lrw_decrypt()
723 aes_ctx(ctx->raw_tweak_ctx), in xts_encrypt()
724 aes_ctx(ctx->raw_crypt_ctx)); in xts_encrypt()
734 aes_ctx(ctx->raw_tweak_ctx), in xts_decrypt()
735 aes_ctx(ctx->raw_crypt_ctx)); in xts_decrypt()
749 .tweak_ctx = aes_ctx(ctx->raw_tweak_ctx), in xts_encrypt()
751 .crypt_ctx = aes_ctx(ctx->raw_crypt_ctx), in xts_encrypt()
774 .tweak_ctx = aes_ctx(ctx->raw_tweak_ctx), in xts_decrypt()
776 .crypt_ctx = aes_ctx(ctx->raw_crypt_ctx), in xts_decrypt()
1005 void *aes_ctx = &(ctx->aes_key_expanded); in __driver_rfc4106_encrypt() local
1058 aesni_gcm_enc_tfm(aes_ctx, dst, src, (unsigned long)req->cryptlen, iv, in __driver_rfc4106_encrypt()
1091 void *aes_ctx = &(ctx->aes_key_expanded); in __driver_rfc4106_decrypt() local
1147 aesni_gcm_dec_tfm(aes_ctx, dst, src, tempCipherLen, iv, in __driver_rfc4106_decrypt()