Home
last modified time | relevance | path

Searched refs:crypto_shash_ctx (Results 1 – 25 of 29) sorted by relevance

12

/linux/crypto/
H A Dcmac.c40 struct cmac_tfm_ctx *ctx = crypto_shash_ctx(parent); in crypto_cmac_digest_setkey()
103 struct cmac_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_cmac_digest_update()
121 struct cmac_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_cmac_digest_finup()
140 struct cmac_tfm_ctx *ctx = crypto_shash_ctx(tfm); in cmac_init_tfm()
156 struct cmac_tfm_ctx *octx = crypto_shash_ctx(otfm); in cmac_clone_tfm()
157 struct cmac_tfm_ctx *ctx = crypto_shash_ctx(tfm); in cmac_clone_tfm()
171 struct cmac_tfm_ctx *ctx = crypto_shash_ctx(tfm); in cmac_exit_tfm()
H A Dxxhash_generic.c23 struct xxhash64_tfm_ctx *tctx = crypto_shash_ctx(tfm); in xxhash64_setkey()
33 struct xxhash64_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in xxhash64_init()
63 struct xxhash64_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in xxhash64_digest()
H A Dcrc32.c39 u32 *mctx = crypto_shash_ctx(hash); in crc32_setkey()
49 u32 *mctx = crypto_shash_ctx(desc->tfm); in crc32_init()
90 return __crc32_finup(crypto_shash_ctx(desc->tfm), data, len, out); in crc32_digest()
H A Dhmac.c41 struct hmac_ctx *tctx = crypto_shash_ctx(parent); in hmac_setkey()
92 const struct hmac_ctx *tctx = crypto_shash_ctx(pdesc->tfm); in hmac_import()
108 const struct hmac_ctx *tctx = crypto_shash_ctx(pdesc->tfm); in hmac_import_core()
117 const struct hmac_ctx *tctx = crypto_shash_ctx(pdesc->tfm); in hmac_init()
137 const struct hmac_ctx *tctx = crypto_shash_ctx(parent); in hmac_finup()
151 struct hmac_ctx *tctx = crypto_shash_ctx(parent); in hmac_init_tfm()
163 struct hmac_ctx *sctx = crypto_shash_ctx(src); in hmac_clone_tfm()
164 struct hmac_ctx *dctx = crypto_shash_ctx(dst); in hmac_clone_tfm()
177 struct hmac_ctx *tctx = crypto_shash_ctx(parent); in hmac_exit_tfm()
H A Dblake2b.c20 struct blake2b_tfm_ctx *tctx = crypto_shash_ctx(tfm); in crypto_blake2b_setkey()
33 const struct blake2b_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in crypto_blake2b_init()
57 const struct blake2b_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in crypto_blake2b_digest()
H A Dcrc32c.c59 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); in chksum_init()
75 struct chksum_ctx *mctx = crypto_shash_ctx(tfm); in chksum_setkey()
117 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); in chksum_digest()
H A Dghash-generic.c58 struct ghash_ctx *ctx = crypto_shash_ctx(tfm); in ghash_setkey()
82 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); in ghash_update()
98 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); in ghash_flush()
H A Dxcbc.c41 struct xcbc_tfm_ctx *ctx = crypto_shash_ctx(parent); in crypto_xcbc_digest_setkey()
71 struct xcbc_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_xcbc_digest_update()
89 struct xcbc_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_xcbc_digest_finup()
H A Dmichael_mic.c50 struct michael_mic_ctx *ctx = crypto_shash_ctx(desc->tfm); in michael_init()
132 struct michael_mic_ctx *mctx = crypto_shash_ctx(tfm); in michael_setkey()
H A Dsha256.c184 #define HMAC_SHA224_KEY(tfm) ((struct hmac_sha224_key *)crypto_shash_ctx(tfm))
251 #define HMAC_SHA256_KEY(tfm) ((struct hmac_sha256_key *)crypto_shash_ctx(tfm))
H A Dsha512.c190 #define HMAC_SHA384_KEY(tfm) ((struct hmac_sha384_key *)crypto_shash_ctx(tfm))
257 #define HMAC_SHA512_KEY(tfm) ((struct hmac_sha512_key *)crypto_shash_ctx(tfm))
/linux/drivers/crypto/xilinx/
H A Dzynqmp-sha.c47 struct zynqmp_sha_tfm_ctx *tfm_ctx = crypto_shash_ctx(hash); in zynqmp_sha_init_tfm()
74 struct zynqmp_sha_tfm_ctx *tfm_ctx = crypto_shash_ctx(hash); in zynqmp_sha_exit_tfm()
89 struct zynqmp_sha_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in zynqmp_sha_init()
101 struct zynqmp_sha_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in zynqmp_sha_update()
114 struct zynqmp_sha_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in zynqmp_sha_finup()
/linux/arch/riscv/crypto/
H A Dghash-riscv64-glue.c39 struct riscv64_ghash_tfm_ctx *tctx = crypto_shash_ctx(tfm); in riscv64_ghash_setkey()
82 const struct riscv64_ghash_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in riscv64_ghash_update()
93 const struct riscv64_ghash_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in riscv64_ghash_finup()
/linux/arch/x86/crypto/
H A Dghash-clmulni-intel_glue.c43 struct x86_ghash_ctx *ctx = crypto_shash_ctx(tfm); in ghash_setkey()
84 struct x86_ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); in ghash_update()
111 struct x86_ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); in ghash_finup()
/linux/arch/s390/crypto/
H A Dghash_s390.c31 struct s390_ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); in ghash_init()
43 struct s390_ghash_ctx *ctx = crypto_shash_ctx(tfm); in ghash_setkey()
96 struct s390_ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); in ghash_import()
H A Dhmac_s390.c169 struct s390_hmac_ctx *tfm_ctx = crypto_shash_ctx(tfm); in s390_hmac_sha2_setkey()
184 struct s390_hmac_ctx *tfm_ctx = crypto_shash_ctx(desc->tfm); in s390_hmac_sha2_init()
277 ctx = crypto_shash_ctx(tfm); in s390_hmac_export_zero()
/linux/drivers/crypto/nx/
H A Dnx-aes-xcbc.c31 struct nx_crypto_ctx *nx_ctx = crypto_shash_ctx(desc); in nx_xcbc_set_key()
60 struct nx_crypto_ctx *nx_ctx = crypto_shash_ctx(desc->tfm); in nx_xcbc_empty()
139 struct nx_crypto_ctx *nx_ctx = crypto_shash_ctx(tfm); in nx_crypto_ctx_aes_xcbc_init2()
168 struct nx_crypto_ctx *nx_ctx = crypto_shash_ctx(desc->tfm); in nx_xcbc_update()
247 struct nx_crypto_ctx *nx_ctx = crypto_shash_ctx(desc->tfm); in nx_xcbc_finup()
H A Dnx-sha512.c29 struct nx_crypto_ctx *nx_ctx = crypto_shash_ctx(tfm); in nx_crypto_ctx_sha512_init()
66 struct nx_crypto_ctx *nx_ctx = crypto_shash_ctx(desc->tfm); in nx_sha512_update()
148 struct nx_crypto_ctx *nx_ctx = crypto_shash_ctx(desc->tfm); in nx_sha512_finup()
H A Dnx-sha256.c29 struct nx_crypto_ctx *nx_ctx = crypto_shash_ctx(tfm); in nx_crypto_ctx_sha256_init()
65 struct nx_crypto_ctx *nx_ctx = crypto_shash_ctx(desc->tfm); in nx_sha256_update()
144 struct nx_crypto_ctx *nx_ctx = crypto_shash_ctx(desc->tfm); in nx_sha256_finup()
H A Dnx.c705 return nx_crypto_ctx_init(crypto_shash_ctx(tfm), NX_FC_SHA, NX_MODE_SHA); in nx_crypto_ctx_sha_init()
710 return nx_crypto_ctx_init(crypto_shash_ctx(tfm), NX_FC_AES, in nx_crypto_ctx_aes_xcbc_init()
747 nx_crypto_ctx_exit(crypto_shash_ctx(tfm)); in nx_crypto_ctx_shash_exit()
/linux/drivers/crypto/
H A Dpadlock-sha.c60 struct padlock_sha_ctx *ctx = crypto_shash_ctx(tfm); in padlock_sha_update()
105 struct padlock_sha_ctx *ctx = crypto_shash_ctx(desc->tfm); in padlock_sha_finup()
161 struct padlock_sha_ctx *ctx = crypto_shash_ctx(hash); in padlock_init_tfm()
187 struct padlock_sha_ctx *ctx = crypto_shash_ctx(hash); in padlock_exit_tfm()
/linux/arch/arm64/crypto/
H A Dsm4-ce-glue.c493 struct sm4_mac_tfm_ctx *ctx = crypto_shash_ctx(tfm); in sm4_cbcmac_setkey()
507 struct sm4_mac_tfm_ctx *ctx = crypto_shash_ctx(tfm); in sm4_cmac_setkey()
541 struct sm4_mac_tfm_ctx *ctx = crypto_shash_ctx(tfm); in sm4_xcbc_setkey()
577 struct sm4_mac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in sm4_mac_update()
591 struct sm4_mac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in sm4_cmac_finup()
610 struct sm4_mac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in sm4_cbcmac_finup()
H A Daes-glue.c768 struct mac_tfm_ctx *ctx = crypto_shash_ctx(tfm); in cbcmac_setkey()
785 struct mac_tfm_ctx *ctx = crypto_shash_ctx(tfm); in cmac_setkey()
814 struct mac_tfm_ctx *ctx = crypto_shash_ctx(tfm); in xcbc_setkey()
856 struct mac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in mac_update()
868 struct mac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in cbcmac_finup()
882 struct mac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in cmac_finup()
H A Dghash-ce-glue.c89 struct ghash_key *key = crypto_shash_ctx(desc->tfm); in ghash_update()
130 struct ghash_key *key = crypto_shash_ctx(desc->tfm); in ghash_finup()
157 struct ghash_key *key = crypto_shash_ctx(tfm); in ghash_setkey()
/linux/arch/arm/crypto/
H A Dghash-ce-glue.c83 struct ghash_key *key = crypto_shash_ctx(desc->tfm); in ghash_update()
115 struct ghash_key *key = crypto_shash_ctx(desc->tfm); in ghash_finup()
142 struct ghash_key *key = crypto_shash_ctx(tfm); in ghash_setkey()

12