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

/linux-4.1.27/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.1.27/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()
293 static inline struct crypto_aes_ctx *aes_ctx(void *raw_ctx) aes_ctx() function
306 struct crypto_aes_ctx *ctx = aes_ctx(raw_ctx); aes_set_key_common()
335 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); aes_encrypt()
348 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); aes_decrypt()
361 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); __aes_encrypt()
368 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); __aes_decrypt()
377 struct crypto_aes_ctx *ctx = aes_ctx(crypto_blkcipher_ctx(desc->tfm)); ecb_encrypt()
401 struct crypto_aes_ctx *ctx = aes_ctx(crypto_blkcipher_ctx(desc->tfm)); ecb_decrypt()
425 struct crypto_aes_ctx *ctx = aes_ctx(crypto_blkcipher_ctx(desc->tfm)); cbc_encrypt()
449 struct crypto_aes_ctx *ctx = aes_ctx(crypto_blkcipher_ctx(desc->tfm)); cbc_decrypt()
508 struct crypto_aes_ctx *ctx = aes_ctx(crypto_blkcipher_ctx(desc->tfm)); ctr_crypt()
599 .crypt_ctx = aes_ctx(ctx->raw_aes_ctx), lrw_encrypt()
623 .crypt_ctx = aes_ctx(ctx->raw_aes_ctx), lrw_decrypt()
723 aes_ctx(ctx->raw_tweak_ctx), xts_encrypt()
724 aes_ctx(ctx->raw_crypt_ctx)); xts_encrypt()
734 aes_ctx(ctx->raw_tweak_ctx), xts_decrypt()
735 aes_ctx(ctx->raw_crypt_ctx)); xts_decrypt()
749 .tweak_ctx = aes_ctx(ctx->raw_tweak_ctx), xts_encrypt()
751 .crypt_ctx = aes_ctx(ctx->raw_crypt_ctx), xts_encrypt()
774 .tweak_ctx = aes_ctx(ctx->raw_tweak_ctx), xts_decrypt()
776 .crypt_ctx = aes_ctx(ctx->raw_crypt_ctx), xts_decrypt()
1005 void *aes_ctx = &(ctx->aes_key_expanded); __driver_rfc4106_encrypt() local
1058 aesni_gcm_enc_tfm(aes_ctx, dst, src, (unsigned long)req->cryptlen, iv, __driver_rfc4106_encrypt()
1091 void *aes_ctx = &(ctx->aes_key_expanded); __driver_rfc4106_decrypt() local
1147 aesni_gcm_dec_tfm(aes_ctx, dst, src, tempCipherLen, iv, __driver_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 56 milliseconds