Searched refs:aes_ctx (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/drivers/crypto/
H A Dpadlock-aes.c57 struct aes_ctx { struct
84 static inline struct aes_ctx *aes_ctx_common(void *ctx) aes_ctx_common()
91 return (struct aes_ctx *)ALIGN(addr, align); aes_ctx_common()
94 static inline struct aes_ctx *aes_ctx(struct crypto_tfm *tfm) aes_ctx() function
99 static inline struct aes_ctx *blk_aes_ctx(struct crypto_blkcipher *tfm) blk_aes_ctx()
107 struct aes_ctx *ctx = aes_ctx(tfm); aes_set_key()
300 struct aes_ctx *ctx = aes_ctx(tfm); aes_encrypt()
312 struct aes_ctx *ctx = aes_ctx(tfm); aes_decrypt()
328 .cra_ctxsize = sizeof(struct aes_ctx),
346 struct aes_ctx *ctx = blk_aes_ctx(desc->tfm); ecb_aes_encrypt()
375 struct aes_ctx *ctx = blk_aes_ctx(desc->tfm); ecb_aes_decrypt()
406 .cra_ctxsize = sizeof(struct aes_ctx),
425 struct aes_ctx *ctx = blk_aes_ctx(desc->tfm); cbc_aes_encrypt()
456 struct aes_ctx *ctx = blk_aes_ctx(desc->tfm); cbc_aes_decrypt()
488 .cra_ctxsize = sizeof(struct aes_ctx),
/linux-4.4.14/arch/x86/crypto/
H A Daesni-intel_glue.c186 struct crypto_aes_ctx *aes_ctx = (struct crypto_aes_ctx*)ctx; aesni_gcm_enc_avx() local
187 if ((plaintext_len < AVX_GEN2_OPTSIZE) || (aes_ctx-> key_length != AES_KEYSIZE_128)){ aesni_gcm_enc_avx()
202 struct crypto_aes_ctx *aes_ctx = (struct crypto_aes_ctx*)ctx; aesni_gcm_dec_avx() local
203 if ((ciphertext_len < AVX_GEN2_OPTSIZE) || (aes_ctx-> key_length != AES_KEYSIZE_128)) { aesni_gcm_dec_avx()
237 struct crypto_aes_ctx *aes_ctx = (struct crypto_aes_ctx*)ctx; aesni_gcm_enc_avx2() local
238 if ((plaintext_len < AVX_GEN2_OPTSIZE) || (aes_ctx-> key_length != AES_KEYSIZE_128)) { aesni_gcm_enc_avx2()
257 struct crypto_aes_ctx *aes_ctx = (struct crypto_aes_ctx*)ctx; aesni_gcm_dec_avx2() local
258 if ((ciphertext_len < AVX_GEN2_OPTSIZE) || (aes_ctx-> key_length != AES_KEYSIZE_128)) { aesni_gcm_dec_avx2()
294 static inline struct crypto_aes_ctx *aes_ctx(void *raw_ctx) aes_ctx() function
307 struct crypto_aes_ctx *ctx = aes_ctx(raw_ctx); aes_set_key_common()
336 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); aes_encrypt()
349 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); aes_decrypt()
362 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); __aes_encrypt()
369 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); __aes_decrypt()
378 struct crypto_aes_ctx *ctx = aes_ctx(crypto_blkcipher_ctx(desc->tfm)); ecb_encrypt()
402 struct crypto_aes_ctx *ctx = aes_ctx(crypto_blkcipher_ctx(desc->tfm)); ecb_decrypt()
426 struct crypto_aes_ctx *ctx = aes_ctx(crypto_blkcipher_ctx(desc->tfm)); cbc_encrypt()
450 struct crypto_aes_ctx *ctx = aes_ctx(crypto_blkcipher_ctx(desc->tfm)); cbc_decrypt()
509 struct crypto_aes_ctx *ctx = aes_ctx(crypto_blkcipher_ctx(desc->tfm)); ctr_crypt()
600 .crypt_ctx = aes_ctx(ctx->raw_aes_ctx), lrw_encrypt()
624 .crypt_ctx = aes_ctx(ctx->raw_aes_ctx), lrw_decrypt()
724 aes_ctx(ctx->raw_tweak_ctx), xts_encrypt()
725 aes_ctx(ctx->raw_crypt_ctx)); xts_encrypt()
735 aes_ctx(ctx->raw_tweak_ctx), xts_decrypt()
736 aes_ctx(ctx->raw_crypt_ctx)); xts_decrypt()
750 .tweak_ctx = aes_ctx(ctx->raw_tweak_ctx), xts_encrypt()
752 .crypt_ctx = aes_ctx(ctx->raw_crypt_ctx), xts_encrypt()
775 .tweak_ctx = aes_ctx(ctx->raw_tweak_ctx), xts_decrypt()
777 .crypt_ctx = aes_ctx(ctx->raw_crypt_ctx), xts_decrypt()
946 void *aes_ctx = &(ctx->aes_key_expanded); helper_rfc4106_encrypt() local
992 aesni_gcm_enc_tfm(aes_ctx, dst, src, req->cryptlen, iv, helper_rfc4106_encrypt()
1025 void *aes_ctx = &(ctx->aes_key_expanded); helper_rfc4106_decrypt() local
1074 aesni_gcm_dec_tfm(aes_ctx, dst, src, tempCipherLen, iv, helper_rfc4106_decrypt()
H A Daesni-intel_asm.S1197 * void aesni_gcm_dec(void *aes_ctx, // AES Key schedule. Starts on a 16 byte boundary.
1216 * set of 11 keys in the data structure void *aes_ctx
1460 * void aesni_gcm_enc(void *aes_ctx, // AES Key schedule. Starts on a 16 byte boundary.
1478 * first set of 11 keys in the data structure void *aes_ctx

Completed in 97 milliseconds