Home
last modified time | relevance | path

Searched refs:crypto_tfm_ctx (Results 1 – 133 of 133) sorted by relevance

/linux-4.1.27/drivers/crypto/vmx/
Daes.c42 struct p8_aes_ctx *ctx = crypto_tfm_ctx(tfm); in p8_aes_init()
67 struct p8_aes_ctx *ctx = crypto_tfm_ctx(tfm); in p8_aes_exit()
79 struct p8_aes_ctx *ctx = crypto_tfm_ctx(tfm); in p8_aes_setkey()
94 struct p8_aes_ctx *ctx = crypto_tfm_ctx(tfm); in p8_aes_encrypt()
109 struct p8_aes_ctx *ctx = crypto_tfm_ctx(tfm); in p8_aes_decrypt()
Dghash.c61 struct p8_ghash_ctx *ctx = crypto_tfm_ctx(tfm); in p8_ghash_init_tfm()
89 struct p8_ghash_ctx *ctx = crypto_tfm_ctx(tfm); in p8_ghash_exit_tfm()
99 struct p8_ghash_ctx *ctx = crypto_tfm_ctx(crypto_shash_tfm(desc->tfm)); in p8_ghash_init()
112 struct p8_ghash_ctx *ctx = crypto_tfm_ctx(crypto_shash_tfm(tfm)); in p8_ghash_setkey()
130 struct p8_ghash_ctx *ctx = crypto_tfm_ctx(crypto_shash_tfm(desc->tfm)); in p8_ghash_update()
177 struct p8_ghash_ctx *ctx = crypto_tfm_ctx(crypto_shash_tfm(desc->tfm)); in p8_ghash_final()
Daes_cbc.c43 struct p8_aes_cbc_ctx *ctx = crypto_tfm_ctx(tfm); in p8_aes_cbc_init()
68 struct p8_aes_cbc_ctx *ctx = crypto_tfm_ctx(tfm); in p8_aes_cbc_exit()
80 struct p8_aes_cbc_ctx *ctx = crypto_tfm_ctx(tfm); in p8_aes_cbc_setkey()
99 struct p8_aes_cbc_ctx *ctx = crypto_tfm_ctx( in p8_aes_cbc_encrypt()
135 struct p8_aes_cbc_ctx *ctx = crypto_tfm_ctx( in p8_aes_cbc_decrypt()
Daes_ctr.c41 struct p8_aes_ctr_ctx *ctx = crypto_tfm_ctx(tfm); in p8_aes_ctr_init()
66 struct p8_aes_ctr_ctx *ctx = crypto_tfm_ctx(tfm); in p8_aes_ctr_exit()
78 struct p8_aes_ctr_ctx *ctx = crypto_tfm_ctx(tfm); in p8_aes_ctr_setkey()
116 struct p8_aes_ctr_ctx *ctx = crypto_tfm_ctx( in p8_aes_ctr_crypt()
/linux-4.1.27/crypto/
Dzlib.c74 struct zlib_ctx *ctx = crypto_tfm_ctx(tfm); in zlib_exit()
84 struct zlib_ctx *ctx = crypto_tfm_ctx(crypto_pcomp_tfm(tfm)); in zlib_compress_setup()
133 struct zlib_ctx *dctx = crypto_tfm_ctx(crypto_pcomp_tfm(tfm)); in zlib_compress_init()
147 struct zlib_ctx *dctx = crypto_tfm_ctx(crypto_pcomp_tfm(tfm)); in zlib_compress_update()
185 struct zlib_ctx *dctx = crypto_tfm_ctx(crypto_pcomp_tfm(tfm)); in zlib_compress_final()
215 struct zlib_ctx *ctx = crypto_tfm_ctx(crypto_pcomp_tfm(tfm)); in zlib_decompress_setup()
247 struct zlib_ctx *dctx = crypto_tfm_ctx(crypto_pcomp_tfm(tfm)); in zlib_decompress_init()
261 struct zlib_ctx *dctx = crypto_tfm_ctx(crypto_pcomp_tfm(tfm)); in zlib_decompress_update()
300 struct zlib_ctx *dctx = crypto_tfm_ctx(crypto_pcomp_tfm(tfm)); in zlib_decompress_final()
Dtea.c50 struct tea_ctx *ctx = crypto_tfm_ctx(tfm); in tea_setkey()
66 struct tea_ctx *ctx = crypto_tfm_ctx(tfm); in tea_encrypt()
94 struct tea_ctx *ctx = crypto_tfm_ctx(tfm); in tea_decrypt()
123 struct xtea_ctx *ctx = crypto_tfm_ctx(tfm); in xtea_setkey()
139 struct xtea_ctx *ctx = crypto_tfm_ctx(tfm); in xtea_encrypt()
159 struct tea_ctx *ctx = crypto_tfm_ctx(tfm); in xtea_decrypt()
183 struct xtea_ctx *ctx = crypto_tfm_ctx(tfm); in xeta_encrypt()
203 struct tea_ctx *ctx = crypto_tfm_ctx(tfm); in xeta_decrypt()
D842.c52 struct nx842_ctx *ctx = crypto_tfm_ctx(tfm); in nx842_init()
65 struct nx842_ctx *ctx = crypto_tfm_ctx(tfm); in nx842_exit()
80 struct nx842_ctx *ctx = crypto_tfm_ctx(tfm); in nx842_crypto_compress()
122 struct nx842_ctx *ctx = crypto_tfm_ctx(tfm); in nx842_crypto_decompress()
Dlz4.c33 struct lz4_ctx *ctx = crypto_tfm_ctx(tfm); in lz4_init()
44 struct lz4_ctx *ctx = crypto_tfm_ctx(tfm); in lz4_exit()
51 struct lz4_ctx *ctx = crypto_tfm_ctx(tfm); in lz4_compress_crypto()
Dlz4hc.c32 struct lz4hc_ctx *ctx = crypto_tfm_ctx(tfm); in lz4hc_init()
43 struct lz4hc_ctx *ctx = crypto_tfm_ctx(tfm); in lz4hc_exit()
51 struct lz4hc_ctx *ctx = crypto_tfm_ctx(tfm); in lz4hc_compress_crypto()
Dlzo.c32 struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); in lzo_init()
46 struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); in lzo_exit()
54 struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); in lzo_compress()
Ddeflate.c106 struct deflate_ctx *ctx = crypto_tfm_ctx(tfm); in deflate_init()
121 struct deflate_ctx *ctx = crypto_tfm_ctx(tfm); in deflate_exit()
131 struct deflate_ctx *dctx = crypto_tfm_ctx(tfm); in deflate_compress()
161 struct deflate_ctx *dctx = crypto_tfm_ctx(tfm); in deflate_decompress()
Dkhazad.c759 struct khazad_ctx *ctx = crypto_tfm_ctx(tfm); in khazad_setkey()
839 struct khazad_ctx *ctx = crypto_tfm_ctx(tfm); in khazad_encrypt()
845 struct khazad_ctx *ctx = crypto_tfm_ctx(tfm); in khazad_decrypt()
Dcryptd.c233 struct cryptd_blkcipher_ctx *ctx = crypto_tfm_ctx(req->tfm); in cryptd_blkcipher_encrypt()
242 struct cryptd_blkcipher_ctx *ctx = crypto_tfm_ctx(req->tfm); in cryptd_blkcipher_decrypt()
278 struct cryptd_blkcipher_ctx *ctx = crypto_tfm_ctx(tfm); in cryptd_blkcipher_init_tfm()
293 struct cryptd_blkcipher_ctx *ctx = crypto_tfm_ctx(tfm); in cryptd_blkcipher_exit_tfm()
399 struct cryptd_hash_ctx *ctx = crypto_tfm_ctx(tfm); in cryptd_hash_init_tfm()
415 struct cryptd_hash_ctx *ctx = crypto_tfm_ctx(tfm); in cryptd_hash_exit_tfm()
452 struct cryptd_hash_ctx *ctx = crypto_tfm_ctx(req_async->tfm); in cryptd_hash_init()
552 struct cryptd_hash_ctx *ctx = crypto_tfm_ctx(req_async->tfm); in cryptd_hash_digest()
678 struct cryptd_aead_ctx *ctx = crypto_tfm_ctx(areq->tfm); in cryptd_aead_encrypt()
688 struct cryptd_aead_ctx *ctx = crypto_tfm_ctx(areq->tfm); in cryptd_aead_decrypt()
[all …]
Decb.c28 struct crypto_ecb_ctx *ctx = crypto_tfm_ctx(parent); in crypto_ecb_setkey()
101 struct crypto_ecb_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_ecb_init_tfm()
114 struct crypto_ecb_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_ecb_exit_tfm()
Dablk_helper.c116 struct async_helper_ctx *ctx = crypto_tfm_ctx(tfm); in ablk_exit()
124 struct async_helper_ctx *ctx = crypto_tfm_ctx(tfm); in ablk_init_common()
Dctr.c41 struct crypto_ctr_ctx *ctx = crypto_tfm_ctx(parent); in crypto_ctr_setkey()
162 struct crypto_ctr_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_ctr_init_tfm()
176 struct crypto_ctr_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_ctr_exit_tfm()
310 struct crypto_rfc3686_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_rfc3686_init_tfm()
331 struct crypto_rfc3686_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_rfc3686_exit_tfm()
Darc4.c32 struct arc4_ctx *ctx = crypto_tfm_ctx(tfm); in arc4_set_key()
92 arc4_crypt(crypto_tfm_ctx(tfm), out, in, 1); in arc4_crypt_one()
Dseed.c334 struct seed_ctx *ctx = crypto_tfm_ctx(tfm); in seed_set_key()
370 const struct seed_ctx *ctx = crypto_tfm_ctx(tfm); in seed_encrypt()
408 const struct seed_ctx *ctx = crypto_tfm_ctx(tfm); in seed_decrypt()
Danubis.c465 struct anubis_ctx *ctx = crypto_tfm_ctx(tfm); in anubis_setkey()
664 struct anubis_ctx *ctx = crypto_tfm_ctx(tfm); in anubis_encrypt()
670 struct anubis_ctx *ctx = crypto_tfm_ctx(tfm); in anubis_decrypt()
Dblowfish_generic.c43 struct bf_ctx *ctx = crypto_tfm_ctx(tfm); in bf_encrypt()
77 struct bf_ctx *ctx = crypto_tfm_ctx(tfm); in bf_decrypt()
Dtwofish_generic.c111 struct twofish_ctx *ctx = crypto_tfm_ctx(tfm); in twofish_encrypt()
148 struct twofish_ctx *ctx = crypto_tfm_ctx(tfm); in twofish_decrypt()
Dchainiv.c116 struct chainiv_ctx *ctx = crypto_tfm_ctx(tfm); in chainiv_init()
266 struct async_chainiv_ctx *ctx = crypto_tfm_ctx(tfm); in async_chainiv_init()
278 struct async_chainiv_ctx *ctx = crypto_tfm_ctx(tfm); in async_chainiv_exit()
Dcbc.c29 struct crypto_cbc_ctx *ctx = crypto_tfm_ctx(parent); in crypto_cbc_setkey()
197 struct crypto_cbc_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_cbc_init_tfm()
210 struct crypto_cbc_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_cbc_exit_tfm()
Dpcbc.c32 struct crypto_pcbc_ctx *ctx = crypto_tfm_ctx(parent); in crypto_pcbc_setkey()
207 struct crypto_pcbc_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_pcbc_init_tfm()
220 struct crypto_pcbc_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_pcbc_exit_tfm()
Dxts.c36 struct priv *ctx = crypto_tfm_ctx(parent); in setkey()
246 struct priv *ctx = crypto_tfm_ctx(tfm); in init_tfm()
282 struct priv *ctx = crypto_tfm_ctx(tfm); in exit_tfm()
Dcts.c60 struct crypto_cts_ctx *ctx = crypto_tfm_ctx(parent); in crypto_cts_setkey()
257 struct crypto_cts_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_cts_init_tfm()
270 struct crypto_cts_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_cts_exit_tfm()
Dcast6_generic.c159 return __cast6_setkey(crypto_tfm_ctx(tfm), key, keylen, in cast6_setkey()
219 __cast6_encrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); in cast6_encrypt()
257 __cast6_decrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); in cast6_decrypt()
Dlrw.c82 struct priv *ctx = crypto_tfm_ctx(parent); in setkey()
301 struct priv *ctx = crypto_tfm_ctx(tfm); in init_tfm()
320 struct priv *ctx = crypto_tfm_ctx(tfm); in exit_tfm()
Ddes_generic.c784 struct des_ctx *dctx = crypto_tfm_ctx(tfm); in des_setkey()
805 struct des_ctx *ctx = crypto_tfm_ctx(tfm); in des_encrypt()
828 struct des_ctx *ctx = crypto_tfm_ctx(tfm); in des_decrypt()
885 struct des3_ede_ctx *dctx = crypto_tfm_ctx(tfm); in des3_ede_setkey()
894 struct des3_ede_ctx *dctx = crypto_tfm_ctx(tfm); in des3_ede_encrypt()
925 struct des3_ede_ctx *dctx = crypto_tfm_ctx(tfm); in des3_ede_decrypt()
Dxcbc.c182 struct xcbc_tfm_ctx *ctx = crypto_tfm_ctx(tfm); in xcbc_init_tfm()
195 struct xcbc_tfm_ctx *ctx = crypto_tfm_ctx(tfm); in xcbc_exit_tfm()
Dcmac.c208 struct cmac_tfm_ctx *ctx = crypto_tfm_ctx(tfm); in cmac_init_tfm()
221 struct cmac_tfm_ctx *ctx = crypto_tfm_ctx(tfm); in cmac_exit_tfm()
Dshash.c327 struct crypto_shash **ctx = crypto_tfm_ctx(tfm); in crypto_exit_shash_ops_async()
337 struct crypto_shash **ctx = crypto_tfm_ctx(tfm); in crypto_init_shash_ops_async()
448 struct shash_desc **descp = crypto_tfm_ctx(tfm); in crypto_exit_shash_ops_compat()
460 struct shash_desc **descp = crypto_tfm_ctx(tfm); in crypto_init_shash_ops_compat()
Dmcryptd.c280 struct mcryptd_hash_ctx *ctx = crypto_tfm_ctx(tfm); in mcryptd_hash_init_tfm()
296 struct mcryptd_hash_ctx *ctx = crypto_tfm_ctx(tfm); in mcryptd_hash_exit_tfm()
337 struct mcryptd_hash_ctx *ctx = crypto_tfm_ctx(req_async->tfm); in mcryptd_hash_init()
445 struct mcryptd_hash_ctx *ctx = crypto_tfm_ctx(req_async->tfm); in mcryptd_hash_digest()
Daes_generic.c1285 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_aes_set_key()
1331 const struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_encrypt()
1403 const struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_decrypt()
Dcrc32.c50 u32 *key = crypto_tfm_ctx(tfm); in crc32_cra_init()
Dansi_cprng.c329 struct prng_context *ctx = crypto_tfm_ctx(tfm); in cprng_init()
353 free_prng_context(crypto_tfm_ctx(tfm)); in cprng_exit()
Dcrc32c_generic.c130 struct chksum_ctx *mctx = crypto_tfm_ctx(tfm); in crc32c_cra_init()
Dcast5_generic.c365 __cast5_encrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); in cast5_encrypt()
409 __cast5_decrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); in cast5_decrypt()
489 struct cast5_ctx *c = crypto_tfm_ctx(tfm); in cast5_setkey()
Dgcm.c463 struct crypto_gcm_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in gcm_hash()
655 struct crypto_gcm_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_gcm_init_tfm()
691 struct crypto_gcm_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_gcm_exit_tfm()
937 struct crypto_rfc4106_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_rfc4106_init_tfm()
959 struct crypto_rfc4106_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_rfc4106_exit_tfm()
1239 struct crypto_rfc4543_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_rfc4543_init_tfm()
1273 struct crypto_rfc4543_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_rfc4543_exit_tfm()
Dccm.c436 struct crypto_ccm_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_ccm_init_tfm()
469 struct crypto_ccm_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_ccm_exit_tfm()
720 struct crypto_rfc4309_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_rfc4309_init_tfm()
742 struct crypto_rfc4309_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_rfc4309_exit_tfm()
Dblowfish_common.c351 struct bf_ctx *ctx = crypto_tfm_ctx(tfm); in blowfish_setkey()
Dghash-generic.c136 struct ghash_ctx *ctx = crypto_tfm_ctx(tfm); in ghash_exit_tfm()
Dpcrypt.c278 struct pcrypt_aead_ctx *ctx = crypto_tfm_ctx(tfm); in pcrypt_aead_init_tfm()
304 struct pcrypt_aead_ctx *ctx = crypto_tfm_ctx(tfm); in pcrypt_aead_exit_tfm()
Dfcrypt.c238 const struct fcrypt_ctx *ctx = crypto_tfm_ctx(tfm); in fcrypt_encrypt()
270 const struct fcrypt_ctx *ctx = crypto_tfm_ctx(tfm); in fcrypt_decrypt()
305 struct fcrypt_ctx *ctx = crypto_tfm_ctx(tfm); in fcrypt_setkey()
Dsalsa20_generic.c172 struct salsa20_ctx *ctx = crypto_tfm_ctx(tfm); in setkey()
Dcamellia_generic.c984 struct camellia_ctx *cctx = crypto_tfm_ctx(tfm); in camellia_set_key()
1012 const struct camellia_ctx *cctx = crypto_tfm_ctx(tfm); in camellia_encrypt()
1040 const struct camellia_ctx *cctx = crypto_tfm_ctx(tfm); in camellia_decrypt()
Dauthenc.c551 struct crypto_authenc_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_authenc_init_tfm()
590 struct crypto_authenc_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_authenc_exit_tfm()
Dtwofish_common.c705 return __twofish_setkey(crypto_tfm_ctx(tfm), key, key_len, in twofish_setkey()
Dvmac.c627 struct vmac_ctx_t *ctx = crypto_tfm_ctx(tfm); in vmac_init_tfm()
639 struct vmac_ctx_t *ctx = crypto_tfm_ctx(tfm); in vmac_exit_tfm()
Dauthencesn.c643 struct crypto_authenc_esn_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_authenc_esn_init_tfm()
682 struct crypto_authenc_esn_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_authenc_esn_exit_tfm()
Dserpent_generic.c441 return __serpent_setkey(crypto_tfm_ctx(tfm), key, keylen); in serpent_setkey()
505 struct serpent_ctx *ctx = crypto_tfm_ctx(tfm); in serpent_encrypt()
565 struct serpent_ctx *ctx = crypto_tfm_ctx(tfm); in serpent_decrypt()
Ddrbg.c1716 struct drbg_state *drbg = crypto_tfm_ctx(tfm); in drbg_kcapi_init()
1730 drbg_uninstantiate(crypto_tfm_ctx(tfm)); in drbg_kcapi_cleanup()
Dblkcipher.c489 addr = (unsigned long)crypto_tfm_ctx(tfm); in crypto_init_blkcipher_ops_sync()
/linux-4.1.27/drivers/crypto/amcc/
Dcrypto4xx_alg.c75 struct crypto4xx_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in crypto4xx_encrypt()
89 struct crypto4xx_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in crypto4xx_decrypt()
111 struct crypto4xx_ctx *ctx = crypto_tfm_ctx(tfm); in crypto4xx_setkey_aes()
187 struct crypto4xx_ctx *ctx = crypto_tfm_ctx(tfm); in crypto4xx_hash_alg_init()
239 struct crypto4xx_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in crypto4xx_hash_init()
256 struct crypto4xx_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in crypto4xx_hash_update()
275 struct crypto4xx_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in crypto4xx_hash_digest()
Dcrypto4xx_core.c636 ctx = crypto_tfm_ctx(ablk_req->base.tfm); in crypto4xx_ablkcipher_done()
660 ctx = crypto_tfm_ctx(ahash_req->base.tfm); in crypto4xx_ahash_done()
663 crypto_tfm_ctx(ahash_req->base.tfm)); in crypto4xx_ahash_done()
996 struct crypto4xx_ctx *ctx = crypto_tfm_ctx(tfm); in crypto4xx_alg_init()
1020 struct crypto4xx_ctx *ctx = crypto_tfm_ctx(tfm); in crypto4xx_alg_exit()
/linux-4.1.27/arch/arm/crypto/
Daes_glue.c18 struct AES_CTX *ctx = crypto_tfm_ctx(tfm); in aes_encrypt()
24 struct AES_CTX *ctx = crypto_tfm_ctx(tfm); in aes_decrypt()
31 struct AES_CTX *ctx = crypto_tfm_ctx(tfm); in aes_set_key()
Dghash-ce-glue.c249 struct ghash_async_ctx *ctx = crypto_tfm_ctx(tfm); in ghash_async_init_tfm()
266 struct ghash_async_ctx *ctx = crypto_tfm_ctx(tfm); in ghash_async_exit_tfm()
Daesbs-glue.c60 struct aesbs_cbc_ctx *ctx = crypto_tfm_ctx(tfm); in aesbs_cbc_set_key()
76 struct aesbs_ctr_ctx *ctx = crypto_tfm_ctx(tfm); in aesbs_ctr_set_key()
90 struct aesbs_xts_ctx *ctx = crypto_tfm_ctx(tfm); in aesbs_xts_set_key()
Daes-ce-glue.c133 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in ce_aes_setkey()
152 struct crypto_aes_xts_ctx *ctx = crypto_tfm_ctx(tfm); in xts_set_key()
/linux-4.1.27/drivers/crypto/ccp/
Dccp-crypto-aes.c28 struct ccp_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in ccp_aes_complete()
43 struct ccp_ctx *ctx = crypto_tfm_ctx(crypto_ablkcipher_tfm(tfm)); in ccp_aes_setkey()
72 struct ccp_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in ccp_aes_crypt()
129 struct ccp_ctx *ctx = crypto_tfm_ctx(tfm); in ccp_aes_cra_init()
158 struct ccp_ctx *ctx = crypto_tfm_ctx(crypto_ablkcipher_tfm(tfm)); in ccp_aes_rfc3686_setkey()
171 struct ccp_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in ccp_aes_rfc3686_crypt()
204 struct ccp_ctx *ctx = crypto_tfm_ctx(tfm); in ccp_aes_rfc3686_cra_init()
Dccp-crypto-aes-xts.c100 struct ccp_ctx *ctx = crypto_tfm_ctx(crypto_ablkcipher_tfm(tfm)); in ccp_aes_xts_setkey()
122 struct ccp_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in ccp_aes_xts_crypt()
194 struct ccp_ctx *ctx = crypto_tfm_ctx(tfm); in ccp_aes_xts_cra_init()
218 struct ccp_ctx *ctx = crypto_tfm_ctx(tfm); in ccp_aes_xts_cra_exit()
Dccp-crypto-sha.c240 struct ccp_ctx *ctx = crypto_tfm_ctx(crypto_ahash_tfm(tfm)); in ccp_sha_setkey()
290 struct ccp_ctx *ctx = crypto_tfm_ctx(tfm); in ccp_sha_cra_init()
307 struct ccp_ctx *ctx = crypto_tfm_ctx(tfm); in ccp_hmac_sha_cra_init()
325 struct ccp_ctx *ctx = crypto_tfm_ctx(tfm); in ccp_hmac_sha_cra_exit()
Dccp-crypto-main.c141 struct ccp_ctx *ctx = crypto_tfm_ctx(req->tfm); in ccp_crypto_complete()
185 ctx = crypto_tfm_ctx(held->req->tfm); in ccp_crypto_complete()
Dccp-crypto-aes-cmac.c244 struct ccp_ctx *ctx = crypto_tfm_ctx(crypto_ahash_tfm(tfm)); in ccp_aes_cmac_setkey()
322 struct ccp_ctx *ctx = crypto_tfm_ctx(tfm); in ccp_aes_cmac_cra_init()
345 struct ccp_ctx *ctx = crypto_tfm_ctx(tfm); in ccp_aes_cmac_cra_exit()
/linux-4.1.27/arch/s390/crypto/
Daes_s390.c97 struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); in setkey_fallback_cip()
116 struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); in aes_set_key()
137 struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); in aes_encrypt()
162 struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); in aes_decrypt()
188 struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); in fallback_init_cip()
204 struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); in fallback_exit_cip()
235 struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); in setkey_fallback_blk()
288 struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); in ecb_aes_set_key()
369 struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); in fallback_init_blk()
385 struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); in fallback_exit_blk()
[all …]
Ddes_s390.c38 struct s390_des_ctx *ctx = crypto_tfm_ctx(tfm); in des_setkey()
54 struct s390_des_ctx *ctx = crypto_tfm_ctx(tfm); in des_encrypt()
61 struct s390_des_ctx *ctx = crypto_tfm_ctx(tfm); in des_decrypt()
242 struct s390_des_ctx *ctx = crypto_tfm_ctx(tfm); in des3_setkey()
258 struct s390_des_ctx *ctx = crypto_tfm_ctx(tfm); in des3_encrypt()
265 struct s390_des_ctx *ctx = crypto_tfm_ctx(tfm); in des3_decrypt()
/linux-4.1.27/arch/x86/crypto/
Dtwofish_glue.c56 twofish_enc_blk(crypto_tfm_ctx(tfm), dst, src); in twofish_encrypt()
61 twofish_dec_blk(crypto_tfm_ctx(tfm), dst, src); in twofish_decrypt()
Daes_glue.c27 aes_enc_blk(crypto_tfm_ctx(tfm), dst, src); in aes_encrypt()
32 aes_dec_blk(crypto_tfm_ctx(tfm), dst, src); in aes_decrypt()
Dfpu.c30 struct crypto_fpu_ctx *ctx = crypto_tfm_ctx(parent); in crypto_fpu_setkey()
85 struct crypto_fpu_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_fpu_init_tfm()
98 struct crypto_fpu_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_fpu_exit_tfm()
Daesni-intel_glue.c289 crypto_tfm_ctx(crypto_aead_tfm(tfm)), AESNI_ALIGN); in aesni_rfc4106_gcm_ctx_get()
330 return aes_set_key_common(tfm, crypto_tfm_ctx(tfm), in_key, key_len); in aes_set_key()
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()
571 struct aesni_lrw_ctx *ctx = crypto_tfm_ctx(tfm); in lrw_aesni_setkey()
584 struct aesni_lrw_ctx *ctx = crypto_tfm_ctx(tfm); in lrw_aesni_exit_tfm()
640 struct aesni_xts_ctx *ctx = crypto_tfm_ctx(tfm); in xts_aesni_setkey()
797 PTR_ALIGN((u8 *)crypto_tfm_ctx(tfm), AESNI_ALIGN); in rfc4106_init()
[all …]
Dtwofish_glue_3way.c219 struct twofish_lrw_ctx *ctx = crypto_tfm_ctx(tfm); in lrw_twofish_setkey()
267 struct twofish_lrw_ctx *ctx = crypto_tfm_ctx(tfm); in lrw_twofish_exit_tfm()
276 struct twofish_xts_ctx *ctx = crypto_tfm_ctx(tfm); in xts_twofish_setkey()
Dcamellia_glue.c56 camellia_enc_blk(crypto_tfm_ctx(tfm), dst, src); in camellia_encrypt()
61 camellia_dec_blk(crypto_tfm_ctx(tfm), dst, src); in camellia_decrypt()
1278 return __camellia_setkey(crypto_tfm_ctx(tfm), in_key, key_len, in camellia_setkey()
1443 struct camellia_lrw_ctx *ctx = crypto_tfm_ctx(tfm); in lrw_camellia_setkey()
1493 struct camellia_lrw_ctx *ctx = crypto_tfm_ctx(tfm); in lrw_camellia_exit_tfm()
1502 struct camellia_xts_ctx *ctx = crypto_tfm_ctx(tfm); in xts_camellia_setkey()
Ddes3_ede_glue.c78 des3_ede_enc_blk(crypto_tfm_ctx(tfm), dst, src); in des3_ede_x86_encrypt()
83 des3_ede_dec_blk(crypto_tfm_ctx(tfm), dst, src); in des3_ede_x86_decrypt()
362 struct des3_ede_x86_ctx *ctx = crypto_tfm_ctx(tfm); in des3_ede_x86_setkey()
Dsalsa20_glue.c43 struct salsa20_ctx *ctx = crypto_tfm_ctx(tfm); in setkey()
Dghash-clmulni-intel_glue.c263 struct ghash_async_ctx *ctx = crypto_tfm_ctx(tfm); in ghash_async_init_tfm()
280 struct ghash_async_ctx *ctx = crypto_tfm_ctx(tfm); in ghash_async_exit_tfm()
Dcast6_avx_glue.c251 struct cast6_lrw_ctx *ctx = crypto_tfm_ctx(tfm); in lrw_cast6_setkey()
316 struct cast6_lrw_ctx *ctx = crypto_tfm_ctx(tfm); in lrw_exit_tfm()
329 struct cast6_xts_ctx *ctx = crypto_tfm_ctx(tfm); in xts_cast6_setkey()
Dserpent_avx_glue.c259 struct serpent_lrw_ctx *ctx = crypto_tfm_ctx(tfm); in lrw_serpent_setkey()
326 struct serpent_lrw_ctx *ctx = crypto_tfm_ctx(tfm); in lrw_serpent_exit_tfm()
335 struct serpent_xts_ctx *ctx = crypto_tfm_ctx(tfm); in xts_serpent_setkey()
Dserpent_sse2_glue.c232 struct serpent_lrw_ctx *ctx = crypto_tfm_ctx(tfm); in lrw_serpent_setkey()
298 struct serpent_lrw_ctx *ctx = crypto_tfm_ctx(tfm); in lrw_exit_tfm()
311 struct serpent_xts_ctx *ctx = crypto_tfm_ctx(tfm); in xts_serpent_setkey()
Dcrc32-pclmul_glue.c84 u32 *key = crypto_tfm_ctx(tfm); in crc32_pclmul_cra_init()
Dblowfish_glue.c72 blowfish_enc_blk(crypto_tfm_ctx(tfm), dst, src); in blowfish_encrypt()
77 blowfish_dec_blk(crypto_tfm_ctx(tfm), dst, src); in blowfish_decrypt()
Dcrc32c-intel_glue.c177 u32 *key = crypto_tfm_ctx(tfm); in crc32c_intel_cra_init()
Dcamellia_aesni_avx2_glue.c201 return __camellia_setkey(crypto_tfm_ctx(tfm), in_key, key_len, in camellia_setkey()
Dcamellia_aesni_avx_glue.c205 return __camellia_setkey(crypto_tfm_ctx(tfm), in_key, key_len, in camellia_setkey()
/linux-4.1.27/drivers/crypto/
Dgeode-aes.c119 struct geode_aes_op *op = crypto_tfm_ctx(tfm); in geode_setkey_cip()
152 struct geode_aes_op *op = crypto_tfm_ctx(tfm); in geode_setkey_blk()
218 struct geode_aes_op *op = crypto_tfm_ctx(tfm); in geode_encrypt()
239 struct geode_aes_op *op = crypto_tfm_ctx(tfm); in geode_decrypt()
259 struct geode_aes_op *op = crypto_tfm_ctx(tfm); in fallback_init_cip()
274 struct geode_aes_op *op = crypto_tfm_ctx(tfm); in fallback_exit_cip()
369 struct geode_aes_op *op = crypto_tfm_ctx(tfm); in fallback_init_blk()
384 struct geode_aes_op *op = crypto_tfm_ctx(tfm); in fallback_exit_blk()
Dpicoxcell_crypto.c409 struct spacc_ablk_ctx *aead_ctx = crypto_tfm_ctx(req->req->tfm); in spacc_aead_free_ddts()
449 struct spacc_aead_ctx *ctx = crypto_tfm_ctx(tfm); in spacc_aead_des_setkey()
469 struct spacc_aead_ctx *ctx = crypto_tfm_ctx(tfm); in spacc_aead_aes_setkey()
532 struct spacc_aead_ctx *ctx = crypto_tfm_ctx(crypto_aead_tfm(tfm)); in spacc_aead_setauthsize()
550 struct spacc_aead_ctx *ctx = crypto_tfm_ctx(tfm); in spacc_aead_need_fallback()
570 struct spacc_aead_ctx *ctx = crypto_tfm_ctx(old_tfm); in spacc_aead_do_fallback()
598 struct spacc_aead_ctx *ctx = crypto_tfm_ctx(tfm); in spacc_aead_submit()
773 struct spacc_aead_ctx *ctx = crypto_tfm_ctx(tfm); in spacc_aead_cra_init()
804 struct spacc_aead_ctx *ctx = crypto_tfm_ctx(tfm); in spacc_aead_cra_exit()
819 struct spacc_ablk_ctx *ctx = crypto_tfm_ctx(tfm); in spacc_des_setkey()
[all …]
Dmv_cesa.c198 struct mv_ctx *ctx = crypto_tfm_ctx(tfm); in mv_setkey_aes()
256 struct mv_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in mv_process_current_q()
325 const struct mv_tfm_hash_ctx *tfm_ctx = crypto_tfm_ctx(req->base.tfm); in mv_process_hash_current()
403 const struct mv_tfm_hash_ctx *tfm_ctx = crypto_tfm_ctx(req->base.tfm); in mv_hash_final_fallback()
665 struct mv_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in mv_dec_aes_ecb()
687 struct mv_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in mv_dec_aes_cbc()
724 const struct mv_tfm_hash_ctx *tfm_ctx = crypto_tfm_ctx(req->base.tfm); in mv_hash_init()
756 const struct mv_tfm_hash_ctx *tfm_ctx = crypto_tfm_ctx(req->base.tfm); in mv_hash_digest()
777 struct mv_tfm_hash_ctx *ctx = crypto_tfm_ctx(&tfm->base); in mv_hash_setkey()
842 struct mv_tfm_hash_ctx *ctx = crypto_tfm_ctx(tfm); in mv_cra_hash_init()
[all …]
Dixp4xx_crypto.c386 ctx = crypto_tfm_ctx(crypt->data.tfm); in one_packet()
394 ctx = crypto_tfm_ctx(crypt->data.tfm); in one_packet()
556 struct ixp_ctx *ctx = crypto_tfm_ctx(tfm); in init_tfm()
584 struct ixp_ctx *ctx = crypto_tfm_ctx(tfm); in exit_tfm()
592 struct ixp_ctx *ctx = crypto_tfm_ctx(tfm); in register_chain_var()
653 struct ixp_ctx *ctx = crypto_tfm_ctx(tfm); in setup_auth()
695 struct ixp_ctx *ctx = crypto_tfm_ctx(tfm); in gen_rev_aes_key()
727 struct ixp_ctx *ctx = crypto_tfm_ctx(tfm); in setup_cipher()
Ds5p-sss.c503 dev->ctx = crypto_tfm_ctx(dev->req->base.tfm); in s5p_tasklet_cb()
552 struct s5p_aes_ctx *ctx = crypto_tfm_ctx(tfm); in s5p_aes_setkey()
587 struct s5p_aes_ctx *ctx = crypto_tfm_ctx(tfm); in s5p_aes_cra_init()
Dmxs-dcp.c254 struct dcp_async_ctx *actx = crypto_tfm_ctx(arq->tfm); in mxs_dcp_aes_block_crypt()
399 struct dcp_async_ctx *actx = crypto_tfm_ctx(arq->tfm); in mxs_dcp_aes_enqueue()
486 struct dcp_async_ctx *actx = crypto_tfm_ctx(tfm); in mxs_dcp_aes_fallback_init()
500 struct dcp_async_ctx *actx = crypto_tfm_ctx(tfm); in mxs_dcp_aes_fallback_exit()
Dpadlock-sha.c215 struct padlock_sha_ctx *ctx = crypto_tfm_ctx(tfm); in padlock_cra_init()
239 struct padlock_sha_ctx *ctx = crypto_tfm_ctx(tfm); in padlock_cra_exit()
Dsahara.c765 struct sahara_ctx *ctx = crypto_tfm_ctx(tfm); in sahara_aes_cra_init()
781 struct sahara_ctx *ctx = crypto_tfm_ctx(tfm); in sahara_aes_cra_exit()
1249 struct sahara_ctx *ctx = crypto_tfm_ctx(tfm); in sahara_sha_cra_init()
1266 struct sahara_ctx *ctx = crypto_tfm_ctx(tfm); in sahara_sha_cra_exit()
Domap-sham.c949 struct omap_sham_ctx *tctx = crypto_tfm_ctx(req->base.tfm); in omap_sham_finish_hmac()
1070 struct omap_sham_ctx *tctx = crypto_tfm_ctx(req->base.tfm); in omap_sham_enqueue()
1132 struct omap_sham_ctx *tctx = crypto_tfm_ctx(req->base.tfm); in omap_sham_final_shash()
1236 struct omap_sham_ctx *tctx = crypto_tfm_ctx(tfm); in omap_sham_cra_init_alg()
1305 struct omap_sham_ctx *tctx = crypto_tfm_ctx(tfm); in omap_sham_cra_exit()
Dhifn_795x.c1577 struct hifn_context *ctx = crypto_tfm_ctx(req->base.tfm); in hifn_setup_session()
2051 struct hifn_context *ctx = crypto_tfm_ctx(tfm); in hifn_setkey()
2079 struct hifn_context *ctx = crypto_tfm_ctx(req->base.tfm); in hifn_handle_req()
2100 struct hifn_context *ctx = crypto_tfm_ctx(req->base.tfm); in hifn_setup_crypto_req()
2170 struct hifn_context *ctx = crypto_tfm_ctx(req->base.tfm); in hifn_setup_crypto()
2476 struct hifn_context *ctx = crypto_tfm_ctx(tfm); in hifn_cra_init()
Dn2_core.c718 struct n2_cipher_context *ctx = crypto_tfm_ctx(tfm); in n2_aes_setkey()
747 struct n2_cipher_context *ctx = crypto_tfm_ctx(tfm); in n2_des_setkey()
774 struct n2_cipher_context *ctx = crypto_tfm_ctx(tfm); in n2_3des_setkey()
792 struct n2_cipher_context *ctx = crypto_tfm_ctx(tfm); in n2_arc4_setkey()
829 struct n2_cipher_context *ctx = crypto_tfm_ctx(tfm); in __n2_crypt_chunk()
Datmel-tdes.c404 struct atmel_tdes_ctx *ctx = crypto_tfm_ctx(tfm); in atmel_tdes_crypt_pdc()
440 struct atmel_tdes_ctx *ctx = crypto_tfm_ctx(tfm); in atmel_tdes_crypt_dma()
903 struct atmel_tdes_ctx *ctx = crypto_tfm_ctx(tfm); in atmel_tdes_cra_init()
Dimg-hash.c648 struct img_hash_ctx *ctx = crypto_tfm_ctx(tfm); in img_hash_cra_init()
671 struct img_hash_ctx *tctx = crypto_tfm_ctx(tfm); in img_hash_cra_exit()
Dtalitos.c1837 struct talitos_ctx *ctx = crypto_tfm_ctx(crypto_ahash_tfm(tfm)); in keyhash()
1880 struct talitos_ctx *ctx = crypto_tfm_ctx(crypto_ahash_tfm(tfm)); in ahash_setkey()
2383 struct talitos_ctx *ctx = crypto_tfm_ctx(tfm); in talitos_cra_init()
2413 struct talitos_ctx *ctx = crypto_tfm_ctx(tfm); in talitos_cra_init_aead()
2425 struct talitos_ctx *ctx = crypto_tfm_ctx(tfm); in talitos_cra_init_ahash()
Dpadlock-aes.c96 return aes_ctx_common(crypto_tfm_ctx(tfm)); in aes_ctx()
Datmel-sha.c893 struct atmel_sha_ctx *tctx = crypto_tfm_ctx(req->base.tfm); in atmel_sha_enqueue()
926 struct atmel_sha_ctx *tctx = crypto_tfm_ctx(req->base.tfm); in atmel_sha_final()
Dbfin_crc.c491 struct bfin_crypto_crc_ctx *crc_ctx = crypto_tfm_ctx(tfm); in bfin_crypto_crc_cra_init()
Domap-des.c404 struct omap_des_ctx *ctx = crypto_tfm_ctx(tfm); in omap_des_crypt_dma()
Domap-aes.c420 struct omap_aes_ctx *ctx = crypto_tfm_ctx(tfm); in omap_aes_crypt_dma()
/linux-4.1.27/arch/arm64/crypto/
Daes-ce-cipher.c41 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_cipher_encrypt()
86 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_cipher_decrypt()
225 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in ce_aes_setkey()
Dcrc32-arm64.c208 struct chksum_ctx *mctx = crypto_tfm_ctx(tfm); in crc32_cra_init()
216 struct chksum_ctx *mctx = crypto_tfm_ctx(tfm); in crc32c_cra_init()
Daes-glue.c85 struct crypto_aes_xts_ctx *ctx = crypto_tfm_ctx(tfm); in xts_set_key()
/linux-4.1.27/drivers/crypto/nx/
Dnx.c639 return nx_crypto_ctx_init(crypto_tfm_ctx(tfm), NX_FC_AES, in nx_crypto_ctx_aes_ccm_init()
646 return nx_crypto_ctx_init(crypto_tfm_ctx(tfm), NX_FC_AES, in nx_crypto_ctx_aes_gcm_init()
652 return nx_crypto_ctx_init(crypto_tfm_ctx(tfm), NX_FC_AES, in nx_crypto_ctx_aes_ctr_init()
658 return nx_crypto_ctx_init(crypto_tfm_ctx(tfm), NX_FC_AES, in nx_crypto_ctx_aes_cbc_init()
664 return nx_crypto_ctx_init(crypto_tfm_ctx(tfm), NX_FC_AES, in nx_crypto_ctx_aes_ecb_init()
670 return nx_crypto_ctx_init(crypto_tfm_ctx(tfm), NX_FC_SHA, NX_MODE_SHA); in nx_crypto_ctx_sha_init()
675 return nx_crypto_ctx_init(crypto_tfm_ctx(tfm), NX_FC_AES, in nx_crypto_ctx_aes_xcbc_init()
689 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(tfm); in nx_crypto_ctx_exit()
Dnx-aes-gcm.c39 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(&tfm->base); in gcm_aes_nx_set_key()
78 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(&tfm->base); in gcm4106_aes_nx_set_key()
196 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(req->base.tfm); in gmac()
269 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(req->base.tfm); in gcm_empty()
332 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(req->base.tfm); in gcm_aes_nx_crypt()
458 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(req->base.tfm); in gcm4106_aes_nx_encrypt()
471 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(req->base.tfm); in gcm4106_aes_nx_decrypt()
Dnx-aes-ccm.c39 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(&tfm->base); in ccm_aes_nx_set_key()
69 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(&tfm->base); in ccm4309_aes_nx_set_key()
348 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(req->base.tfm); in ccm_nx_decrypt()
425 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(req->base.tfm); in ccm_nx_encrypt()
496 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(req->base.tfm); in ccm4309_aes_nx_encrypt()
528 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(req->base.tfm); in ccm4309_aes_nx_decrypt()
Dnx-aes-xcbc.c73 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(&desc->tfm->base); in nx_xcbc_empty()
154 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(tfm); in nx_crypto_ctx_aes_xcbc_init2()
184 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(&desc->tfm->base); in nx_xcbc_update()
310 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(&desc->tfm->base); in nx_xcbc_final()
Dnx-sha256.c34 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(tfm); in nx_crypto_ctx_sha256_init()
72 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(&desc->tfm->base); in nx_sha256_update()
192 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(&desc->tfm->base); in nx_sha256_final()
Dnx-sha512.c33 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(tfm); in nx_crypto_ctx_sha512_init()
72 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(&desc->tfm->base); in nx_sha512_update()
195 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(&desc->tfm->base); in nx_sha512_final()
Dnx-aes-ctr.c38 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(tfm); in ctr_aes_nx_set_key()
70 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(tfm); in ctr3686_aes_nx_set_key()
Dnx-aes-cbc.c37 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(tfm); in cbc_aes_nx_set_key()
Dnx-aes-ecb.c37 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(tfm); in ecb_aes_nx_set_key()
/linux-4.1.27/include/crypto/
Dalgapi.h211 return PTR_ALIGN(crypto_tfm_ctx(tfm), in crypto_tfm_ctx_aligned()
234 return crypto_tfm_ctx(&tfm->base); in crypto_ablkcipher_ctx()
249 return crypto_tfm_ctx(&tfm->base); in crypto_aead_ctx()
269 return crypto_tfm_ctx(&tfm->base); in crypto_blkcipher_ctx()
301 return crypto_tfm_ctx(&tfm->base); in crypto_hash_ctx()
/linux-4.1.27/arch/sparc/crypto/
Ddes_glue.c46 struct des_sparc64_ctx *dctx = crypto_tfm_ctx(tfm); in des_set_key()
72 struct des_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); in des_encrypt()
80 struct des_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); in des_decrypt()
203 struct des3_ede_sparc64_ctx *dctx = crypto_tfm_ctx(tfm); in des3_ede_set_key()
242 struct des3_ede_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); in des3_ede_encrypt()
250 struct des3_ede_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); in des3_ede_decrypt()
Dcamellia_glue.c38 struct camellia_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); in camellia_set_key()
59 struct camellia_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); in camellia_encrypt()
68 struct camellia_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); in camellia_decrypt()
Daes_glue.c169 struct crypto_sparc64_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_set_key()
201 struct crypto_sparc64_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_encrypt()
208 struct crypto_sparc64_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_decrypt()
Dcrc32c_glue.c113 u32 *key = crypto_tfm_ctx(tfm); in crc32c_sparc64_cra_init()
/linux-4.1.27/include/crypto/internal/
Drng.h23 return crypto_tfm_ctx(&tfm->base); in crypto_rng_ctx()
Dhash.h133 return crypto_tfm_ctx(crypto_ahash_tfm(tfm)); in crypto_ahash_ctx()
202 return crypto_tfm_ctx(&tfm->base); in crypto_shash_ctx()
/linux-4.1.27/drivers/crypto/qce/
Dablkcipher.c166 struct qce_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in qce_ablkcipher_setkey()
207 struct qce_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in qce_ablkcipher_crypt()
239 struct qce_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in qce_ablkcipher_init()
256 struct qce_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in qce_ablkcipher_exit()
Dsha.c81 struct qce_sha_ctx *ctx = crypto_tfm_ctx(async_req->tfm); in qce_ahash_async_req_handle()
371 struct qce_sha_ctx *ctx = crypto_tfm_ctx(&tfm->base); in qce_ahash_hmac_setkey()
443 struct qce_sha_ctx *ctx = crypto_tfm_ctx(tfm); in qce_ahash_cra_init()
Dcommon.c320 struct qce_cipher_ctx *ctx = crypto_tfm_ctx(async_req->tfm); in qce_setup_regs_ablkcipher()
/linux-4.1.27/arch/powerpc/crypto/
Daes-spe-glue.c95 struct ppc_aes_ctx *ctx = crypto_tfm_ctx(tfm); in ppc_aes_setkey()
127 struct ppc_xts_ctx *ctx = crypto_tfm_ctx(tfm); in ppc_xts_setkey()
163 struct ppc_aes_ctx *ctx = crypto_tfm_ctx(tfm); in ppc_aes_encrypt()
172 struct ppc_aes_ctx *ctx = crypto_tfm_ctx(tfm); in ppc_aes_decrypt()
/linux-4.1.27/drivers/crypto/qat/qat_common/
Dqat_algs.c841 struct qat_alg_aead_ctx *ctx = crypto_tfm_ctx(tfm); in qat_alg_aead_dec()
886 struct qat_alg_aead_ctx *ctx = crypto_tfm_ctx(tfm); in qat_alg_aead_enc_internal()
940 struct qat_alg_aead_ctx *ctx = crypto_tfm_ctx(tfm); in qat_alg_aead_genivenc()
1015 struct qat_alg_ablkcipher_ctx *ctx = crypto_tfm_ctx(tfm); in qat_alg_ablkcipher_encrypt()
1053 struct qat_alg_ablkcipher_ctx *ctx = crypto_tfm_ctx(tfm); in qat_alg_ablkcipher_decrypt()
1091 struct qat_alg_aead_ctx *ctx = crypto_tfm_ctx(tfm); in qat_alg_aead_init()
1121 struct qat_alg_aead_ctx *ctx = crypto_tfm_ctx(tfm); in qat_alg_aead_exit()
1147 struct qat_alg_ablkcipher_ctx *ctx = crypto_tfm_ctx(tfm); in qat_alg_ablkcipher_init()
1158 struct qat_alg_ablkcipher_ctx *ctx = crypto_tfm_ctx(tfm); in qat_alg_ablkcipher_exit()
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/linux/
Dlinux-crypto-adler.c47 u32 *key = crypto_tfm_ctx(tfm); in adler32_cra_init()
/linux-4.1.27/arch/x86/crypto/sha-mb/
Dsha1_mb.c771 struct sha1_mb_ctx *ctx = crypto_tfm_ctx(tfm); in sha1_mb_async_init_tfm()
791 struct sha1_mb_ctx *ctx = crypto_tfm_ctx(tfm); in sha1_mb_async_exit_tfm()
/linux-4.1.27/drivers/crypto/caam/
Dcaamhash.c1758 struct caam_hash_ctx *ctx = crypto_tfm_ctx(tfm); in caam_hash_cra_init()
1794 struct caam_hash_ctx *ctx = crypto_tfm_ctx(tfm); in caam_hash_cra_exit()
Dcaamalg.c4140 struct caam_ctx *ctx = crypto_tfm_ctx(tfm); in caam_cra_init()
4158 struct caam_ctx *ctx = crypto_tfm_ctx(tfm); in caam_cra_exit()
/linux-4.1.27/include/linux/
Dcrypto.h809 static inline void *crypto_tfm_ctx(struct crypto_tfm *tfm) in crypto_tfm_ctx() function
/linux-4.1.27/drivers/crypto/ux500/hash/
Dhash_core.c1497 struct hash_ctx *ctx = crypto_tfm_ctx(tfm); in hash_cra_init()
/linux-4.1.27/drivers/crypto/ux500/cryp/
Dcryp_core.c1095 struct cryp_ctx *ctx = crypto_tfm_ctx(tfm); in cryp_cra_init()