Lines Matching refs:aes_ctx
211 struct crypto_aes_ctx *aes_ctx = (struct crypto_aes_ctx*)ctx; in aesni_gcm_enc_avx() local
212 if ((plaintext_len < AVX_GEN2_OPTSIZE) || (aes_ctx-> key_length != AES_KEYSIZE_128)){ in aesni_gcm_enc_avx()
229 struct crypto_aes_ctx *aes_ctx = (struct crypto_aes_ctx*)ctx; in aesni_gcm_dec_avx() local
230 if ((ciphertext_len < AVX_GEN2_OPTSIZE) || (aes_ctx-> key_length != AES_KEYSIZE_128)) { in aesni_gcm_dec_avx()
266 struct crypto_aes_ctx *aes_ctx = (struct crypto_aes_ctx*)ctx; in aesni_gcm_enc_avx2() local
267 if ((plaintext_len < AVX_GEN2_OPTSIZE) || (aes_ctx-> key_length != AES_KEYSIZE_128)) { in aesni_gcm_enc_avx2()
288 struct crypto_aes_ctx *aes_ctx = (struct crypto_aes_ctx*)ctx; in aesni_gcm_dec_avx2() local
289 if ((ciphertext_len < AVX_GEN2_OPTSIZE) || (aes_ctx-> key_length != AES_KEYSIZE_128)) { in aesni_gcm_dec_avx2()
340 static inline struct crypto_aes_ctx *aes_ctx(void *raw_ctx) in aes_ctx() function
353 struct crypto_aes_ctx *ctx = aes_ctx(raw_ctx); in aes_set_key_common()
382 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in aes_encrypt()
395 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in aes_decrypt()
408 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in __aes_encrypt()
415 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in __aes_decrypt()
430 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in ecb_encrypt()
452 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in ecb_decrypt()
474 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in cbc_encrypt()
496 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in cbc_decrypt()
553 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in ctr_crypt()
658 aes_ctx(ctx->raw_tweak_ctx), in xts_encrypt()
659 aes_ctx(ctx->raw_crypt_ctx)); in xts_encrypt()
669 aes_ctx(ctx->raw_tweak_ctx), in xts_decrypt()
670 aes_ctx(ctx->raw_crypt_ctx)); in xts_decrypt()
796 u8 *iv, void *aes_ctx) in gcmaes_crypt_by_sg() argument
841 aesni_gcm_init(aes_ctx, &data, iv, in gcmaes_crypt_by_sg()
852 aesni_gcm_enc_update(aes_ctx, &data, in gcmaes_crypt_by_sg()
855 aesni_gcm_dec_update(aes_ctx, &data, in gcmaes_crypt_by_sg()
873 aesni_gcm_enc_update(aes_ctx, &data, in gcmaes_crypt_by_sg()
876 aesni_gcm_dec_update(aes_ctx, &data, in gcmaes_crypt_by_sg()
885 aesni_gcm_finalize(aes_ctx, &data, authTag, auth_tag_len); in gcmaes_crypt_by_sg()
916 u8 *hash_subkey, u8 *iv, void *aes_ctx) in gcmaes_encrypt() argument
926 if (((struct crypto_aes_ctx *)aes_ctx)->key_length != AES_KEYSIZE_128 || in gcmaes_encrypt()
930 aes_ctx); in gcmaes_encrypt()
960 aesni_gcm_enc_tfm(aes_ctx, &data, dst, src, req->cryptlen, iv, in gcmaes_encrypt()
985 u8 *hash_subkey, u8 *iv, void *aes_ctx) in gcmaes_decrypt() argument
998 if (((struct crypto_aes_ctx *)aes_ctx)->key_length != AES_KEYSIZE_128 || in gcmaes_decrypt()
1002 aes_ctx); in gcmaes_decrypt()
1034 aesni_gcm_dec_tfm(aes_ctx, &data, dst, src, tempCipherLen, iv, in gcmaes_decrypt()
1065 void *aes_ctx = &(ctx->aes_key_expanded); in helper_rfc4106_encrypt() local
1084 aes_ctx); in helper_rfc4106_encrypt()
1092 void *aes_ctx = &(ctx->aes_key_expanded); in helper_rfc4106_decrypt() local
1111 aes_ctx); in helper_rfc4106_decrypt()
1287 void *aes_ctx = &(ctx->aes_key_expanded); in generic_gcmaes_encrypt() local
1295 aes_ctx); in generic_gcmaes_encrypt()
1303 void *aes_ctx = &(ctx->aes_key_expanded); in generic_gcmaes_decrypt() local
1310 aes_ctx); in generic_gcmaes_decrypt()