Lines Matching refs:aes_ctx

222 static inline struct crypto_aes_ctx *aes_ctx(void *raw_ctx)  in aes_ctx()  function
235 struct crypto_aes_ctx *ctx = aes_ctx(raw_ctx); in aes_set_key_common()
261 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in aesni_encrypt()
274 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in aesni_decrypt()
295 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in ecb_encrypt()
317 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in ecb_decrypt()
339 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in cbc_encrypt()
361 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in cbc_decrypt()
383 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in cts_cbc_encrypt()
439 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in cts_cbc_decrypt()
513 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in ctr_crypt()
562 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in xctr_crypt()
673 u8 *iv, void *aes_ctx, u8 *auth_tag, in gcmaes_crypt_by_sg() argument
711 aesni_gcm_init_avx_gen4(aes_ctx, data, iv, hash_subkey, assoc, in gcmaes_crypt_by_sg()
714 aesni_gcm_init_avx_gen2(aes_ctx, data, iv, hash_subkey, assoc, in gcmaes_crypt_by_sg()
717 aesni_gcm_init(aes_ctx, data, iv, hash_subkey, assoc, assoclen); in gcmaes_crypt_by_sg()
732 aesni_gcm_enc_update_avx_gen4(aes_ctx, data, in gcmaes_crypt_by_sg()
737 aesni_gcm_dec_update_avx_gen4(aes_ctx, data, in gcmaes_crypt_by_sg()
743 aesni_gcm_enc_update_avx_gen2(aes_ctx, data, in gcmaes_crypt_by_sg()
748 aesni_gcm_dec_update_avx_gen2(aes_ctx, data, in gcmaes_crypt_by_sg()
753 aesni_gcm_enc_update(aes_ctx, data, walk.dst.virt.addr, in gcmaes_crypt_by_sg()
756 aesni_gcm_dec_update(aes_ctx, data, walk.dst.virt.addr, in gcmaes_crypt_by_sg()
769 aesni_gcm_finalize_avx_gen4(aes_ctx, data, auth_tag, in gcmaes_crypt_by_sg()
772 aesni_gcm_finalize_avx_gen2(aes_ctx, data, auth_tag, in gcmaes_crypt_by_sg()
775 aesni_gcm_finalize(aes_ctx, data, auth_tag, auth_tag_len); in gcmaes_crypt_by_sg()
782 u8 *hash_subkey, u8 *iv, void *aes_ctx) in gcmaes_encrypt() argument
789 err = gcmaes_crypt_by_sg(true, req, assoclen, hash_subkey, iv, aes_ctx, in gcmaes_encrypt()
801 u8 *hash_subkey, u8 *iv, void *aes_ctx) in gcmaes_decrypt() argument
809 err = gcmaes_crypt_by_sg(false, req, assoclen, hash_subkey, iv, aes_ctx, in gcmaes_decrypt()
831 void *aes_ctx = &(ctx->aes_key_expanded); in helper_rfc4106_encrypt() local
851 aes_ctx); in helper_rfc4106_encrypt()
859 void *aes_ctx = &(ctx->aes_key_expanded); in helper_rfc4106_decrypt() local
879 aes_ctx); in helper_rfc4106_decrypt()
945 aesni_enc(aes_ctx(ctx->raw_tweak_ctx), walk.iv, walk.iv); in xts_crypt()
954 aesni_xts_encrypt(aes_ctx(ctx->raw_crypt_ctx), in xts_crypt()
958 aesni_xts_decrypt(aes_ctx(ctx->raw_crypt_ctx), in xts_crypt()
986 aesni_xts_encrypt(aes_ctx(ctx->raw_crypt_ctx), in xts_crypt()
990 aesni_xts_decrypt(aes_ctx(ctx->raw_crypt_ctx), in xts_crypt()
1162 void *aes_ctx = &(ctx->aes_key_expanded); in generic_gcmaes_encrypt() local
1171 aes_ctx); in generic_gcmaes_encrypt()
1179 void *aes_ctx = &(ctx->aes_key_expanded); in generic_gcmaes_decrypt() local
1187 aes_ctx); in generic_gcmaes_decrypt()