tfm 137 arch/arm/crypto/aes-ce-glue.c static int ce_aes_setkey(struct crypto_skcipher *tfm, const u8 *in_key, tfm 140 arch/arm/crypto/aes-ce-glue.c struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 147 arch/arm/crypto/aes-ce-glue.c crypto_skcipher_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 156 arch/arm/crypto/aes-ce-glue.c static int xts_set_key(struct crypto_skcipher *tfm, const u8 *in_key, tfm 159 arch/arm/crypto/aes-ce-glue.c struct crypto_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 162 arch/arm/crypto/aes-ce-glue.c ret = xts_verify_key(tfm, in_key, key_len); tfm 173 arch/arm/crypto/aes-ce-glue.c crypto_skcipher_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 179 arch/arm/crypto/aes-ce-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 180 arch/arm/crypto/aes-ce-glue.c struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 199 arch/arm/crypto/aes-ce-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 200 arch/arm/crypto/aes-ce-glue.c struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 220 arch/arm/crypto/aes-ce-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 221 arch/arm/crypto/aes-ce-glue.c struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 250 arch/arm/crypto/aes-ce-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 251 arch/arm/crypto/aes-ce-glue.c struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 279 arch/arm/crypto/aes-ce-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 280 arch/arm/crypto/aes-ce-glue.c struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 288 arch/arm/crypto/aes-ce-glue.c skcipher_request_set_tfm(&subreq, tfm); tfm 337 arch/arm/crypto/aes-ce-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 338 arch/arm/crypto/aes-ce-glue.c struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 346 arch/arm/crypto/aes-ce-glue.c skcipher_request_set_tfm(&subreq, tfm); tfm 395 arch/arm/crypto/aes-ce-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 396 arch/arm/crypto/aes-ce-glue.c struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 431 arch/arm/crypto/aes-ce-glue.c static void ctr_encrypt_one(struct crypto_skcipher *tfm, const u8 *src, u8 *dst) tfm 433 arch/arm/crypto/aes-ce-glue.c struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 456 arch/arm/crypto/aes-ce-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 457 arch/arm/crypto/aes-ce-glue.c struct crypto_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 476 arch/arm/crypto/aes-ce-glue.c skcipher_request_set_tfm(&subreq, tfm); tfm 528 arch/arm/crypto/aes-ce-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 529 arch/arm/crypto/aes-ce-glue.c struct crypto_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 548 arch/arm/crypto/aes-ce-glue.c skcipher_request_set_tfm(&subreq, tfm); tfm 16 arch/arm/crypto/aes-cipher-glue.c static void aes_arm_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) tfm 18 arch/arm/crypto/aes-cipher-glue.c struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 24 arch/arm/crypto/aes-cipher-glue.c static void aes_arm_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) tfm 26 arch/arm/crypto/aes-cipher-glue.c struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 66 arch/arm/crypto/aes-neonbs-glue.c static int aesbs_setkey(struct crypto_skcipher *tfm, const u8 *in_key, tfm 69 arch/arm/crypto/aes-neonbs-glue.c struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 90 arch/arm/crypto/aes-neonbs-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 91 arch/arm/crypto/aes-neonbs-glue.c struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 125 arch/arm/crypto/aes-neonbs-glue.c static int aesbs_cbc_setkey(struct crypto_skcipher *tfm, const u8 *in_key, tfm 128 arch/arm/crypto/aes-neonbs-glue.c struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 145 arch/arm/crypto/aes-neonbs-glue.c static void cbc_encrypt_one(struct crypto_skcipher *tfm, const u8 *src, u8 *dst) tfm 147 arch/arm/crypto/aes-neonbs-glue.c struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 159 arch/arm/crypto/aes-neonbs-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 160 arch/arm/crypto/aes-neonbs-glue.c struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 185 arch/arm/crypto/aes-neonbs-glue.c static int cbc_init(struct crypto_tfm *tfm) tfm 187 arch/arm/crypto/aes-neonbs-glue.c struct aesbs_cbc_ctx *ctx = crypto_tfm_ctx(tfm); tfm 194 arch/arm/crypto/aes-neonbs-glue.c static void cbc_exit(struct crypto_tfm *tfm) tfm 196 arch/arm/crypto/aes-neonbs-glue.c struct aesbs_cbc_ctx *ctx = crypto_tfm_ctx(tfm); tfm 201 arch/arm/crypto/aes-neonbs-glue.c static int aesbs_ctr_setkey_sync(struct crypto_skcipher *tfm, const u8 *in_key, tfm 204 arch/arm/crypto/aes-neonbs-glue.c struct aesbs_ctr_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 222 arch/arm/crypto/aes-neonbs-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 223 arch/arm/crypto/aes-neonbs-glue.c struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 262 arch/arm/crypto/aes-neonbs-glue.c static void ctr_encrypt_one(struct crypto_skcipher *tfm, const u8 *src, u8 *dst) tfm 264 arch/arm/crypto/aes-neonbs-glue.c struct aesbs_ctr_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 285 arch/arm/crypto/aes-neonbs-glue.c static int aesbs_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key, tfm 288 arch/arm/crypto/aes-neonbs-glue.c struct aesbs_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 291 arch/arm/crypto/aes-neonbs-glue.c err = xts_verify_key(tfm, in_key, key_len); tfm 303 arch/arm/crypto/aes-neonbs-glue.c return aesbs_setkey(tfm, in_key, key_len); tfm 306 arch/arm/crypto/aes-neonbs-glue.c static int xts_init(struct crypto_tfm *tfm) tfm 308 arch/arm/crypto/aes-neonbs-glue.c struct aesbs_xts_ctx *ctx = crypto_tfm_ctx(tfm); tfm 321 arch/arm/crypto/aes-neonbs-glue.c static void xts_exit(struct crypto_tfm *tfm) tfm 323 arch/arm/crypto/aes-neonbs-glue.c struct aesbs_xts_ctx *ctx = crypto_tfm_ctx(tfm); tfm 333 arch/arm/crypto/aes-neonbs-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 334 arch/arm/crypto/aes-neonbs-glue.c struct aesbs_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 345 arch/arm/crypto/aes-neonbs-glue.c skcipher_request_set_tfm(&subreq, tfm); tfm 94 arch/arm/crypto/chacha-neon-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 95 arch/arm/crypto/chacha-neon-glue.c struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 105 arch/arm/crypto/chacha-neon-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 106 arch/arm/crypto/chacha-neon-glue.c struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 36 arch/arm/crypto/crc32-ce-glue.c static int crc32_cra_init(struct crypto_tfm *tfm) tfm 38 arch/arm/crypto/crc32-ce-glue.c u32 *key = crypto_tfm_ctx(tfm); tfm 44 arch/arm/crypto/crc32-ce-glue.c static int crc32c_cra_init(struct crypto_tfm *tfm) tfm 46 arch/arm/crypto/crc32-ce-glue.c u32 *key = crypto_tfm_ctx(tfm); tfm 67 arch/arm/crypto/crc32-ce-glue.c u32 *mctx = crypto_shash_ctx(desc->tfm); tfm 107 arch/arm/crypto/ghash-ce-glue.c struct ghash_key *key = crypto_shash_ctx(desc->tfm); tfm 137 arch/arm/crypto/ghash-ce-glue.c struct ghash_key *key = crypto_shash_ctx(desc->tfm); tfm 160 arch/arm/crypto/ghash-ce-glue.c static int ghash_setkey(struct crypto_shash *tfm, tfm 163 arch/arm/crypto/ghash-ce-glue.c struct ghash_key *key = crypto_shash_ctx(tfm); tfm 167 arch/arm/crypto/ghash-ce-glue.c crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 206 arch/arm/crypto/ghash-ce-glue.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 207 arch/arm/crypto/ghash-ce-glue.c struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); tfm 213 arch/arm/crypto/ghash-ce-glue.c desc->tfm = child; tfm 220 arch/arm/crypto/ghash-ce-glue.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 221 arch/arm/crypto/ghash-ce-glue.c struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); tfm 238 arch/arm/crypto/ghash-ce-glue.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 239 arch/arm/crypto/ghash-ce-glue.c struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); tfm 255 arch/arm/crypto/ghash-ce-glue.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 256 arch/arm/crypto/ghash-ce-glue.c struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); tfm 269 arch/arm/crypto/ghash-ce-glue.c desc->tfm = child; tfm 277 arch/arm/crypto/ghash-ce-glue.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 278 arch/arm/crypto/ghash-ce-glue.c struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); tfm 281 arch/arm/crypto/ghash-ce-glue.c desc->tfm = cryptd_ahash_child(ctx->cryptd_tfm); tfm 294 arch/arm/crypto/ghash-ce-glue.c static int ghash_async_setkey(struct crypto_ahash *tfm, const u8 *key, tfm 297 arch/arm/crypto/ghash-ce-glue.c struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); tfm 302 arch/arm/crypto/ghash-ce-glue.c crypto_ahash_set_flags(child, crypto_ahash_get_flags(tfm) tfm 305 arch/arm/crypto/ghash-ce-glue.c crypto_ahash_set_flags(tfm, crypto_ahash_get_flags(child) tfm 311 arch/arm/crypto/ghash-ce-glue.c static int ghash_async_init_tfm(struct crypto_tfm *tfm) tfm 314 arch/arm/crypto/ghash-ce-glue.c struct ghash_async_ctx *ctx = crypto_tfm_ctx(tfm); tfm 320 arch/arm/crypto/ghash-ce-glue.c crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), tfm 327 arch/arm/crypto/ghash-ce-glue.c static void ghash_async_exit_tfm(struct crypto_tfm *tfm) tfm 329 arch/arm/crypto/ghash-ce-glue.c struct ghash_async_ctx *ctx = crypto_tfm_ctx(tfm); tfm 46 arch/arm64/crypto/aes-ce-ccm-glue.c static int ccm_setkey(struct crypto_aead *tfm, const u8 *in_key, tfm 49 arch/arm64/crypto/aes-ce-ccm-glue.c struct crypto_aes_ctx *ctx = crypto_aead_ctx(tfm); tfm 56 arch/arm64/crypto/aes-ce-ccm-glue.c tfm->base.crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; tfm 60 arch/arm64/crypto/aes-ce-ccm-glue.c static int ccm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) tfm 46 arch/arm64/crypto/aes-ce-glue.c static void aes_cipher_encrypt(struct crypto_tfm *tfm, u8 dst[], u8 const src[]) tfm 48 arch/arm64/crypto/aes-ce-glue.c struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 60 arch/arm64/crypto/aes-ce-glue.c static void aes_cipher_decrypt(struct crypto_tfm *tfm, u8 dst[], u8 const src[]) tfm 62 arch/arm64/crypto/aes-ce-glue.c struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 142 arch/arm64/crypto/aes-ce-glue.c int ce_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, tfm 145 arch/arm64/crypto/aes-ce-glue.c struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 152 arch/arm64/crypto/aes-ce-glue.c tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; tfm 3 arch/arm64/crypto/aes-ce-setkey.h int ce_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, tfm 15 arch/arm64/crypto/aes-cipher-glue.c static void aes_arm64_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) tfm 17 arch/arm64/crypto/aes-cipher-glue.c struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 23 arch/arm64/crypto/aes-cipher-glue.c static void aes_arm64_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) tfm 25 arch/arm64/crypto/aes-cipher-glue.c struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 131 arch/arm64/crypto/aes-glue.c static int skcipher_aes_setkey(struct crypto_skcipher *tfm, const u8 *in_key, tfm 134 arch/arm64/crypto/aes-glue.c struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 139 arch/arm64/crypto/aes-glue.c crypto_skcipher_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 144 arch/arm64/crypto/aes-glue.c static int __maybe_unused xts_set_key(struct crypto_skcipher *tfm, tfm 147 arch/arm64/crypto/aes-glue.c struct crypto_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 150 arch/arm64/crypto/aes-glue.c ret = xts_verify_key(tfm, in_key, key_len); tfm 161 arch/arm64/crypto/aes-glue.c crypto_skcipher_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 165 arch/arm64/crypto/aes-glue.c static int __maybe_unused essiv_cbc_set_key(struct crypto_skcipher *tfm, tfm 169 arch/arm64/crypto/aes-glue.c struct crypto_aes_essiv_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 178 arch/arm64/crypto/aes-glue.c desc->tfm = ctx->hash; tfm 187 arch/arm64/crypto/aes-glue.c crypto_skcipher_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 193 arch/arm64/crypto/aes-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 194 arch/arm64/crypto/aes-glue.c struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 213 arch/arm64/crypto/aes-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 214 arch/arm64/crypto/aes-glue.c struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 234 arch/arm64/crypto/aes-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 235 arch/arm64/crypto/aes-glue.c struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 263 arch/arm64/crypto/aes-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 264 arch/arm64/crypto/aes-glue.c struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 291 arch/arm64/crypto/aes-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 292 arch/arm64/crypto/aes-glue.c struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 300 arch/arm64/crypto/aes-glue.c skcipher_request_set_tfm(&subreq, tfm); tfm 348 arch/arm64/crypto/aes-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 349 arch/arm64/crypto/aes-glue.c struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 357 arch/arm64/crypto/aes-glue.c skcipher_request_set_tfm(&subreq, tfm); tfm 403 arch/arm64/crypto/aes-glue.c static int __maybe_unused essiv_cbc_init_tfm(struct crypto_skcipher *tfm) tfm 405 arch/arm64/crypto/aes-glue.c struct crypto_aes_essiv_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 412 arch/arm64/crypto/aes-glue.c static void __maybe_unused essiv_cbc_exit_tfm(struct crypto_skcipher *tfm) tfm 414 arch/arm64/crypto/aes-glue.c struct crypto_aes_essiv_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 421 arch/arm64/crypto/aes-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 422 arch/arm64/crypto/aes-glue.c struct crypto_aes_essiv_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 443 arch/arm64/crypto/aes-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 444 arch/arm64/crypto/aes-glue.c struct crypto_aes_essiv_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 465 arch/arm64/crypto/aes-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 466 arch/arm64/crypto/aes-glue.c struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 502 arch/arm64/crypto/aes-glue.c static void ctr_encrypt_one(struct crypto_skcipher *tfm, const u8 *src, u8 *dst) tfm 504 arch/arm64/crypto/aes-glue.c const struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 527 arch/arm64/crypto/aes-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 528 arch/arm64/crypto/aes-glue.c struct crypto_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 547 arch/arm64/crypto/aes-glue.c skcipher_request_set_tfm(&subreq, tfm); tfm 599 arch/arm64/crypto/aes-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 600 arch/arm64/crypto/aes-glue.c struct crypto_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 619 arch/arm64/crypto/aes-glue.c skcipher_request_set_tfm(&subreq, tfm); tfm 790 arch/arm64/crypto/aes-glue.c static int cbcmac_setkey(struct crypto_shash *tfm, const u8 *in_key, tfm 793 arch/arm64/crypto/aes-glue.c struct mac_tfm_ctx *ctx = crypto_shash_ctx(tfm); tfm 798 arch/arm64/crypto/aes-glue.c crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 812 arch/arm64/crypto/aes-glue.c static int cmac_setkey(struct crypto_shash *tfm, const u8 *in_key, tfm 815 arch/arm64/crypto/aes-glue.c struct mac_tfm_ctx *ctx = crypto_shash_ctx(tfm); tfm 820 arch/arm64/crypto/aes-glue.c err = cbcmac_setkey(tfm, in_key, key_len); tfm 836 arch/arm64/crypto/aes-glue.c static int xcbc_setkey(struct crypto_shash *tfm, const u8 *in_key, tfm 845 arch/arm64/crypto/aes-glue.c struct mac_tfm_ctx *ctx = crypto_shash_ctx(tfm); tfm 850 arch/arm64/crypto/aes-glue.c err = cbcmac_setkey(tfm, in_key, key_len); tfm 859 arch/arm64/crypto/aes-glue.c return cbcmac_setkey(tfm, key, sizeof(key)); tfm 898 arch/arm64/crypto/aes-glue.c struct mac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); tfm 938 arch/arm64/crypto/aes-glue.c struct mac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); tfm 950 arch/arm64/crypto/aes-glue.c struct mac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); tfm 77 arch/arm64/crypto/aes-neonbs-glue.c static int aesbs_setkey(struct crypto_skcipher *tfm, const u8 *in_key, tfm 80 arch/arm64/crypto/aes-neonbs-glue.c struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 101 arch/arm64/crypto/aes-neonbs-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 102 arch/arm64/crypto/aes-neonbs-glue.c struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 136 arch/arm64/crypto/aes-neonbs-glue.c static int aesbs_cbc_setkey(struct crypto_skcipher *tfm, const u8 *in_key, tfm 139 arch/arm64/crypto/aes-neonbs-glue.c struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 160 arch/arm64/crypto/aes-neonbs-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 161 arch/arm64/crypto/aes-neonbs-glue.c struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 183 arch/arm64/crypto/aes-neonbs-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 184 arch/arm64/crypto/aes-neonbs-glue.c struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 209 arch/arm64/crypto/aes-neonbs-glue.c static int aesbs_ctr_setkey_sync(struct crypto_skcipher *tfm, const u8 *in_key, tfm 212 arch/arm64/crypto/aes-neonbs-glue.c struct aesbs_ctr_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 230 arch/arm64/crypto/aes-neonbs-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 231 arch/arm64/crypto/aes-neonbs-glue.c struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 269 arch/arm64/crypto/aes-neonbs-glue.c static int aesbs_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key, tfm 272 arch/arm64/crypto/aes-neonbs-glue.c struct aesbs_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 276 arch/arm64/crypto/aes-neonbs-glue.c err = xts_verify_key(tfm, in_key, key_len); tfm 291 arch/arm64/crypto/aes-neonbs-glue.c return aesbs_setkey(tfm, in_key, key_len); tfm 294 arch/arm64/crypto/aes-neonbs-glue.c static void ctr_encrypt_one(struct crypto_skcipher *tfm, const u8 *src, u8 *dst) tfm 296 arch/arm64/crypto/aes-neonbs-glue.c struct aesbs_ctr_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 321 arch/arm64/crypto/aes-neonbs-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 322 arch/arm64/crypto/aes-neonbs-glue.c struct aesbs_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 340 arch/arm64/crypto/aes-neonbs-glue.c skcipher_request_set_tfm(&subreq, tfm); tfm 91 arch/arm64/crypto/chacha-neon-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 92 arch/arm64/crypto/chacha-neon-glue.c struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 102 arch/arm64/crypto/chacha-neon-glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 103 arch/arm64/crypto/chacha-neon-glue.c struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 131 arch/arm64/crypto/ghash-ce-glue.c struct ghash_key *key = crypto_shash_ctx(desc->tfm); tfm 180 arch/arm64/crypto/ghash-ce-glue.c struct ghash_key *key = crypto_shash_ctx(desc->tfm); tfm 200 arch/arm64/crypto/ghash-ce-glue.c struct ghash_key *key = crypto_shash_ctx(desc->tfm); tfm 248 arch/arm64/crypto/ghash-ce-glue.c static int ghash_setkey(struct crypto_shash *tfm, tfm 251 arch/arm64/crypto/ghash-ce-glue.c struct ghash_key *key = crypto_shash_ctx(tfm); tfm 254 arch/arm64/crypto/ghash-ce-glue.c crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 303 arch/arm64/crypto/ghash-ce-glue.c static int gcm_setkey(struct crypto_aead *tfm, const u8 *inkey, tfm 306 arch/arm64/crypto/ghash-ce-glue.c struct gcm_aes_ctx *ctx = crypto_aead_ctx(tfm); tfm 312 arch/arm64/crypto/ghash-ce-glue.c tfm->base.crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; tfm 321 arch/arm64/crypto/ghash-ce-glue.c static int gcm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) tfm 34 arch/arm64/crypto/sha3-ce-glue.c unsigned int digest_size = crypto_shash_digestsize(desc->tfm); tfm 76 arch/arm64/crypto/sha3-ce-glue.c unsigned int digest_size = crypto_shash_digestsize(desc->tfm); tfm 20 arch/arm64/crypto/sm4-ce-glue.c static void sm4_ce_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) tfm 22 arch/arm64/crypto/sm4-ce-glue.c const struct crypto_sm4_ctx *ctx = crypto_tfm_ctx(tfm); tfm 25 arch/arm64/crypto/sm4-ce-glue.c crypto_sm4_encrypt(tfm, out, in); tfm 33 arch/arm64/crypto/sm4-ce-glue.c static void sm4_ce_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) tfm 35 arch/arm64/crypto/sm4-ce-glue.c const struct crypto_sm4_ctx *ctx = crypto_tfm_ctx(tfm); tfm 38 arch/arm64/crypto/sm4-ce-glue.c crypto_sm4_decrypt(tfm, out, in); tfm 162 arch/mips/crypto/crc32-mips.c struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); tfm 175 arch/mips/crypto/crc32-mips.c static int chksum_setkey(struct crypto_shash *tfm, const u8 *key, tfm 178 arch/mips/crypto/crc32-mips.c struct chksum_ctx *mctx = crypto_shash_ctx(tfm); tfm 181 arch/mips/crypto/crc32-mips.c crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 253 arch/mips/crypto/crc32-mips.c struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); tfm 261 arch/mips/crypto/crc32-mips.c struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); tfm 266 arch/mips/crypto/crc32-mips.c static int chksum_cra_init(struct crypto_tfm *tfm) tfm 268 arch/mips/crypto/crc32-mips.c struct chksum_ctx *mctx = crypto_tfm_ctx(tfm); tfm 89 arch/powerpc/crypto/aes-spe-glue.c static int ppc_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, tfm 92 arch/powerpc/crypto/aes-spe-glue.c struct ppc_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 97 arch/powerpc/crypto/aes-spe-glue.c tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; tfm 121 arch/powerpc/crypto/aes-spe-glue.c static int ppc_xts_setkey(struct crypto_tfm *tfm, const u8 *in_key, tfm 124 arch/powerpc/crypto/aes-spe-glue.c struct ppc_xts_ctx *ctx = crypto_tfm_ctx(tfm); tfm 127 arch/powerpc/crypto/aes-spe-glue.c err = xts_check_key(tfm, in_key, key_len); tfm 136 arch/powerpc/crypto/aes-spe-glue.c tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; tfm 163 arch/powerpc/crypto/aes-spe-glue.c static void ppc_aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) tfm 165 arch/powerpc/crypto/aes-spe-glue.c struct ppc_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 172 arch/powerpc/crypto/aes-spe-glue.c static void ppc_aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) tfm 174 arch/powerpc/crypto/aes-spe-glue.c struct ppc_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 184 arch/powerpc/crypto/aes-spe-glue.c struct ppc_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 212 arch/powerpc/crypto/aes-spe-glue.c struct ppc_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 240 arch/powerpc/crypto/aes-spe-glue.c struct ppc_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 268 arch/powerpc/crypto/aes-spe-glue.c struct ppc_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 296 arch/powerpc/crypto/aes-spe-glue.c struct ppc_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 326 arch/powerpc/crypto/aes-spe-glue.c struct ppc_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 357 arch/powerpc/crypto/aes-spe-glue.c struct ppc_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 59 arch/powerpc/crypto/crc-vpmsum_test.c crct10dif_shash->tfm = crct10dif_tfm; tfm 68 arch/powerpc/crypto/crc-vpmsum_test.c crc32c_shash->tfm = crc32c_tfm; tfm 57 arch/powerpc/crypto/crc32c-vpmsum_glue.c static int crc32c_vpmsum_cra_init(struct crypto_tfm *tfm) tfm 59 arch/powerpc/crypto/crc32c-vpmsum_glue.c u32 *key = crypto_tfm_ctx(tfm); tfm 86 arch/powerpc/crypto/crc32c-vpmsum_glue.c u32 *mctx = crypto_shash_ctx(desc->tfm); tfm 130 arch/powerpc/crypto/crc32c-vpmsum_glue.c return __crc32c_vpmsum_finup(crypto_shash_ctx(desc->tfm), data, len, tfm 71 arch/s390/crypto/aes_s390.c static int setkey_fallback_cip(struct crypto_tfm *tfm, const u8 *in_key, tfm 74 arch/s390/crypto/aes_s390.c struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); tfm 78 arch/s390/crypto/aes_s390.c sctx->fallback.cip->base.crt_flags |= (tfm->crt_flags & tfm 83 arch/s390/crypto/aes_s390.c tfm->crt_flags &= ~CRYPTO_TFM_RES_MASK; tfm 84 arch/s390/crypto/aes_s390.c tfm->crt_flags |= (sctx->fallback.cip->base.crt_flags & tfm 90 arch/s390/crypto/aes_s390.c static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, tfm 93 arch/s390/crypto/aes_s390.c struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); tfm 104 arch/s390/crypto/aes_s390.c return setkey_fallback_cip(tfm, in_key, key_len); tfm 111 arch/s390/crypto/aes_s390.c static void crypto_aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) tfm 113 arch/s390/crypto/aes_s390.c struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); tfm 122 arch/s390/crypto/aes_s390.c static void crypto_aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) tfm 124 arch/s390/crypto/aes_s390.c struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); tfm 134 arch/s390/crypto/aes_s390.c static int fallback_init_cip(struct crypto_tfm *tfm) tfm 136 arch/s390/crypto/aes_s390.c const char *name = tfm->__crt_alg->cra_name; tfm 137 arch/s390/crypto/aes_s390.c struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); tfm 151 arch/s390/crypto/aes_s390.c static void fallback_exit_cip(struct crypto_tfm *tfm) tfm 153 arch/s390/crypto/aes_s390.c struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); tfm 181 arch/s390/crypto/aes_s390.c static int setkey_fallback_blk(struct crypto_tfm *tfm, const u8 *key, tfm 184 arch/s390/crypto/aes_s390.c struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); tfm 189 arch/s390/crypto/aes_s390.c crypto_sync_skcipher_set_flags(sctx->fallback.blk, tfm->crt_flags & tfm 194 arch/s390/crypto/aes_s390.c tfm->crt_flags &= ~CRYPTO_TFM_RES_MASK; tfm 195 arch/s390/crypto/aes_s390.c tfm->crt_flags |= crypto_sync_skcipher_get_flags(sctx->fallback.blk) & tfm 206 arch/s390/crypto/aes_s390.c struct crypto_blkcipher *tfm = desc->tfm; tfm 207 arch/s390/crypto/aes_s390.c struct s390_aes_ctx *sctx = crypto_blkcipher_ctx(tfm); tfm 225 arch/s390/crypto/aes_s390.c struct crypto_blkcipher *tfm = desc->tfm; tfm 226 arch/s390/crypto/aes_s390.c struct s390_aes_ctx *sctx = crypto_blkcipher_ctx(tfm); tfm 237 arch/s390/crypto/aes_s390.c static int ecb_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, tfm 240 arch/s390/crypto/aes_s390.c struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); tfm 251 arch/s390/crypto/aes_s390.c return setkey_fallback_blk(tfm, in_key, key_len); tfm 261 arch/s390/crypto/aes_s390.c struct s390_aes_ctx *sctx = crypto_blkcipher_ctx(desc->tfm); tfm 281 arch/s390/crypto/aes_s390.c struct s390_aes_ctx *sctx = crypto_blkcipher_ctx(desc->tfm); tfm 295 arch/s390/crypto/aes_s390.c struct s390_aes_ctx *sctx = crypto_blkcipher_ctx(desc->tfm); tfm 305 arch/s390/crypto/aes_s390.c static int fallback_init_blk(struct crypto_tfm *tfm) tfm 307 arch/s390/crypto/aes_s390.c const char *name = tfm->__crt_alg->cra_name; tfm 308 arch/s390/crypto/aes_s390.c struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); tfm 322 arch/s390/crypto/aes_s390.c static void fallback_exit_blk(struct crypto_tfm *tfm) tfm 324 arch/s390/crypto/aes_s390.c struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); tfm 352 arch/s390/crypto/aes_s390.c static int cbc_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, tfm 355 arch/s390/crypto/aes_s390.c struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); tfm 366 arch/s390/crypto/aes_s390.c return setkey_fallback_blk(tfm, in_key, key_len); tfm 376 arch/s390/crypto/aes_s390.c struct s390_aes_ctx *sctx = crypto_blkcipher_ctx(desc->tfm); tfm 402 arch/s390/crypto/aes_s390.c struct s390_aes_ctx *sctx = crypto_blkcipher_ctx(desc->tfm); tfm 416 arch/s390/crypto/aes_s390.c struct s390_aes_ctx *sctx = crypto_blkcipher_ctx(desc->tfm); tfm 450 arch/s390/crypto/aes_s390.c static int xts_fallback_setkey(struct crypto_tfm *tfm, const u8 *key, tfm 453 arch/s390/crypto/aes_s390.c struct s390_xts_ctx *xts_ctx = crypto_tfm_ctx(tfm); tfm 458 arch/s390/crypto/aes_s390.c crypto_sync_skcipher_set_flags(xts_ctx->fallback, tfm->crt_flags & tfm 463 arch/s390/crypto/aes_s390.c tfm->crt_flags &= ~CRYPTO_TFM_RES_MASK; tfm 464 arch/s390/crypto/aes_s390.c tfm->crt_flags |= crypto_sync_skcipher_get_flags(xts_ctx->fallback) & tfm 474 arch/s390/crypto/aes_s390.c struct crypto_blkcipher *tfm = desc->tfm; tfm 475 arch/s390/crypto/aes_s390.c struct s390_xts_ctx *xts_ctx = crypto_blkcipher_ctx(tfm); tfm 493 arch/s390/crypto/aes_s390.c struct crypto_blkcipher *tfm = desc->tfm; tfm 494 arch/s390/crypto/aes_s390.c struct s390_xts_ctx *xts_ctx = crypto_blkcipher_ctx(tfm); tfm 508 arch/s390/crypto/aes_s390.c static int xts_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, tfm 511 arch/s390/crypto/aes_s390.c struct s390_xts_ctx *xts_ctx = crypto_tfm_ctx(tfm); tfm 515 arch/s390/crypto/aes_s390.c err = xts_fallback_setkey(tfm, in_key, key_len); tfm 521 arch/s390/crypto/aes_s390.c tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; tfm 545 arch/s390/crypto/aes_s390.c struct s390_xts_ctx *xts_ctx = crypto_blkcipher_ctx(desc->tfm); tfm 586 arch/s390/crypto/aes_s390.c struct s390_xts_ctx *xts_ctx = crypto_blkcipher_ctx(desc->tfm); tfm 603 arch/s390/crypto/aes_s390.c struct s390_xts_ctx *xts_ctx = crypto_blkcipher_ctx(desc->tfm); tfm 616 arch/s390/crypto/aes_s390.c static int xts_fallback_init(struct crypto_tfm *tfm) tfm 618 arch/s390/crypto/aes_s390.c const char *name = tfm->__crt_alg->cra_name; tfm 619 arch/s390/crypto/aes_s390.c struct s390_xts_ctx *xts_ctx = crypto_tfm_ctx(tfm); tfm 632 arch/s390/crypto/aes_s390.c static void xts_fallback_exit(struct crypto_tfm *tfm) tfm 634 arch/s390/crypto/aes_s390.c struct s390_xts_ctx *xts_ctx = crypto_tfm_ctx(tfm); tfm 663 arch/s390/crypto/aes_s390.c static int ctr_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, tfm 666 arch/s390/crypto/aes_s390.c struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); tfm 677 arch/s390/crypto/aes_s390.c return setkey_fallback_blk(tfm, in_key, key_len); tfm 702 arch/s390/crypto/aes_s390.c struct s390_aes_ctx *sctx = crypto_blkcipher_ctx(desc->tfm); tfm 745 arch/s390/crypto/aes_s390.c struct s390_aes_ctx *sctx = crypto_blkcipher_ctx(desc->tfm); tfm 759 arch/s390/crypto/aes_s390.c struct s390_aes_ctx *sctx = crypto_blkcipher_ctx(desc->tfm); tfm 793 arch/s390/crypto/aes_s390.c static int gcm_aes_setkey(struct crypto_aead *tfm, const u8 *key, tfm 796 arch/s390/crypto/aes_s390.c struct s390_aes_ctx *ctx = crypto_aead_ctx(tfm); tfm 817 arch/s390/crypto/aes_s390.c static int gcm_aes_setauthsize(struct crypto_aead *tfm, unsigned int authsize) tfm 990 arch/s390/crypto/aes_s390.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 991 arch/s390/crypto/aes_s390.c struct s390_aes_ctx *ctx = crypto_aead_ctx(tfm); tfm 992 arch/s390/crypto/aes_s390.c unsigned int ivsize = crypto_aead_ivsize(tfm); tfm 993 arch/s390/crypto/aes_s390.c unsigned int taglen = crypto_aead_authsize(tfm); tfm 84 arch/s390/crypto/crc32-vx.c static int crc32_vx_cra_init_zero(struct crypto_tfm *tfm) tfm 86 arch/s390/crypto/crc32-vx.c struct crc_ctx *mctx = crypto_tfm_ctx(tfm); tfm 92 arch/s390/crypto/crc32-vx.c static int crc32_vx_cra_init_invert(struct crypto_tfm *tfm) tfm 94 arch/s390/crypto/crc32-vx.c struct crc_ctx *mctx = crypto_tfm_ctx(tfm); tfm 102 arch/s390/crypto/crc32-vx.c struct crc_ctx *mctx = crypto_shash_ctx(desc->tfm); tfm 109 arch/s390/crypto/crc32-vx.c static int crc32_vx_setkey(struct crypto_shash *tfm, const u8 *newkey, tfm 112 arch/s390/crypto/crc32-vx.c struct crc_ctx *mctx = crypto_shash_ctx(tfm); tfm 115 arch/s390/crypto/crc32-vx.c crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 122 arch/s390/crypto/crc32-vx.c static int crc32be_vx_setkey(struct crypto_shash *tfm, const u8 *newkey, tfm 125 arch/s390/crypto/crc32-vx.c struct crc_ctx *mctx = crypto_shash_ctx(tfm); tfm 128 arch/s390/crypto/crc32-vx.c crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 205 arch/s390/crypto/crc32-vx.c return __ ## alg ## _vx_finup(crypto_shash_ctx(desc->tfm), \ tfm 34 arch/s390/crypto/des_s390.c static int des_setkey(struct crypto_tfm *tfm, const u8 *key, tfm 37 arch/s390/crypto/des_s390.c struct s390_des_ctx *ctx = crypto_tfm_ctx(tfm); tfm 40 arch/s390/crypto/des_s390.c err = crypto_des_verify_key(tfm, key); tfm 48 arch/s390/crypto/des_s390.c static void s390_des_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) tfm 50 arch/s390/crypto/des_s390.c struct s390_des_ctx *ctx = crypto_tfm_ctx(tfm); tfm 55 arch/s390/crypto/des_s390.c static void s390_des_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) tfm 57 arch/s390/crypto/des_s390.c struct s390_des_ctx *ctx = crypto_tfm_ctx(tfm); tfm 85 arch/s390/crypto/des_s390.c struct s390_des_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 103 arch/s390/crypto/des_s390.c struct s390_des_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 221 arch/s390/crypto/des_s390.c static int des3_setkey(struct crypto_tfm *tfm, const u8 *key, tfm 224 arch/s390/crypto/des_s390.c struct s390_des_ctx *ctx = crypto_tfm_ctx(tfm); tfm 227 arch/s390/crypto/des_s390.c err = crypto_des3_ede_verify_key(tfm, key); tfm 235 arch/s390/crypto/des_s390.c static void des3_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 237 arch/s390/crypto/des_s390.c struct s390_des_ctx *ctx = crypto_tfm_ctx(tfm); tfm 242 arch/s390/crypto/des_s390.c static void des3_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 244 arch/s390/crypto/des_s390.c struct s390_des_ctx *ctx = crypto_tfm_ctx(tfm); tfm 370 arch/s390/crypto/des_s390.c struct s390_des_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 33 arch/s390/crypto/ghash_s390.c struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); tfm 41 arch/s390/crypto/ghash_s390.c static int ghash_setkey(struct crypto_shash *tfm, tfm 44 arch/s390/crypto/ghash_s390.c struct ghash_ctx *ctx = crypto_shash_ctx(tfm); tfm 47 arch/s390/crypto/ghash_s390.c crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 126 arch/s390/crypto/paes_s390.c static int ecb_paes_init(struct crypto_tfm *tfm) tfm 128 arch/s390/crypto/paes_s390.c struct s390_paes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 135 arch/s390/crypto/paes_s390.c static void ecb_paes_exit(struct crypto_tfm *tfm) tfm 137 arch/s390/crypto/paes_s390.c struct s390_paes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 142 arch/s390/crypto/paes_s390.c static int ecb_paes_set_key(struct crypto_tfm *tfm, const u8 *in_key, tfm 146 arch/s390/crypto/paes_s390.c struct s390_paes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 154 arch/s390/crypto/paes_s390.c tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; tfm 164 arch/s390/crypto/paes_s390.c struct s390_paes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 227 arch/s390/crypto/paes_s390.c static int cbc_paes_init(struct crypto_tfm *tfm) tfm 229 arch/s390/crypto/paes_s390.c struct s390_paes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 236 arch/s390/crypto/paes_s390.c static void cbc_paes_exit(struct crypto_tfm *tfm) tfm 238 arch/s390/crypto/paes_s390.c struct s390_paes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 261 arch/s390/crypto/paes_s390.c static int cbc_paes_set_key(struct crypto_tfm *tfm, const u8 *in_key, tfm 265 arch/s390/crypto/paes_s390.c struct s390_paes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 273 arch/s390/crypto/paes_s390.c tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; tfm 282 arch/s390/crypto/paes_s390.c struct s390_paes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 354 arch/s390/crypto/paes_s390.c static int xts_paes_init(struct crypto_tfm *tfm) tfm 356 arch/s390/crypto/paes_s390.c struct s390_pxts_ctx *ctx = crypto_tfm_ctx(tfm); tfm 364 arch/s390/crypto/paes_s390.c static void xts_paes_exit(struct crypto_tfm *tfm) tfm 366 arch/s390/crypto/paes_s390.c struct s390_pxts_ctx *ctx = crypto_tfm_ctx(tfm); tfm 394 arch/s390/crypto/paes_s390.c static int xts_paes_set_key(struct crypto_tfm *tfm, const u8 *in_key, tfm 398 arch/s390/crypto/paes_s390.c struct s390_pxts_ctx *ctx = crypto_tfm_ctx(tfm); tfm 417 arch/s390/crypto/paes_s390.c tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; tfm 430 arch/s390/crypto/paes_s390.c return xts_check_key(tfm, ckey, 2*ckey_len); tfm 436 arch/s390/crypto/paes_s390.c struct s390_pxts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 523 arch/s390/crypto/paes_s390.c static int ctr_paes_init(struct crypto_tfm *tfm) tfm 525 arch/s390/crypto/paes_s390.c struct s390_paes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 532 arch/s390/crypto/paes_s390.c static void ctr_paes_exit(struct crypto_tfm *tfm) tfm 534 arch/s390/crypto/paes_s390.c struct s390_paes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 558 arch/s390/crypto/paes_s390.c static int ctr_paes_set_key(struct crypto_tfm *tfm, const u8 *in_key, tfm 562 arch/s390/crypto/paes_s390.c struct s390_paes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 570 arch/s390/crypto/paes_s390.c tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; tfm 594 arch/s390/crypto/paes_s390.c struct s390_paes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 19 arch/s390/crypto/sha_common.c unsigned int bsize = crypto_shash_blocksize(desc->tfm); tfm 75 arch/s390/crypto/sha_common.c unsigned int bsize = crypto_shash_blocksize(desc->tfm); tfm 115 arch/s390/crypto/sha_common.c memcpy(out, ctx->state, crypto_shash_digestsize(desc->tfm)); tfm 167 arch/sparc/crypto/aes_glue.c static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, tfm 170 arch/sparc/crypto/aes_glue.c struct crypto_sparc64_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 171 arch/sparc/crypto/aes_glue.c u32 *flags = &tfm->crt_flags; tfm 200 arch/sparc/crypto/aes_glue.c static void crypto_aes_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 202 arch/sparc/crypto/aes_glue.c struct crypto_sparc64_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 207 arch/sparc/crypto/aes_glue.c static void crypto_aes_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 209 arch/sparc/crypto/aes_glue.c struct crypto_sparc64_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 220 arch/sparc/crypto/aes_glue.c struct crypto_sparc64_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 249 arch/sparc/crypto/aes_glue.c struct crypto_sparc64_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 280 arch/sparc/crypto/aes_glue.c struct crypto_sparc64_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 309 arch/sparc/crypto/aes_glue.c struct crypto_sparc64_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 356 arch/sparc/crypto/aes_glue.c struct crypto_sparc64_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 36 arch/sparc/crypto/camellia_glue.c static int camellia_set_key(struct crypto_tfm *tfm, const u8 *_in_key, tfm 39 arch/sparc/crypto/camellia_glue.c struct camellia_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); tfm 41 arch/sparc/crypto/camellia_glue.c u32 *flags = &tfm->crt_flags; tfm 58 arch/sparc/crypto/camellia_glue.c static void camellia_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 60 arch/sparc/crypto/camellia_glue.c struct camellia_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); tfm 67 arch/sparc/crypto/camellia_glue.c static void camellia_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 69 arch/sparc/crypto/camellia_glue.c struct camellia_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); tfm 90 arch/sparc/crypto/camellia_glue.c struct camellia_sparc64_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 153 arch/sparc/crypto/camellia_glue.c struct camellia_sparc64_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 192 arch/sparc/crypto/camellia_glue.c struct camellia_sparc64_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 46 arch/sparc/crypto/crc32c_glue.c u32 *mctx = crypto_shash_ctx(desc->tfm); tfm 108 arch/sparc/crypto/crc32c_glue.c return __crc32c_sparc64_finup(crypto_shash_ctx(desc->tfm), data, len, tfm 112 arch/sparc/crypto/crc32c_glue.c static int crc32c_sparc64_cra_init(struct crypto_tfm *tfm) tfm 114 arch/sparc/crypto/crc32c_glue.c u32 *key = crypto_tfm_ctx(tfm); tfm 44 arch/sparc/crypto/des_glue.c static int des_set_key(struct crypto_tfm *tfm, const u8 *key, tfm 47 arch/sparc/crypto/des_glue.c struct des_sparc64_ctx *dctx = crypto_tfm_ctx(tfm); tfm 54 arch/sparc/crypto/des_glue.c err = crypto_des_verify_key(tfm, key); tfm 67 arch/sparc/crypto/des_glue.c static void sparc_des_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 69 arch/sparc/crypto/des_glue.c struct des_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); tfm 75 arch/sparc/crypto/des_glue.c static void sparc_des_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 77 arch/sparc/crypto/des_glue.c struct des_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); tfm 94 arch/sparc/crypto/des_glue.c struct des_sparc64_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 142 arch/sparc/crypto/des_glue.c struct des_sparc64_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 173 arch/sparc/crypto/des_glue.c struct des_sparc64_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 197 arch/sparc/crypto/des_glue.c static int des3_ede_set_key(struct crypto_tfm *tfm, const u8 *key, tfm 200 arch/sparc/crypto/des_glue.c struct des3_ede_sparc64_ctx *dctx = crypto_tfm_ctx(tfm); tfm 206 arch/sparc/crypto/des_glue.c err = crypto_des3_ede_verify_key(tfm, key); tfm 233 arch/sparc/crypto/des_glue.c static void sparc_des3_ede_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 235 arch/sparc/crypto/des_glue.c struct des3_ede_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); tfm 241 arch/sparc/crypto/des_glue.c static void sparc_des3_ede_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 243 arch/sparc/crypto/des_glue.c struct des3_ede_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); tfm 258 arch/sparc/crypto/des_glue.c struct des3_ede_sparc64_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 310 arch/sparc/crypto/des_glue.c struct des3_ede_sparc64_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 346 arch/sparc/crypto/des_glue.c struct des3_ede_sparc64_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 157 arch/x86/crypto/aegis128-aesni-glue.c static int crypto_aegis128_aesni_setauthsize(struct crypto_aead *tfm, tfm 172 arch/x86/crypto/aegis128-aesni-glue.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 173 arch/x86/crypto/aegis128-aesni-glue.c struct aegis_ctx *ctx = crypto_aegis128_aesni_ctx(tfm); tfm 197 arch/x86/crypto/aegis128-aesni-glue.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 199 arch/x86/crypto/aegis128-aesni-glue.c unsigned int authsize = crypto_aead_authsize(tfm); tfm 219 arch/x86/crypto/aegis128-aesni-glue.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 221 arch/x86/crypto/aegis128-aesni-glue.c unsigned int authsize = crypto_aead_authsize(tfm); tfm 287 arch/x86/crypto/aesni-intel_glue.c aesni_rfc4106_gcm_ctx *aesni_rfc4106_gcm_ctx_get(struct crypto_aead *tfm) tfm 293 arch/x86/crypto/aesni-intel_glue.c return PTR_ALIGN(crypto_aead_ctx(tfm), align); tfm 297 arch/x86/crypto/aesni-intel_glue.c generic_gcmaes_ctx *generic_gcmaes_ctx_get(struct crypto_aead *tfm) tfm 303 arch/x86/crypto/aesni-intel_glue.c return PTR_ALIGN(crypto_aead_ctx(tfm), align); tfm 317 arch/x86/crypto/aesni-intel_glue.c static int aes_set_key_common(struct crypto_tfm *tfm, void *raw_ctx, tfm 321 arch/x86/crypto/aesni-intel_glue.c u32 *flags = &tfm->crt_flags; tfm 341 arch/x86/crypto/aesni-intel_glue.c static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, tfm 344 arch/x86/crypto/aesni-intel_glue.c return aes_set_key_common(tfm, crypto_tfm_ctx(tfm), in_key, key_len); tfm 347 arch/x86/crypto/aesni-intel_glue.c static void aesni_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 349 arch/x86/crypto/aesni-intel_glue.c struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); tfm 360 arch/x86/crypto/aesni-intel_glue.c static void aesni_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 362 arch/x86/crypto/aesni-intel_glue.c struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); tfm 373 arch/x86/crypto/aesni-intel_glue.c static int aesni_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, tfm 376 arch/x86/crypto/aesni-intel_glue.c return aes_set_key_common(crypto_skcipher_tfm(tfm), tfm 377 arch/x86/crypto/aesni-intel_glue.c crypto_skcipher_ctx(tfm), key, len); tfm 382 arch/x86/crypto/aesni-intel_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 383 arch/x86/crypto/aesni-intel_glue.c struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); tfm 404 arch/x86/crypto/aesni-intel_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 405 arch/x86/crypto/aesni-intel_glue.c struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); tfm 426 arch/x86/crypto/aesni-intel_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 427 arch/x86/crypto/aesni-intel_glue.c struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); tfm 448 arch/x86/crypto/aesni-intel_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 449 arch/x86/crypto/aesni-intel_glue.c struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); tfm 505 arch/x86/crypto/aesni-intel_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 506 arch/x86/crypto/aesni-intel_glue.c struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); tfm 529 arch/x86/crypto/aesni-intel_glue.c static int xts_aesni_setkey(struct crypto_skcipher *tfm, const u8 *key, tfm 532 arch/x86/crypto/aesni-intel_glue.c struct aesni_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 535 arch/x86/crypto/aesni-intel_glue.c err = xts_verify_key(tfm, key, keylen); tfm 542 arch/x86/crypto/aesni-intel_glue.c err = aes_set_key_common(crypto_skcipher_tfm(tfm), ctx->raw_crypt_ctx, tfm 548 arch/x86/crypto/aesni-intel_glue.c return aes_set_key_common(crypto_skcipher_tfm(tfm), ctx->raw_tweak_ctx, tfm 606 arch/x86/crypto/aesni-intel_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 607 arch/x86/crypto/aesni-intel_glue.c struct aesni_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 618 arch/x86/crypto/aesni-intel_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 619 arch/x86/crypto/aesni-intel_glue.c struct aesni_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 684 arch/x86/crypto/aesni-intel_glue.c static int generic_gcmaes_set_authsize(struct crypto_aead *tfm, tfm 707 arch/x86/crypto/aesni-intel_glue.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 708 arch/x86/crypto/aesni-intel_glue.c unsigned long auth_tag_len = crypto_aead_authsize(tfm); tfm 853 arch/x86/crypto/aesni-intel_glue.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 854 arch/x86/crypto/aesni-intel_glue.c struct aesni_rfc4106_gcm_ctx *ctx = aesni_rfc4106_gcm_ctx_get(tfm); tfm 880 arch/x86/crypto/aesni-intel_glue.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 881 arch/x86/crypto/aesni-intel_glue.c struct aesni_rfc4106_gcm_ctx *ctx = aesni_rfc4106_gcm_ctx_get(tfm); tfm 1010 arch/x86/crypto/aesni-intel_glue.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 1011 arch/x86/crypto/aesni-intel_glue.c struct generic_gcmaes_ctx *ctx = generic_gcmaes_ctx_get(tfm); tfm 1026 arch/x86/crypto/aesni-intel_glue.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 1027 arch/x86/crypto/aesni-intel_glue.c struct generic_gcmaes_ctx *ctx = generic_gcmaes_ctx_get(tfm); tfm 55 arch/x86/crypto/blowfish_glue.c static void blowfish_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 57 arch/x86/crypto/blowfish_glue.c blowfish_enc_blk(crypto_tfm_ctx(tfm), dst, src); tfm 60 arch/x86/crypto/blowfish_glue.c static void blowfish_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 62 arch/x86/crypto/blowfish_glue.c blowfish_dec_blk(crypto_tfm_ctx(tfm), dst, src); tfm 65 arch/x86/crypto/blowfish_glue.c static int blowfish_setkey_skcipher(struct crypto_skcipher *tfm, tfm 68 arch/x86/crypto/blowfish_glue.c return blowfish_setkey(&tfm->base, key, keylen); tfm 76 arch/x86/crypto/blowfish_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 77 arch/x86/crypto/blowfish_glue.c struct bf_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 153 arch/x86/crypto/blowfish_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 154 arch/x86/crypto/blowfish_glue.c struct bf_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 234 arch/x86/crypto/blowfish_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 235 arch/x86/crypto/blowfish_glue.c struct bf_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 320 arch/x86/crypto/blowfish_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 321 arch/x86/crypto/blowfish_glue.c struct bf_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 145 arch/x86/crypto/camellia_aesni_avx2_glue.c static int camellia_setkey(struct crypto_skcipher *tfm, const u8 *key, tfm 148 arch/x86/crypto/camellia_aesni_avx2_glue.c return __camellia_setkey(crypto_skcipher_ctx(tfm), key, keylen, tfm 149 arch/x86/crypto/camellia_aesni_avx2_glue.c &tfm->base.crt_flags); tfm 180 arch/x86/crypto/camellia_aesni_avx2_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 181 arch/x86/crypto/camellia_aesni_avx2_glue.c struct camellia_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 190 arch/x86/crypto/camellia_aesni_avx2_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 191 arch/x86/crypto/camellia_aesni_avx2_glue.c struct camellia_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 149 arch/x86/crypto/camellia_aesni_avx_glue.c static int camellia_setkey(struct crypto_skcipher *tfm, const u8 *key, tfm 152 arch/x86/crypto/camellia_aesni_avx_glue.c return __camellia_setkey(crypto_skcipher_ctx(tfm), key, keylen, tfm 153 arch/x86/crypto/camellia_aesni_avx_glue.c &tfm->base.crt_flags); tfm 182 arch/x86/crypto/camellia_aesni_avx_glue.c int xts_camellia_setkey(struct crypto_skcipher *tfm, const u8 *key, tfm 185 arch/x86/crypto/camellia_aesni_avx_glue.c struct camellia_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 186 arch/x86/crypto/camellia_aesni_avx_glue.c u32 *flags = &tfm->base.crt_flags; tfm 189 arch/x86/crypto/camellia_aesni_avx_glue.c err = xts_verify_key(tfm, key, keylen); tfm 206 arch/x86/crypto/camellia_aesni_avx_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 207 arch/x86/crypto/camellia_aesni_avx_glue.c struct camellia_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 216 arch/x86/crypto/camellia_aesni_avx_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 217 arch/x86/crypto/camellia_aesni_avx_glue.c struct camellia_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 36 arch/x86/crypto/camellia_glue.c static void camellia_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 38 arch/x86/crypto/camellia_glue.c camellia_enc_blk(crypto_tfm_ctx(tfm), dst, src); tfm 41 arch/x86/crypto/camellia_glue.c static void camellia_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 43 arch/x86/crypto/camellia_glue.c camellia_dec_blk(crypto_tfm_ctx(tfm), dst, src); tfm 1257 arch/x86/crypto/camellia_glue.c static int camellia_setkey(struct crypto_tfm *tfm, const u8 *key, tfm 1260 arch/x86/crypto/camellia_glue.c return __camellia_setkey(crypto_tfm_ctx(tfm), key, key_len, tfm 1261 arch/x86/crypto/camellia_glue.c &tfm->crt_flags); tfm 1264 arch/x86/crypto/camellia_glue.c static int camellia_setkey_skcipher(struct crypto_skcipher *tfm, const u8 *key, tfm 1267 arch/x86/crypto/camellia_glue.c return camellia_setkey(&tfm->base, key, key_len); tfm 29 arch/x86/crypto/cast5_avx_glue.c static int cast5_setkey_skcipher(struct crypto_skcipher *tfm, const u8 *key, tfm 32 arch/x86/crypto/cast5_avx_glue.c return cast5_setkey(&tfm->base, key, keylen); tfm 50 arch/x86/crypto/cast5_avx_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 51 arch/x86/crypto/cast5_avx_glue.c struct cast5_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 113 arch/x86/crypto/cast5_avx_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 114 arch/x86/crypto/cast5_avx_glue.c struct cast5_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 198 arch/x86/crypto/cast5_avx_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 199 arch/x86/crypto/cast5_avx_glue.c struct cast5_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 278 arch/x86/crypto/cast5_avx_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 279 arch/x86/crypto/cast5_avx_glue.c struct cast5_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 38 arch/x86/crypto/cast6_avx_glue.c static int cast6_setkey_skcipher(struct crypto_skcipher *tfm, tfm 41 arch/x86/crypto/cast6_avx_glue.c return cast6_setkey(&tfm->base, key, keylen); tfm 176 arch/x86/crypto/cast6_avx_glue.c static int xts_cast6_setkey(struct crypto_skcipher *tfm, const u8 *key, tfm 179 arch/x86/crypto/cast6_avx_glue.c struct cast6_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 180 arch/x86/crypto/cast6_avx_glue.c u32 *flags = &tfm->base.crt_flags; tfm 183 arch/x86/crypto/cast6_avx_glue.c err = xts_verify_key(tfm, key, keylen); tfm 199 arch/x86/crypto/cast6_avx_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 200 arch/x86/crypto/cast6_avx_glue.c struct cast6_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 209 arch/x86/crypto/cast6_avx_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 210 arch/x86/crypto/cast6_avx_glue.c struct cast6_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 164 arch/x86/crypto/chacha_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 165 arch/x86/crypto/chacha_glue.c struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 184 arch/x86/crypto/chacha_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 185 arch/x86/crypto/chacha_glue.c struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 83 arch/x86/crypto/crc32-pclmul_glue.c static int crc32_pclmul_cra_init(struct crypto_tfm *tfm) tfm 85 arch/x86/crypto/crc32-pclmul_glue.c u32 *key = crypto_tfm_ctx(tfm); tfm 107 arch/x86/crypto/crc32-pclmul_glue.c u32 *mctx = crypto_shash_ctx(desc->tfm); tfm 149 arch/x86/crypto/crc32-pclmul_glue.c return __crc32_pclmul_finup(crypto_shash_ctx(desc->tfm), data, len, tfm 104 arch/x86/crypto/crc32c-intel_glue.c u32 *mctx = crypto_shash_ctx(desc->tfm); tfm 145 arch/x86/crypto/crc32c-intel_glue.c return __crc32c_intel_finup(crypto_shash_ctx(desc->tfm), data, len, tfm 149 arch/x86/crypto/crc32c-intel_glue.c static int crc32c_intel_cra_init(struct crypto_tfm *tfm) tfm 151 arch/x86/crypto/crc32c-intel_glue.c u32 *key = crypto_tfm_ctx(tfm); tfm 199 arch/x86/crypto/crc32c-intel_glue.c return __crc32c_pcl_intel_finup(crypto_shash_ctx(desc->tfm), data, len, tfm 66 arch/x86/crypto/des3_ede_glue.c static void des3_ede_x86_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 68 arch/x86/crypto/des3_ede_glue.c des3_ede_enc_blk(crypto_tfm_ctx(tfm), dst, src); tfm 71 arch/x86/crypto/des3_ede_glue.c static void des3_ede_x86_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 73 arch/x86/crypto/des3_ede_glue.c des3_ede_dec_blk(crypto_tfm_ctx(tfm), dst, src); tfm 122 arch/x86/crypto/des3_ede_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 123 arch/x86/crypto/des3_ede_glue.c struct des3_ede_x86_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 130 arch/x86/crypto/des3_ede_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 131 arch/x86/crypto/des3_ede_glue.c struct des3_ede_x86_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 161 arch/x86/crypto/des3_ede_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 162 arch/x86/crypto/des3_ede_glue.c struct des3_ede_x86_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 240 arch/x86/crypto/des3_ede_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 241 arch/x86/crypto/des3_ede_glue.c struct des3_ede_x86_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 323 arch/x86/crypto/des3_ede_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 324 arch/x86/crypto/des3_ede_glue.c struct des3_ede_x86_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 344 arch/x86/crypto/des3_ede_glue.c static int des3_ede_x86_setkey(struct crypto_tfm *tfm, const u8 *key, tfm 347 arch/x86/crypto/des3_ede_glue.c struct des3_ede_x86_ctx *ctx = crypto_tfm_ctx(tfm); tfm 353 arch/x86/crypto/des3_ede_glue.c if (crypto_tfm_get_flags(tfm) & CRYPTO_TFM_REQ_FORBID_WEAK_KEYS) tfm 378 arch/x86/crypto/des3_ede_glue.c static int des3_ede_x86_setkey_skcipher(struct crypto_skcipher *tfm, tfm 382 arch/x86/crypto/des3_ede_glue.c return des3_ede_x86_setkey(&tfm->base, key, keylen); tfm 53 arch/x86/crypto/ghash-clmulni-intel_glue.c static int ghash_setkey(struct crypto_shash *tfm, tfm 56 arch/x86/crypto/ghash-clmulni-intel_glue.c struct ghash_ctx *ctx = crypto_shash_ctx(tfm); tfm 61 arch/x86/crypto/ghash-clmulni-intel_glue.c crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 82 arch/x86/crypto/ghash-clmulni-intel_glue.c struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); tfm 135 arch/x86/crypto/ghash-clmulni-intel_glue.c struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); tfm 164 arch/x86/crypto/ghash-clmulni-intel_glue.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 165 arch/x86/crypto/ghash-clmulni-intel_glue.c struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); tfm 171 arch/x86/crypto/ghash-clmulni-intel_glue.c desc->tfm = child; tfm 178 arch/x86/crypto/ghash-clmulni-intel_glue.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 179 arch/x86/crypto/ghash-clmulni-intel_glue.c struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); tfm 196 arch/x86/crypto/ghash-clmulni-intel_glue.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 197 arch/x86/crypto/ghash-clmulni-intel_glue.c struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); tfm 236 arch/x86/crypto/ghash-clmulni-intel_glue.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 237 arch/x86/crypto/ghash-clmulni-intel_glue.c struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); tfm 250 arch/x86/crypto/ghash-clmulni-intel_glue.c desc->tfm = child; tfm 255 arch/x86/crypto/ghash-clmulni-intel_glue.c static int ghash_async_setkey(struct crypto_ahash *tfm, const u8 *key, tfm 258 arch/x86/crypto/ghash-clmulni-intel_glue.c struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); tfm 263 arch/x86/crypto/ghash-clmulni-intel_glue.c crypto_ahash_set_flags(child, crypto_ahash_get_flags(tfm) tfm 266 arch/x86/crypto/ghash-clmulni-intel_glue.c crypto_ahash_set_flags(tfm, crypto_ahash_get_flags(child) tfm 272 arch/x86/crypto/ghash-clmulni-intel_glue.c static int ghash_async_init_tfm(struct crypto_tfm *tfm) tfm 275 arch/x86/crypto/ghash-clmulni-intel_glue.c struct ghash_async_ctx *ctx = crypto_tfm_ctx(tfm); tfm 283 arch/x86/crypto/ghash-clmulni-intel_glue.c crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), tfm 290 arch/x86/crypto/ghash-clmulni-intel_glue.c static void ghash_async_exit_tfm(struct crypto_tfm *tfm) tfm 292 arch/x86/crypto/ghash-clmulni-intel_glue.c struct ghash_async_ctx *ctx = crypto_tfm_ctx(tfm); tfm 277 arch/x86/crypto/glue_helper.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 281 arch/x86/crypto/glue_helper.c skcipher_request_set_tfm(&subreq, tfm); tfm 283 arch/x86/crypto/glue_helper.c crypto_skcipher_get_flags(tfm), tfm 35 arch/x86/crypto/serpent_avx2_glue.c static int serpent_setkey_skcipher(struct crypto_skcipher *tfm, tfm 38 arch/x86/crypto/serpent_avx2_glue.c return __serpent_setkey(crypto_skcipher_ctx(tfm), key, keylen); tfm 165 arch/x86/crypto/serpent_avx2_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 166 arch/x86/crypto/serpent_avx2_glue.c struct serpent_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 175 arch/x86/crypto/serpent_avx2_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 176 arch/x86/crypto/serpent_avx2_glue.c struct serpent_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 73 arch/x86/crypto/serpent_avx_glue.c static int serpent_setkey_skcipher(struct crypto_skcipher *tfm, tfm 76 arch/x86/crypto/serpent_avx_glue.c return __serpent_setkey(crypto_skcipher_ctx(tfm), key, keylen); tfm 79 arch/x86/crypto/serpent_avx_glue.c int xts_serpent_setkey(struct crypto_skcipher *tfm, const u8 *key, tfm 82 arch/x86/crypto/serpent_avx_glue.c struct serpent_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 85 arch/x86/crypto/serpent_avx_glue.c err = xts_verify_key(tfm, key, keylen); tfm 205 arch/x86/crypto/serpent_avx_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 206 arch/x86/crypto/serpent_avx_glue.c struct serpent_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 215 arch/x86/crypto/serpent_avx_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 216 arch/x86/crypto/serpent_avx_glue.c struct serpent_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 28 arch/x86/crypto/serpent_sse2_glue.c static int serpent_setkey_skcipher(struct crypto_skcipher *tfm, tfm 31 arch/x86/crypto/serpent_sse2_glue.c return __serpent_setkey(crypto_skcipher_ctx(tfm), key, keylen); tfm 40 arch/x86/crypto/twofish_avx_glue.c static int twofish_setkey_skcipher(struct crypto_skcipher *tfm, tfm 43 arch/x86/crypto/twofish_avx_glue.c return twofish_setkey(&tfm->base, key, keylen); tfm 69 arch/x86/crypto/twofish_avx_glue.c static int xts_twofish_setkey(struct crypto_skcipher *tfm, const u8 *key, tfm 72 arch/x86/crypto/twofish_avx_glue.c struct twofish_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 73 arch/x86/crypto/twofish_avx_glue.c u32 *flags = &tfm->base.crt_flags; tfm 76 arch/x86/crypto/twofish_avx_glue.c err = xts_verify_key(tfm, key, keylen); tfm 208 arch/x86/crypto/twofish_avx_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 209 arch/x86/crypto/twofish_avx_glue.c struct twofish_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 218 arch/x86/crypto/twofish_avx_glue.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 219 arch/x86/crypto/twofish_avx_glue.c struct twofish_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 54 arch/x86/crypto/twofish_glue.c static void twofish_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 56 arch/x86/crypto/twofish_glue.c twofish_enc_blk(crypto_tfm_ctx(tfm), dst, src); tfm 59 arch/x86/crypto/twofish_glue.c static void twofish_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 61 arch/x86/crypto/twofish_glue.c twofish_dec_blk(crypto_tfm_ctx(tfm), dst, src); tfm 22 arch/x86/crypto/twofish_glue_3way.c static int twofish_setkey_skcipher(struct crypto_skcipher *tfm, tfm 25 arch/x86/crypto/twofish_glue_3way.c return twofish_setkey(&tfm->base, key, keylen); tfm 31 arch/x86/include/asm/crypto/camellia.h extern int xts_camellia_setkey(struct crypto_skcipher *tfm, const u8 *key, tfm 39 arch/x86/include/asm/crypto/serpent-avx.h extern int xts_serpent_setkey(struct crypto_skcipher *tfm, const u8 *key, tfm 77 arch/x86/power/hibernate.c struct crypto_shash *tfm; tfm 82 arch/x86/power/hibernate.c tfm = crypto_alloc_shash("md5", 0, 0); tfm 83 arch/x86/power/hibernate.c if (IS_ERR(tfm)) tfm 86 arch/x86/power/hibernate.c desc = kmalloc(sizeof(struct shash_desc) + crypto_shash_descsize(tfm), tfm 93 arch/x86/power/hibernate.c desc->tfm = tfm; tfm 104 arch/x86/power/hibernate.c crypto_free_shash(tfm); tfm 31 crypto/842.c static void *crypto842_alloc_ctx(struct crypto_scomp *tfm) tfm 42 crypto/842.c static int crypto842_init(struct crypto_tfm *tfm) tfm 44 crypto/842.c struct crypto842_ctx *ctx = crypto_tfm_ctx(tfm); tfm 53 crypto/842.c static void crypto842_free_ctx(struct crypto_scomp *tfm, void *ctx) tfm 58 crypto/842.c static void crypto842_exit(struct crypto_tfm *tfm) tfm 60 crypto/842.c struct crypto842_ctx *ctx = crypto_tfm_ctx(tfm); tfm 65 crypto/842.c static int crypto842_compress(struct crypto_tfm *tfm, tfm 69 crypto/842.c struct crypto842_ctx *ctx = crypto_tfm_ctx(tfm); tfm 74 crypto/842.c static int crypto842_scompress(struct crypto_scomp *tfm, tfm 81 crypto/842.c static int crypto842_decompress(struct crypto_tfm *tfm, tfm 88 crypto/842.c static int crypto842_sdecompress(struct crypto_scomp *tfm, tfm 98 crypto/ablkcipher.c struct crypto_tfm *tfm = req->base.tfm; tfm 131 crypto/ablkcipher.c memcpy(req->info, walk->iv, tfm->crt_ablkcipher.ivsize); tfm 178 crypto/ablkcipher.c struct crypto_tfm *tfm, tfm 182 crypto/ablkcipher.c unsigned int ivsize = tfm->crt_ablkcipher.ivsize; tfm 216 crypto/ablkcipher.c struct crypto_tfm *tfm = req->base.tfm; tfm 221 crypto/ablkcipher.c alignmask = crypto_tfm_alg_alignmask(tfm); tfm 223 crypto/ablkcipher.c if (unlikely(n < crypto_tfm_alg_blocksize(tfm))) { tfm 261 crypto/ablkcipher.c struct crypto_tfm *tfm = req->base.tfm; tfm 264 crypto/ablkcipher.c alignmask = crypto_tfm_alg_alignmask(tfm); tfm 275 crypto/ablkcipher.c int err = ablkcipher_copy_iv(walk, tfm, alignmask); tfm 290 crypto/ablkcipher.c walk->blocksize = crypto_tfm_alg_blocksize(req->base.tfm); tfm 295 crypto/ablkcipher.c static int setkey_unaligned(struct crypto_ablkcipher *tfm, const u8 *key, tfm 298 crypto/ablkcipher.c struct ablkcipher_alg *cipher = crypto_ablkcipher_alg(tfm); tfm 299 crypto/ablkcipher.c unsigned long alignmask = crypto_ablkcipher_alignmask(tfm); tfm 311 crypto/ablkcipher.c ret = cipher->setkey(tfm, alignbuffer, keylen); tfm 317 crypto/ablkcipher.c static int setkey(struct crypto_ablkcipher *tfm, const u8 *key, tfm 320 crypto/ablkcipher.c struct ablkcipher_alg *cipher = crypto_ablkcipher_alg(tfm); tfm 321 crypto/ablkcipher.c unsigned long alignmask = crypto_ablkcipher_alignmask(tfm); tfm 324 crypto/ablkcipher.c crypto_ablkcipher_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 329 crypto/ablkcipher.c return setkey_unaligned(tfm, key, keylen); tfm 331 crypto/ablkcipher.c return cipher->setkey(tfm, key, keylen); tfm 340 crypto/ablkcipher.c static int crypto_init_ablkcipher_ops(struct crypto_tfm *tfm, u32 type, tfm 343 crypto/ablkcipher.c struct ablkcipher_alg *alg = &tfm->__crt_alg->cra_ablkcipher; tfm 344 crypto/ablkcipher.c struct ablkcipher_tfm *crt = &tfm->crt_ablkcipher; tfm 352 crypto/ablkcipher.c crt->base = __crypto_ablkcipher_cast(tfm); tfm 52 crypto/acompress.c static void crypto_acomp_exit_tfm(struct crypto_tfm *tfm) tfm 54 crypto/acompress.c struct crypto_acomp *acomp = __crypto_acomp_tfm(tfm); tfm 60 crypto/acompress.c static int crypto_acomp_init_tfm(struct crypto_tfm *tfm) tfm 62 crypto/acompress.c struct crypto_acomp *acomp = __crypto_acomp_tfm(tfm); tfm 65 crypto/acompress.c if (tfm->__crt_alg->cra_type != &crypto_acomp_type) tfm 66 crypto/acompress.c return crypto_init_scomp_ops_async(tfm); tfm 114 crypto/acompress.c struct crypto_tfm *tfm = crypto_acomp_tfm(acomp); tfm 118 crypto/acompress.c if (req && (tfm->__crt_alg->cra_type != &crypto_acomp_type)) tfm 128 crypto/acompress.c struct crypto_tfm *tfm = crypto_acomp_tfm(acomp); tfm 130 crypto/acompress.c if (tfm->__crt_alg->cra_type != &crypto_acomp_type) tfm 117 crypto/adiantum.c static int adiantum_setkey(struct crypto_skcipher *tfm, const u8 *key, tfm 120 crypto/adiantum.c struct adiantum_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); tfm 134 crypto/adiantum.c crypto_skcipher_get_flags(tfm) & tfm 137 crypto/adiantum.c crypto_skcipher_set_flags(tfm, tfm 165 crypto/adiantum.c crypto_skcipher_get_flags(tfm) & tfm 169 crypto/adiantum.c crypto_skcipher_set_flags(tfm, tfm 181 crypto/adiantum.c crypto_shash_set_flags(tctx->hash, crypto_skcipher_get_flags(tfm) & tfm 184 crypto/adiantum.c crypto_skcipher_set_flags(tfm, crypto_shash_get_flags(tctx->hash) & tfm 229 crypto/adiantum.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 230 crypto/adiantum.c const struct adiantum_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); tfm 258 crypto/adiantum.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 259 crypto/adiantum.c const struct adiantum_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); tfm 267 crypto/adiantum.c hash_desc->tfm = tctx->hash; tfm 292 crypto/adiantum.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 293 crypto/adiantum.c const struct adiantum_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); tfm 332 crypto/adiantum.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 333 crypto/adiantum.c const struct adiantum_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); tfm 405 crypto/adiantum.c static int adiantum_init_tfm(struct crypto_skcipher *tfm) tfm 407 crypto/adiantum.c struct skcipher_instance *inst = skcipher_alg_instance(tfm); tfm 409 crypto/adiantum.c struct adiantum_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); tfm 445 crypto/adiantum.c crypto_skcipher_set_reqsize(tfm, tfm 457 crypto/adiantum.c static void adiantum_exit_tfm(struct crypto_skcipher *tfm) tfm 459 crypto/adiantum.c struct adiantum_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); tfm 27 crypto/aead.c static int setkey_unaligned(struct crypto_aead *tfm, const u8 *key, tfm 30 crypto/aead.c unsigned long alignmask = crypto_aead_alignmask(tfm); tfm 42 crypto/aead.c ret = crypto_aead_alg(tfm)->setkey(tfm, alignbuffer, keylen); tfm 48 crypto/aead.c int crypto_aead_setkey(struct crypto_aead *tfm, tfm 51 crypto/aead.c unsigned long alignmask = crypto_aead_alignmask(tfm); tfm 55 crypto/aead.c err = setkey_unaligned(tfm, key, keylen); tfm 57 crypto/aead.c err = crypto_aead_alg(tfm)->setkey(tfm, key, keylen); tfm 60 crypto/aead.c crypto_aead_set_flags(tfm, CRYPTO_TFM_NEED_KEY); tfm 64 crypto/aead.c crypto_aead_clear_flags(tfm, CRYPTO_TFM_NEED_KEY); tfm 69 crypto/aead.c int crypto_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) tfm 73 crypto/aead.c if ((!authsize && crypto_aead_maxauthsize(tfm)) || tfm 74 crypto/aead.c authsize > crypto_aead_maxauthsize(tfm)) tfm 77 crypto/aead.c if (crypto_aead_alg(tfm)->setauthsize) { tfm 78 crypto/aead.c err = crypto_aead_alg(tfm)->setauthsize(tfm, authsize); tfm 83 crypto/aead.c tfm->authsize = authsize; tfm 124 crypto/aead.c static void crypto_aead_exit_tfm(struct crypto_tfm *tfm) tfm 126 crypto/aead.c struct crypto_aead *aead = __crypto_aead_cast(tfm); tfm 132 crypto/aead.c static int crypto_aead_init_tfm(struct crypto_tfm *tfm) tfm 134 crypto/aead.c struct crypto_aead *aead = __crypto_aead_cast(tfm); tfm 215 crypto/aead.c static int aead_geniv_setkey(struct crypto_aead *tfm, tfm 218 crypto/aead.c struct aead_geniv_ctx *ctx = crypto_aead_ctx(tfm); tfm 223 crypto/aead.c static int aead_geniv_setauthsize(struct crypto_aead *tfm, tfm 226 crypto/aead.c struct aead_geniv_ctx *ctx = crypto_aead_ctx(tfm); tfm 362 crypto/aead.c void aead_exit_geniv(struct crypto_aead *tfm) tfm 364 crypto/aead.c struct aead_geniv_ctx *ctx = crypto_aead_ctx(tfm); tfm 383 crypto/aegis128-core.c static int crypto_aegis128_setauthsize(struct crypto_aead *tfm, tfm 398 crypto/aegis128-core.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 399 crypto/aegis128-core.c struct aegis_ctx *ctx = crypto_aead_ctx(tfm); tfm 415 crypto/aegis128-core.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 417 crypto/aegis128-core.c unsigned int authsize = crypto_aead_authsize(tfm); tfm 440 crypto/aegis128-core.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 442 crypto/aegis128-core.c unsigned int authsize = crypto_aead_authsize(tfm); tfm 1135 crypto/aes_generic.c int crypto_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, tfm 1138 crypto/aes_generic.c struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1139 crypto/aes_generic.c u32 *flags = &tfm->crt_flags; tfm 1182 crypto/aes_generic.c static void crypto_aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) tfm 1184 crypto/aes_generic.c const struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1252 crypto/aes_generic.c static void crypto_aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) tfm 1254 crypto/aes_generic.c const struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 12 crypto/aes_ti.c static int aesti_set_key(struct crypto_tfm *tfm, const u8 *in_key, tfm 15 crypto/aes_ti.c struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 20 crypto/aes_ti.c static void aesti_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) tfm 22 crypto/aes_ti.c const struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 36 crypto/aes_ti.c static void aesti_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) tfm 38 crypto/aes_ti.c const struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 168 crypto/ahash.c static int ahash_setkey_unaligned(struct crypto_ahash *tfm, const u8 *key, tfm 171 crypto/ahash.c unsigned long alignmask = crypto_ahash_alignmask(tfm); tfm 183 crypto/ahash.c ret = tfm->setkey(tfm, alignbuffer, keylen); tfm 188 crypto/ahash.c static int ahash_nosetkey(struct crypto_ahash *tfm, const u8 *key, tfm 194 crypto/ahash.c static void ahash_set_needkey(struct crypto_ahash *tfm) tfm 196 crypto/ahash.c const struct hash_alg_common *alg = crypto_hash_alg_common(tfm); tfm 198 crypto/ahash.c if (tfm->setkey != ahash_nosetkey && tfm 200 crypto/ahash.c crypto_ahash_set_flags(tfm, CRYPTO_TFM_NEED_KEY); tfm 203 crypto/ahash.c int crypto_ahash_setkey(struct crypto_ahash *tfm, const u8 *key, tfm 206 crypto/ahash.c unsigned long alignmask = crypto_ahash_alignmask(tfm); tfm 210 crypto/ahash.c err = ahash_setkey_unaligned(tfm, key, keylen); tfm 212 crypto/ahash.c err = tfm->setkey(tfm, key, keylen); tfm 215 crypto/ahash.c ahash_set_needkey(tfm); tfm 219 crypto/ahash.c crypto_ahash_clear_flags(tfm, CRYPTO_TFM_NEED_KEY); tfm 232 crypto/ahash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 233 crypto/ahash.c unsigned long alignmask = crypto_ahash_alignmask(tfm); tfm 234 crypto/ahash.c unsigned int ds = crypto_ahash_digestsize(tfm); tfm 362 crypto/ahash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 363 crypto/ahash.c unsigned long alignmask = crypto_ahash_alignmask(tfm); tfm 373 crypto/ahash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 374 crypto/ahash.c struct crypto_alg *alg = tfm->base.__crt_alg; tfm 387 crypto/ahash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 388 crypto/ahash.c struct crypto_alg *alg = tfm->base.__crt_alg; tfm 401 crypto/ahash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 402 crypto/ahash.c struct crypto_alg *alg = tfm->base.__crt_alg; tfm 407 crypto/ahash.c if (crypto_ahash_get_flags(tfm) & CRYPTO_TFM_NEED_KEY) tfm 410 crypto/ahash.c ret = crypto_ahash_op(req, tfm->digest); tfm 464 crypto/ahash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 471 crypto/ahash.c err = tfm->update(req); tfm 478 crypto/ahash.c static int crypto_ahash_init_tfm(struct crypto_tfm *tfm) tfm 480 crypto/ahash.c struct crypto_ahash *hash = __crypto_ahash_cast(tfm); tfm 485 crypto/ahash.c if (tfm->__crt_alg->cra_type != &crypto_ahash_type) tfm 486 crypto/ahash.c return crypto_init_shash_ops_async(tfm); tfm 50 crypto/akcipher.c static void crypto_akcipher_exit_tfm(struct crypto_tfm *tfm) tfm 52 crypto/akcipher.c struct crypto_akcipher *akcipher = __crypto_akcipher_tfm(tfm); tfm 58 crypto/akcipher.c static int crypto_akcipher_init_tfm(struct crypto_tfm *tfm) tfm 60 crypto/akcipher.c struct crypto_akcipher *akcipher = __crypto_akcipher_tfm(tfm); tfm 716 crypto/algapi.c struct crypto_tfm *tfm; tfm 722 crypto/algapi.c tfm = ERR_PTR(-EINVAL); tfm 726 crypto/algapi.c tfm = __crypto_alloc_tfm(alg, type, mask); tfm 727 crypto/algapi.c if (IS_ERR(tfm)) tfm 730 crypto/algapi.c return tfm; tfm 734 crypto/algapi.c return tfm; tfm 741 crypto/algapi.c struct crypto_tfm *tfm; tfm 747 crypto/algapi.c tfm = crypto_create_tfm(alg, spawn->frontend); tfm 748 crypto/algapi.c if (IS_ERR(tfm)) tfm 751 crypto/algapi.c return tfm; tfm 755 crypto/algapi.c return tfm; tfm 51 crypto/algif_aead.c struct crypto_aead *tfm = aeadc->aead; tfm 52 crypto/algif_aead.c unsigned int as = crypto_aead_authsize(tfm); tfm 68 crypto/algif_aead.c struct crypto_aead *tfm = aeadc->aead; tfm 69 crypto/algif_aead.c unsigned int ivsize = crypto_aead_ivsize(tfm); tfm 97 crypto/algif_aead.c struct crypto_aead *tfm = aeadc->aead; tfm 99 crypto/algif_aead.c unsigned int i, as = crypto_aead_authsize(tfm); tfm 154 crypto/algif_aead.c crypto_aead_reqsize(tfm)); tfm 283 crypto/algif_aead.c aead_request_set_tfm(&areq->cra_u.aead_req, tfm); tfm 382 crypto/algif_aead.c struct aead_tfm *tfm; tfm 392 crypto/algif_aead.c tfm = pask->private; tfm 396 crypto/algif_aead.c if (crypto_aead_get_flags(tfm->aead) & CRYPTO_TFM_NEED_KEY) tfm 475 crypto/algif_aead.c struct aead_tfm *tfm; tfm 479 crypto/algif_aead.c tfm = kzalloc(sizeof(*tfm), GFP_KERNEL); tfm 480 crypto/algif_aead.c if (!tfm) tfm 485 crypto/algif_aead.c kfree(tfm); tfm 492 crypto/algif_aead.c kfree(tfm); tfm 496 crypto/algif_aead.c tfm->aead = aead; tfm 497 crypto/algif_aead.c tfm->null_tfm = null_tfm; tfm 499 crypto/algif_aead.c return tfm; tfm 504 crypto/algif_aead.c struct aead_tfm *tfm = private; tfm 506 crypto/algif_aead.c crypto_free_aead(tfm->aead); tfm 508 crypto/algif_aead.c kfree(tfm); tfm 513 crypto/algif_aead.c struct aead_tfm *tfm = private; tfm 515 crypto/algif_aead.c return crypto_aead_setauthsize(tfm->aead, authsize); tfm 520 crypto/algif_aead.c struct aead_tfm *tfm = private; tfm 522 crypto/algif_aead.c return crypto_aead_setkey(tfm->aead, key, keylen); tfm 532 crypto/algif_aead.c struct crypto_aead *tfm = aeadc->aead; tfm 533 crypto/algif_aead.c unsigned int ivlen = crypto_aead_ivsize(tfm); tfm 545 crypto/algif_aead.c struct aead_tfm *tfm = private; tfm 546 crypto/algif_aead.c struct crypto_aead *aead = tfm->aead; tfm 581 crypto/algif_aead.c struct aead_tfm *tfm = private; tfm 583 crypto/algif_aead.c if (crypto_aead_get_flags(tfm->aead) & CRYPTO_TFM_NEED_KEY) tfm 299 crypto/algif_hash.c struct crypto_ahash *tfm; tfm 309 crypto/algif_hash.c tfm = pask->private; tfm 313 crypto/algif_hash.c if (crypto_ahash_get_flags(tfm) & CRYPTO_TFM_NEED_KEY) tfm 428 crypto/algif_hash.c struct crypto_ahash *tfm = private; tfm 431 crypto/algif_hash.c unsigned int len = sizeof(*ctx) + crypto_ahash_reqsize(tfm); tfm 444 crypto/algif_hash.c ahash_request_set_tfm(&ctx->req, tfm); tfm 455 crypto/algif_hash.c struct crypto_ahash *tfm = private; tfm 457 crypto/algif_hash.c if (crypto_ahash_get_flags(tfm) & CRYPTO_TFM_NEED_KEY) tfm 44 crypto/algif_skcipher.c struct crypto_skcipher *tfm = pask->private; tfm 45 crypto/algif_skcipher.c unsigned ivsize = crypto_skcipher_ivsize(tfm); tfm 58 crypto/algif_skcipher.c struct crypto_skcipher *tfm = pask->private; tfm 59 crypto/algif_skcipher.c unsigned int bs = crypto_skcipher_chunksize(tfm); tfm 72 crypto/algif_skcipher.c crypto_skcipher_reqsize(tfm)); tfm 110 crypto/algif_skcipher.c skcipher_request_set_tfm(&areq->cra_u.skcipher_req, tfm); tfm 213 crypto/algif_skcipher.c struct crypto_skcipher *tfm; tfm 223 crypto/algif_skcipher.c tfm = pask->private; tfm 227 crypto/algif_skcipher.c if (crypto_skcipher_get_flags(tfm) & CRYPTO_TFM_NEED_KEY) tfm 325 crypto/algif_skcipher.c struct crypto_skcipher *tfm = pask->private; tfm 328 crypto/algif_skcipher.c sock_kzfree_s(sk, ctx->iv, crypto_skcipher_ivsize(tfm)); tfm 337 crypto/algif_skcipher.c struct crypto_skcipher *tfm = private; tfm 344 crypto/algif_skcipher.c ctx->iv = sock_kmalloc(sk, crypto_skcipher_ivsize(tfm), tfm 351 crypto/algif_skcipher.c memset(ctx->iv, 0, crypto_skcipher_ivsize(tfm)); tfm 371 crypto/algif_skcipher.c struct crypto_skcipher *tfm = private; tfm 373 crypto/algif_skcipher.c if (crypto_skcipher_get_flags(tfm) & CRYPTO_TFM_NEED_KEY) tfm 46 crypto/ansi_cprng.c struct crypto_cipher *tfm; tfm 155 crypto/ansi_cprng.c crypto_cipher_encrypt_one(ctx->tfm, output, tmp); tfm 272 crypto/ansi_cprng.c crypto_free_cipher(ctx->tfm); tfm 305 crypto/ansi_cprng.c ret = crypto_cipher_setkey(ctx->tfm, prng_key, klen); tfm 308 crypto/ansi_cprng.c crypto_cipher_get_flags(ctx->tfm)); tfm 319 crypto/ansi_cprng.c static int cprng_init(struct crypto_tfm *tfm) tfm 321 crypto/ansi_cprng.c struct prng_context *ctx = crypto_tfm_ctx(tfm); tfm 324 crypto/ansi_cprng.c ctx->tfm = crypto_alloc_cipher("aes", 0, 0); tfm 325 crypto/ansi_cprng.c if (IS_ERR(ctx->tfm)) { tfm 328 crypto/ansi_cprng.c return PTR_ERR(ctx->tfm); tfm 343 crypto/ansi_cprng.c static void cprng_exit(struct crypto_tfm *tfm) tfm 345 crypto/ansi_cprng.c free_prng_context(crypto_tfm_ctx(tfm)); tfm 348 crypto/ansi_cprng.c static int cprng_get_random(struct crypto_rng *tfm, tfm 352 crypto/ansi_cprng.c struct prng_context *prng = crypto_rng_ctx(tfm); tfm 363 crypto/ansi_cprng.c static int cprng_reset(struct crypto_rng *tfm, tfm 366 crypto/ansi_cprng.c struct prng_context *prng = crypto_rng_ctx(tfm); tfm 384 crypto/ansi_cprng.c static int fips_cprng_get_random(struct crypto_rng *tfm, tfm 388 crypto/ansi_cprng.c struct prng_context *prng = crypto_rng_ctx(tfm); tfm 393 crypto/ansi_cprng.c static int fips_cprng_reset(struct crypto_rng *tfm, tfm 400 crypto/ansi_cprng.c struct prng_context *prng = crypto_rng_ctx(tfm); tfm 409 crypto/ansi_cprng.c rc = cprng_reset(tfm, seed, slen); tfm 462 crypto/anubis.c static int anubis_setkey(struct crypto_tfm *tfm, const u8 *in_key, tfm 465 crypto/anubis.c struct anubis_ctx *ctx = crypto_tfm_ctx(tfm); tfm 467 crypto/anubis.c u32 *flags = &tfm->crt_flags; tfm 662 crypto/anubis.c static void anubis_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 664 crypto/anubis.c struct anubis_ctx *ctx = crypto_tfm_ctx(tfm); tfm 668 crypto/anubis.c static void anubis_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 670 crypto/anubis.c struct anubis_ctx *ctx = crypto_tfm_ctx(tfm); tfm 294 crypto/api.c static int crypto_init_ops(struct crypto_tfm *tfm, u32 type, u32 mask) tfm 296 crypto/api.c const struct crypto_type *type_obj = tfm->__crt_alg->cra_type; tfm 299 crypto/api.c return type_obj->init(tfm, type, mask); tfm 301 crypto/api.c switch (crypto_tfm_alg_type(tfm)) { tfm 303 crypto/api.c return crypto_init_cipher_ops(tfm); tfm 306 crypto/api.c return crypto_init_compress_ops(tfm); tfm 316 crypto/api.c static void crypto_exit_ops(struct crypto_tfm *tfm) tfm 318 crypto/api.c const struct crypto_type *type = tfm->__crt_alg->cra_type; tfm 320 crypto/api.c if (type && tfm->exit) tfm 321 crypto/api.c tfm->exit(tfm); tfm 359 crypto/api.c struct crypto_tfm *tfm = NULL; tfm 363 crypto/api.c tfm_size = sizeof(*tfm) + crypto_ctxsize(alg, type, mask); tfm 364 crypto/api.c tfm = kzalloc(tfm_size, GFP_KERNEL); tfm 365 crypto/api.c if (tfm == NULL) tfm 368 crypto/api.c tfm->__crt_alg = alg; tfm 370 crypto/api.c err = crypto_init_ops(tfm, type, mask); tfm 374 crypto/api.c if (!tfm->exit && alg->cra_init && (err = alg->cra_init(tfm))) tfm 380 crypto/api.c crypto_exit_ops(tfm); tfm 384 crypto/api.c kfree(tfm); tfm 386 crypto/api.c tfm = ERR_PTR(err); tfm 388 crypto/api.c return tfm; tfm 416 crypto/api.c struct crypto_tfm *tfm; tfm 428 crypto/api.c tfm = __crypto_alloc_tfm(alg, type, mask); tfm 429 crypto/api.c if (!IS_ERR(tfm)) tfm 430 crypto/api.c return tfm; tfm 433 crypto/api.c err = PTR_ERR(tfm); tfm 452 crypto/api.c struct crypto_tfm *tfm = NULL; tfm 458 crypto/api.c total = tfmsize + sizeof(*tfm) + frontend->extsize(alg); tfm 464 crypto/api.c tfm = (struct crypto_tfm *)(mem + tfmsize); tfm 465 crypto/api.c tfm->__crt_alg = alg; tfm 467 crypto/api.c err = frontend->init_tfm(tfm); tfm 471 crypto/api.c if (!tfm->exit && alg->cra_init && (err = alg->cra_init(tfm))) tfm 477 crypto/api.c crypto_exit_ops(tfm); tfm 527 crypto/api.c void *tfm; tfm 539 crypto/api.c tfm = crypto_create_tfm(alg, frontend); tfm 540 crypto/api.c if (!IS_ERR(tfm)) tfm 541 crypto/api.c return tfm; tfm 544 crypto/api.c err = PTR_ERR(tfm); tfm 567 crypto/api.c void crypto_destroy_tfm(void *mem, struct crypto_tfm *tfm) tfm 574 crypto/api.c alg = tfm->__crt_alg; tfm 576 crypto/api.c if (!tfm->exit && alg->cra_exit) tfm 577 crypto/api.c alg->cra_exit(tfm); tfm 578 crypto/api.c crypto_exit_ops(tfm); tfm 16 crypto/arc4.c static int crypto_arc4_setkey(struct crypto_skcipher *tfm, const u8 *in_key, tfm 19 crypto/arc4.c struct arc4_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 26 crypto/arc4.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 27 crypto/arc4.c struct arc4_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 414 crypto/asymmetric_keys/asym_tpm.c struct crypto_akcipher *tfm; tfm 424 crypto/asymmetric_keys/asym_tpm.c tfm = crypto_alloc_akcipher(alg_name, 0, 0); tfm 425 crypto/asymmetric_keys/asym_tpm.c if (IS_ERR(tfm)) tfm 426 crypto/asymmetric_keys/asym_tpm.c return PTR_ERR(tfm); tfm 431 crypto/asymmetric_keys/asym_tpm.c ret = crypto_akcipher_set_pub_key(tfm, der_pub_key, der_pub_key_len); tfm 435 crypto/asymmetric_keys/asym_tpm.c len = crypto_akcipher_maxsize(tfm); tfm 450 crypto/asymmetric_keys/asym_tpm.c crypto_free_akcipher(tfm); tfm 464 crypto/asymmetric_keys/asym_tpm.c struct crypto_akcipher *tfm; tfm 478 crypto/asymmetric_keys/asym_tpm.c tfm = crypto_alloc_akcipher(alg_name, 0, 0); tfm 479 crypto/asymmetric_keys/asym_tpm.c if (IS_ERR(tfm)) tfm 480 crypto/asymmetric_keys/asym_tpm.c return PTR_ERR(tfm); tfm 485 crypto/asymmetric_keys/asym_tpm.c ret = crypto_akcipher_set_pub_key(tfm, der_pub_key, der_pub_key_len); tfm 490 crypto/asymmetric_keys/asym_tpm.c req = akcipher_request_alloc(tfm, GFP_KERNEL); tfm 511 crypto/asymmetric_keys/asym_tpm.c crypto_free_akcipher(tfm); tfm 753 crypto/asymmetric_keys/asym_tpm.c struct crypto_akcipher *tfm; tfm 774 crypto/asymmetric_keys/asym_tpm.c tfm = crypto_alloc_akcipher(alg_name, 0, 0); tfm 775 crypto/asymmetric_keys/asym_tpm.c if (IS_ERR(tfm)) tfm 776 crypto/asymmetric_keys/asym_tpm.c return PTR_ERR(tfm); tfm 781 crypto/asymmetric_keys/asym_tpm.c ret = crypto_akcipher_set_pub_key(tfm, der_pub_key, der_pub_key_len); tfm 786 crypto/asymmetric_keys/asym_tpm.c req = akcipher_request_alloc(tfm, GFP_KERNEL); tfm 803 crypto/asymmetric_keys/asym_tpm.c crypto_free_akcipher(tfm); tfm 26 crypto/asymmetric_keys/pkcs7_verify.c struct crypto_shash *tfm; tfm 43 crypto/asymmetric_keys/pkcs7_verify.c tfm = crypto_alloc_shash(sinfo->sig->hash_algo, 0, 0); tfm 44 crypto/asymmetric_keys/pkcs7_verify.c if (IS_ERR(tfm)) tfm 45 crypto/asymmetric_keys/pkcs7_verify.c return (PTR_ERR(tfm) == -ENOENT) ? -ENOPKG : PTR_ERR(tfm); tfm 47 crypto/asymmetric_keys/pkcs7_verify.c desc_size = crypto_shash_descsize(tfm) + sizeof(*desc); tfm 48 crypto/asymmetric_keys/pkcs7_verify.c sig->digest_size = crypto_shash_digestsize(tfm); tfm 59 crypto/asymmetric_keys/pkcs7_verify.c desc->tfm = tfm; tfm 120 crypto/asymmetric_keys/pkcs7_verify.c crypto_free_shash(tfm); tfm 106 crypto/asymmetric_keys/public_key.c struct crypto_akcipher *tfm; tfm 118 crypto/asymmetric_keys/public_key.c tfm = crypto_alloc_akcipher(alg_name, 0, 0); tfm 119 crypto/asymmetric_keys/public_key.c if (IS_ERR(tfm)) tfm 120 crypto/asymmetric_keys/public_key.c return PTR_ERR(tfm); tfm 133 crypto/asymmetric_keys/public_key.c ret = crypto_akcipher_set_priv_key(tfm, key, pkey->keylen); tfm 135 crypto/asymmetric_keys/public_key.c ret = crypto_akcipher_set_pub_key(tfm, key, pkey->keylen); tfm 139 crypto/asymmetric_keys/public_key.c len = crypto_akcipher_maxsize(tfm); tfm 155 crypto/asymmetric_keys/public_key.c crypto_free_akcipher(tfm); tfm 168 crypto/asymmetric_keys/public_key.c struct crypto_akcipher *tfm; tfm 183 crypto/asymmetric_keys/public_key.c tfm = crypto_alloc_akcipher(alg_name, 0, 0); tfm 184 crypto/asymmetric_keys/public_key.c if (IS_ERR(tfm)) tfm 185 crypto/asymmetric_keys/public_key.c return PTR_ERR(tfm); tfm 188 crypto/asymmetric_keys/public_key.c req = akcipher_request_alloc(tfm, GFP_KERNEL); tfm 204 crypto/asymmetric_keys/public_key.c ret = crypto_akcipher_set_priv_key(tfm, key, pkey->keylen); tfm 206 crypto/asymmetric_keys/public_key.c ret = crypto_akcipher_set_pub_key(tfm, key, pkey->keylen); tfm 243 crypto/asymmetric_keys/public_key.c crypto_free_akcipher(tfm); tfm 255 crypto/asymmetric_keys/public_key.c struct crypto_akcipher *tfm; tfm 274 crypto/asymmetric_keys/public_key.c tfm = crypto_alloc_akcipher(alg_name, 0, 0); tfm 275 crypto/asymmetric_keys/public_key.c if (IS_ERR(tfm)) tfm 276 crypto/asymmetric_keys/public_key.c return PTR_ERR(tfm); tfm 279 crypto/asymmetric_keys/public_key.c req = akcipher_request_alloc(tfm, GFP_KERNEL); tfm 295 crypto/asymmetric_keys/public_key.c ret = crypto_akcipher_set_priv_key(tfm, key, pkey->keylen); tfm 297 crypto/asymmetric_keys/public_key.c ret = crypto_akcipher_set_pub_key(tfm, key, pkey->keylen); tfm 317 crypto/asymmetric_keys/public_key.c crypto_free_akcipher(tfm); tfm 321 crypto/asymmetric_keys/verify_pefile.c struct crypto_shash *tfm; tfm 332 crypto/asymmetric_keys/verify_pefile.c tfm = crypto_alloc_shash(ctx->digest_algo, 0, 0); tfm 333 crypto/asymmetric_keys/verify_pefile.c if (IS_ERR(tfm)) tfm 334 crypto/asymmetric_keys/verify_pefile.c return (PTR_ERR(tfm) == -ENOENT) ? -ENOPKG : PTR_ERR(tfm); tfm 336 crypto/asymmetric_keys/verify_pefile.c desc_size = crypto_shash_descsize(tfm) + sizeof(*desc); tfm 337 crypto/asymmetric_keys/verify_pefile.c digest_size = crypto_shash_digestsize(tfm); tfm 352 crypto/asymmetric_keys/verify_pefile.c desc->tfm = tfm; tfm 381 crypto/asymmetric_keys/verify_pefile.c crypto_free_shash(tfm); tfm 26 crypto/asymmetric_keys/x509_public_key.c struct crypto_shash *tfm; tfm 54 crypto/asymmetric_keys/x509_public_key.c tfm = crypto_alloc_shash(sig->hash_algo, 0, 0); tfm 55 crypto/asymmetric_keys/x509_public_key.c if (IS_ERR(tfm)) { tfm 56 crypto/asymmetric_keys/x509_public_key.c if (PTR_ERR(tfm) == -ENOENT) { tfm 60 crypto/asymmetric_keys/x509_public_key.c return PTR_ERR(tfm); tfm 63 crypto/asymmetric_keys/x509_public_key.c desc_size = crypto_shash_descsize(tfm) + sizeof(*desc); tfm 64 crypto/asymmetric_keys/x509_public_key.c sig->digest_size = crypto_shash_digestsize(tfm); tfm 75 crypto/asymmetric_keys/x509_public_key.c desc->tfm = tfm; tfm 92 crypto/asymmetric_keys/x509_public_key.c crypto_free_shash(tfm); tfm 317 crypto/authenc.c static int crypto_authenc_init_tfm(struct crypto_aead *tfm) tfm 319 crypto/authenc.c struct aead_instance *inst = aead_alg_instance(tfm); tfm 321 crypto/authenc.c struct crypto_authenc_ctx *ctx = crypto_aead_ctx(tfm); tfm 346 crypto/authenc.c tfm, tfm 364 crypto/authenc.c static void crypto_authenc_exit_tfm(struct crypto_aead *tfm) tfm 366 crypto/authenc.c struct crypto_authenc_ctx *ctx = crypto_aead_ctx(tfm); tfm 332 crypto/authencesn.c static int crypto_authenc_esn_init_tfm(struct crypto_aead *tfm) tfm 334 crypto/authencesn.c struct aead_instance *inst = aead_alg_instance(tfm); tfm 336 crypto/authencesn.c struct crypto_authenc_esn_ctx *ctx = crypto_aead_ctx(tfm); tfm 364 crypto/authencesn.c tfm, tfm 382 crypto/authencesn.c static void crypto_authenc_esn_exit_tfm(struct crypto_aead *tfm) tfm 384 crypto/authencesn.c struct crypto_authenc_esn_ctx *ctx = crypto_aead_ctx(tfm); tfm 296 crypto/blkcipher.c walk->walk_blocksize = crypto_blkcipher_blocksize(desc->tfm); tfm 298 crypto/blkcipher.c walk->ivsize = crypto_blkcipher_ivsize(desc->tfm); tfm 299 crypto/blkcipher.c walk->alignmask = crypto_blkcipher_alignmask(desc->tfm); tfm 308 crypto/blkcipher.c walk->walk_blocksize = crypto_blkcipher_blocksize(desc->tfm); tfm 310 crypto/blkcipher.c walk->ivsize = crypto_blkcipher_ivsize(desc->tfm); tfm 311 crypto/blkcipher.c walk->alignmask = crypto_blkcipher_alignmask(desc->tfm); tfm 347 crypto/blkcipher.c walk->cipher_blocksize = crypto_blkcipher_blocksize(desc->tfm); tfm 348 crypto/blkcipher.c walk->ivsize = crypto_blkcipher_ivsize(desc->tfm); tfm 349 crypto/blkcipher.c walk->alignmask = crypto_blkcipher_alignmask(desc->tfm); tfm 356 crypto/blkcipher.c struct crypto_aead *tfm, tfm 361 crypto/blkcipher.c walk->cipher_blocksize = crypto_aead_blocksize(tfm); tfm 362 crypto/blkcipher.c walk->ivsize = crypto_aead_ivsize(tfm); tfm 363 crypto/blkcipher.c walk->alignmask = crypto_aead_alignmask(tfm); tfm 368 crypto/blkcipher.c static int setkey_unaligned(struct crypto_tfm *tfm, const u8 *key, tfm 371 crypto/blkcipher.c struct blkcipher_alg *cipher = &tfm->__crt_alg->cra_blkcipher; tfm 372 crypto/blkcipher.c unsigned long alignmask = crypto_tfm_alg_alignmask(tfm); tfm 384 crypto/blkcipher.c ret = cipher->setkey(tfm, alignbuffer, keylen); tfm 390 crypto/blkcipher.c static int setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) tfm 392 crypto/blkcipher.c struct blkcipher_alg *cipher = &tfm->__crt_alg->cra_blkcipher; tfm 393 crypto/blkcipher.c unsigned long alignmask = crypto_tfm_alg_alignmask(tfm); tfm 396 crypto/blkcipher.c tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; tfm 401 crypto/blkcipher.c return setkey_unaligned(tfm, key, keylen); tfm 403 crypto/blkcipher.c return cipher->setkey(tfm, key, keylen); tfm 406 crypto/blkcipher.c static int async_setkey(struct crypto_ablkcipher *tfm, const u8 *key, tfm 409 crypto/blkcipher.c return setkey(crypto_ablkcipher_tfm(tfm), key, keylen); tfm 414 crypto/blkcipher.c struct crypto_tfm *tfm = req->base.tfm; tfm 415 crypto/blkcipher.c struct blkcipher_alg *alg = &tfm->__crt_alg->cra_blkcipher; tfm 417 crypto/blkcipher.c .tfm = __crypto_blkcipher_cast(tfm), tfm 428 crypto/blkcipher.c struct crypto_tfm *tfm = req->base.tfm; tfm 429 crypto/blkcipher.c struct blkcipher_alg *alg = &tfm->__crt_alg->cra_blkcipher; tfm 431 crypto/blkcipher.c .tfm = __crypto_blkcipher_cast(tfm), tfm 454 crypto/blkcipher.c static int crypto_init_blkcipher_ops_async(struct crypto_tfm *tfm) tfm 456 crypto/blkcipher.c struct ablkcipher_tfm *crt = &tfm->crt_ablkcipher; tfm 457 crypto/blkcipher.c struct blkcipher_alg *alg = &tfm->__crt_alg->cra_blkcipher; tfm 462 crypto/blkcipher.c crt->base = __crypto_ablkcipher_cast(tfm); tfm 468 crypto/blkcipher.c static int crypto_init_blkcipher_ops_sync(struct crypto_tfm *tfm) tfm 470 crypto/blkcipher.c struct blkcipher_tfm *crt = &tfm->crt_blkcipher; tfm 471 crypto/blkcipher.c struct blkcipher_alg *alg = &tfm->__crt_alg->cra_blkcipher; tfm 472 crypto/blkcipher.c unsigned long align = crypto_tfm_alg_alignmask(tfm) + 1; tfm 479 crypto/blkcipher.c addr = (unsigned long)crypto_tfm_ctx(tfm); tfm 481 crypto/blkcipher.c addr += ALIGN(tfm->__crt_alg->cra_ctxsize, align); tfm 487 crypto/blkcipher.c static int crypto_init_blkcipher_ops(struct crypto_tfm *tfm, u32 type, u32 mask) tfm 489 crypto/blkcipher.c struct blkcipher_alg *alg = &tfm->__crt_alg->cra_blkcipher; tfm 495 crypto/blkcipher.c return crypto_init_blkcipher_ops_sync(tfm); tfm 497 crypto/blkcipher.c return crypto_init_blkcipher_ops_async(tfm); tfm 344 crypto/blowfish_common.c int blowfish_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) tfm 346 crypto/blowfish_common.c struct bf_ctx *ctx = crypto_tfm_ctx(tfm); tfm 36 crypto/blowfish_generic.c static void bf_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 38 crypto/blowfish_generic.c struct bf_ctx *ctx = crypto_tfm_ctx(tfm); tfm 70 crypto/blowfish_generic.c static void bf_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 72 crypto/blowfish_generic.c struct bf_ctx *ctx = crypto_tfm_ctx(tfm); tfm 968 crypto/camellia_generic.c camellia_set_key(struct crypto_tfm *tfm, const u8 *in_key, tfm 971 crypto/camellia_generic.c struct camellia_ctx *cctx = crypto_tfm_ctx(tfm); tfm 973 crypto/camellia_generic.c u32 *flags = &tfm->crt_flags; tfm 997 crypto/camellia_generic.c static void camellia_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) tfm 999 crypto/camellia_generic.c const struct camellia_ctx *cctx = crypto_tfm_ctx(tfm); tfm 1025 crypto/camellia_generic.c static void camellia_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) tfm 1027 crypto/camellia_generic.c const struct camellia_ctx *cctx = crypto_tfm_ctx(tfm); tfm 355 crypto/cast5_generic.c static void cast5_encrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) tfm 357 crypto/cast5_generic.c __cast5_encrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); tfm 399 crypto/cast5_generic.c static void cast5_decrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) tfm 401 crypto/cast5_generic.c __cast5_decrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); tfm 479 crypto/cast5_generic.c int cast5_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int key_len) tfm 481 crypto/cast5_generic.c struct cast5_ctx *c = crypto_tfm_ctx(tfm); tfm 149 crypto/cast6_generic.c int cast6_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) tfm 151 crypto/cast6_generic.c return __cast6_setkey(crypto_tfm_ctx(tfm), key, keylen, tfm 152 crypto/cast6_generic.c &tfm->crt_flags); tfm 209 crypto/cast6_generic.c static void cast6_encrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) tfm 211 crypto/cast6_generic.c __cast6_encrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); tfm 247 crypto/cast6_generic.c static void cast6_decrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) tfm 249 crypto/cast6_generic.c __cast6_decrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); tfm 17 crypto/cbc.c static inline void crypto_cbc_encrypt_one(struct crypto_skcipher *tfm, tfm 20 crypto/cbc.c crypto_cipher_encrypt_one(skcipher_cipher_simple(tfm), dst, src); tfm 28 crypto/cbc.c static inline void crypto_cbc_decrypt_one(struct crypto_skcipher *tfm, tfm 31 crypto/cbc.c crypto_cipher_decrypt_one(skcipher_cipher_simple(tfm), dst, src); tfm 36 crypto/cbc.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 43 crypto/cbc.c err = crypto_cbc_decrypt_blocks(&walk, tfm, tfm 116 crypto/ccm.c static int crypto_ccm_setauthsize(struct crypto_aead *tfm, tfm 401 crypto/ccm.c static int crypto_ccm_init_tfm(struct crypto_aead *tfm) tfm 403 crypto/ccm.c struct aead_instance *inst = aead_alg_instance(tfm); tfm 405 crypto/ccm.c struct crypto_ccm_ctx *ctx = crypto_aead_ctx(tfm); tfm 423 crypto/ccm.c align = crypto_aead_alignmask(tfm); tfm 426 crypto/ccm.c tfm, tfm 437 crypto/ccm.c static void crypto_ccm_exit_tfm(struct crypto_aead *tfm) tfm 439 crypto/ccm.c struct crypto_ccm_ctx *ctx = crypto_aead_ctx(tfm); tfm 706 crypto/ccm.c static int crypto_rfc4309_init_tfm(struct crypto_aead *tfm) tfm 708 crypto/ccm.c struct aead_instance *inst = aead_alg_instance(tfm); tfm 710 crypto/ccm.c struct crypto_rfc4309_ctx *ctx = crypto_aead_ctx(tfm); tfm 723 crypto/ccm.c tfm, tfm 731 crypto/ccm.c static void crypto_rfc4309_exit_tfm(struct crypto_aead *tfm) tfm 733 crypto/ccm.c struct crypto_rfc4309_ctx *ctx = crypto_aead_ctx(tfm); tfm 843 crypto/ccm.c int bs = crypto_shash_digestsize(pdesc->tfm); tfm 844 crypto/ccm.c u8 *dg = (u8 *)ctx + crypto_shash_descsize(pdesc->tfm) - bs; tfm 855 crypto/ccm.c struct crypto_shash *parent = pdesc->tfm; tfm 858 crypto/ccm.c struct crypto_cipher *tfm = tctx->child; tfm 871 crypto/ccm.c crypto_cipher_encrypt_one(tfm, dg, dg); tfm 881 crypto/ccm.c struct crypto_shash *parent = pdesc->tfm; tfm 884 crypto/ccm.c struct crypto_cipher *tfm = tctx->child; tfm 889 crypto/ccm.c crypto_cipher_encrypt_one(tfm, dg, dg); tfm 895 crypto/ccm.c static int cbcmac_init_tfm(struct crypto_tfm *tfm) tfm 898 crypto/ccm.c struct crypto_instance *inst = (void *)tfm->__crt_alg; tfm 900 crypto/ccm.c struct cbcmac_tfm_ctx *ctx = crypto_tfm_ctx(tfm); tfm 911 crypto/ccm.c static void cbcmac_exit_tfm(struct crypto_tfm *tfm) tfm 913 crypto/ccm.c struct cbcmac_tfm_ctx *ctx = crypto_tfm_ctx(tfm); tfm 30 crypto/cfb.c static unsigned int crypto_cfb_bsize(struct crypto_skcipher *tfm) tfm 32 crypto/cfb.c return crypto_cipher_blocksize(skcipher_cipher_simple(tfm)); tfm 35 crypto/cfb.c static void crypto_cfb_encrypt_one(struct crypto_skcipher *tfm, tfm 38 crypto/cfb.c crypto_cipher_encrypt_one(skcipher_cipher_simple(tfm), dst, src); tfm 43 crypto/cfb.c struct crypto_skcipher *tfm) tfm 45 crypto/cfb.c const unsigned long alignmask = crypto_skcipher_alignmask(tfm); tfm 53 crypto/cfb.c crypto_cfb_encrypt_one(tfm, iv, stream); tfm 58 crypto/cfb.c struct crypto_skcipher *tfm) tfm 60 crypto/cfb.c const unsigned int bsize = crypto_cfb_bsize(tfm); tfm 67 crypto/cfb.c crypto_cfb_encrypt_one(tfm, iv, dst); tfm 81 crypto/cfb.c struct crypto_skcipher *tfm) tfm 83 crypto/cfb.c const unsigned int bsize = crypto_cfb_bsize(tfm); tfm 90 crypto/cfb.c crypto_cfb_encrypt_one(tfm, iv, tmp); tfm 104 crypto/cfb.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 106 crypto/cfb.c unsigned int bsize = crypto_cfb_bsize(tfm); tfm 113 crypto/cfb.c err = crypto_cfb_encrypt_inplace(&walk, tfm); tfm 115 crypto/cfb.c err = crypto_cfb_encrypt_segment(&walk, tfm); tfm 120 crypto/cfb.c crypto_cfb_final(&walk, tfm); tfm 128 crypto/cfb.c struct crypto_skcipher *tfm) tfm 130 crypto/cfb.c const unsigned int bsize = crypto_cfb_bsize(tfm); tfm 137 crypto/cfb.c crypto_cfb_encrypt_one(tfm, iv, dst); tfm 151 crypto/cfb.c struct crypto_skcipher *tfm) tfm 153 crypto/cfb.c const unsigned int bsize = crypto_cfb_bsize(tfm); tfm 160 crypto/cfb.c crypto_cfb_encrypt_one(tfm, iv, tmp); tfm 170 crypto/cfb.c struct crypto_skcipher *tfm) tfm 173 crypto/cfb.c return crypto_cfb_decrypt_inplace(walk, tfm); tfm 175 crypto/cfb.c return crypto_cfb_decrypt_segment(walk, tfm); tfm 180 crypto/cfb.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 182 crypto/cfb.c const unsigned int bsize = crypto_cfb_bsize(tfm); tfm 188 crypto/cfb.c err = crypto_cfb_decrypt_blocks(&walk, tfm); tfm 193 crypto/cfb.c crypto_cfb_final(&walk, tfm); tfm 173 crypto/chacha20poly1305.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 174 crypto/chacha20poly1305.c struct chachapoly_ctx *ctx = crypto_aead_ctx(tfm); tfm 364 crypto/chacha20poly1305.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 365 crypto/chacha20poly1305.c struct chachapoly_ctx *ctx = crypto_aead_ctx(tfm); tfm 372 crypto/chacha20poly1305.c if (crypto_aead_ivsize(tfm) == 8) { tfm 498 crypto/chacha20poly1305.c static int chachapoly_setauthsize(struct crypto_aead *tfm, tfm 507 crypto/chacha20poly1305.c static int chachapoly_init(struct crypto_aead *tfm) tfm 509 crypto/chacha20poly1305.c struct aead_instance *inst = aead_alg_instance(tfm); tfm 511 crypto/chacha20poly1305.c struct chachapoly_ctx *ctx = crypto_aead_ctx(tfm); tfm 530 crypto/chacha20poly1305.c align = crypto_aead_alignmask(tfm); tfm 533 crypto/chacha20poly1305.c tfm, tfm 545 crypto/chacha20poly1305.c static void chachapoly_exit(struct crypto_aead *tfm) tfm 547 crypto/chacha20poly1305.c struct chachapoly_ctx *ctx = crypto_aead_ctx(tfm); tfm 80 crypto/chacha_generic.c static int chacha_setkey(struct crypto_skcipher *tfm, const u8 *key, tfm 83 crypto/chacha_generic.c struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 96 crypto/chacha_generic.c int crypto_chacha20_setkey(struct crypto_skcipher *tfm, const u8 *key, tfm 99 crypto/chacha_generic.c return chacha_setkey(tfm, key, keysize, 20); tfm 103 crypto/chacha_generic.c int crypto_chacha12_setkey(struct crypto_skcipher *tfm, const u8 *key, tfm 106 crypto/chacha_generic.c return chacha_setkey(tfm, key, keysize, 12); tfm 112 crypto/chacha_generic.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 113 crypto/chacha_generic.c struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 121 crypto/chacha_generic.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 122 crypto/chacha_generic.c struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 19 crypto/cipher.c static int setkey_unaligned(struct crypto_tfm *tfm, const u8 *key, tfm 22 crypto/cipher.c struct cipher_alg *cia = &tfm->__crt_alg->cra_cipher; tfm 23 crypto/cipher.c unsigned long alignmask = crypto_tfm_alg_alignmask(tfm); tfm 35 crypto/cipher.c ret = cia->cia_setkey(tfm, alignbuffer, keylen); tfm 42 crypto/cipher.c static int setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) tfm 44 crypto/cipher.c struct cipher_alg *cia = &tfm->__crt_alg->cra_cipher; tfm 45 crypto/cipher.c unsigned long alignmask = crypto_tfm_alg_alignmask(tfm); tfm 47 crypto/cipher.c tfm->crt_flags &= ~CRYPTO_TFM_RES_MASK; tfm 49 crypto/cipher.c tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; tfm 54 crypto/cipher.c return setkey_unaligned(tfm, key, keylen); tfm 56 crypto/cipher.c return cia->cia_setkey(tfm, key, keylen); tfm 61 crypto/cipher.c struct crypto_tfm *tfm, tfm 64 crypto/cipher.c unsigned long alignmask = crypto_tfm_alg_alignmask(tfm); tfm 65 crypto/cipher.c unsigned int size = crypto_tfm_alg_blocksize(tfm); tfm 70 crypto/cipher.c fn(tfm, tmp, tmp); tfm 74 crypto/cipher.c static void cipher_encrypt_unaligned(struct crypto_tfm *tfm, tfm 77 crypto/cipher.c unsigned long alignmask = crypto_tfm_alg_alignmask(tfm); tfm 78 crypto/cipher.c struct cipher_alg *cipher = &tfm->__crt_alg->cra_cipher; tfm 81 crypto/cipher.c cipher_crypt_unaligned(cipher->cia_encrypt, tfm, dst, src); tfm 85 crypto/cipher.c cipher->cia_encrypt(tfm, dst, src); tfm 88 crypto/cipher.c static void cipher_decrypt_unaligned(struct crypto_tfm *tfm, tfm 91 crypto/cipher.c unsigned long alignmask = crypto_tfm_alg_alignmask(tfm); tfm 92 crypto/cipher.c struct cipher_alg *cipher = &tfm->__crt_alg->cra_cipher; tfm 95 crypto/cipher.c cipher_crypt_unaligned(cipher->cia_decrypt, tfm, dst, src); tfm 99 crypto/cipher.c cipher->cia_decrypt(tfm, dst, src); tfm 102 crypto/cipher.c int crypto_init_cipher_ops(struct crypto_tfm *tfm) tfm 104 crypto/cipher.c struct cipher_tfm *ops = &tfm->crt_cipher; tfm 105 crypto/cipher.c struct cipher_alg *cipher = &tfm->__crt_alg->cra_cipher; tfm 108 crypto/cipher.c ops->cit_encrypt_one = crypto_tfm_alg_alignmask(tfm) ? tfm 110 crypto/cipher.c ops->cit_decrypt_one = crypto_tfm_alg_alignmask(tfm) ? tfm 106 crypto/cmac.c unsigned long alignmask = crypto_shash_alignmask(pdesc->tfm); tfm 108 crypto/cmac.c int bs = crypto_shash_blocksize(pdesc->tfm); tfm 120 crypto/cmac.c struct crypto_shash *parent = pdesc->tfm; tfm 124 crypto/cmac.c struct crypto_cipher *tfm = tctx->child; tfm 142 crypto/cmac.c crypto_cipher_encrypt_one(tfm, prev, prev); tfm 150 crypto/cmac.c crypto_cipher_encrypt_one(tfm, prev, prev); tfm 166 crypto/cmac.c struct crypto_shash *parent = pdesc->tfm; tfm 170 crypto/cmac.c struct crypto_cipher *tfm = tctx->child; tfm 195 crypto/cmac.c crypto_cipher_encrypt_one(tfm, out, prev); tfm 200 crypto/cmac.c static int cmac_init_tfm(struct crypto_tfm *tfm) tfm 203 crypto/cmac.c struct crypto_instance *inst = (void *)tfm->__crt_alg; tfm 205 crypto/cmac.c struct cmac_tfm_ctx *ctx = crypto_tfm_ctx(tfm); tfm 216 crypto/cmac.c static void cmac_exit_tfm(struct crypto_tfm *tfm) tfm 218 crypto/cmac.c struct cmac_tfm_ctx *ctx = crypto_tfm_ctx(tfm); tfm 15 crypto/compress.c static int crypto_compress(struct crypto_tfm *tfm, tfm 19 crypto/compress.c return tfm->__crt_alg->cra_compress.coa_compress(tfm, src, slen, dst, tfm 23 crypto/compress.c static int crypto_decompress(struct crypto_tfm *tfm, tfm 27 crypto/compress.c return tfm->__crt_alg->cra_compress.coa_decompress(tfm, src, slen, dst, tfm 31 crypto/compress.c int crypto_init_compress_ops(struct crypto_tfm *tfm) tfm 33 crypto/compress.c struct compress_tfm *ops = &tfm->crt_compress; tfm 44 crypto/crc32_generic.c static int crc32_cra_init(struct crypto_tfm *tfm) tfm 46 crypto/crc32_generic.c u32 *key = crypto_tfm_ctx(tfm); tfm 73 crypto/crc32_generic.c u32 *mctx = crypto_shash_ctx(desc->tfm); tfm 115 crypto/crc32_generic.c return __crc32_finup(crypto_shash_ctx(desc->tfm), data, len, tfm 59 crypto/crc32c_generic.c struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); tfm 72 crypto/crc32c_generic.c static int chksum_setkey(struct crypto_shash *tfm, const u8 *key, tfm 75 crypto/crc32c_generic.c struct chksum_ctx *mctx = crypto_shash_ctx(tfm); tfm 78 crypto/crc32c_generic.c crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 119 crypto/crc32c_generic.c struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); tfm 124 crypto/crc32c_generic.c static int crc32c_cra_init(struct crypto_tfm *tfm) tfm 126 crypto/crc32c_generic.c struct chksum_ctx *mctx = crypto_tfm_ctx(tfm); tfm 136 crypto/cryptd.c refcnt = crypto_tfm_ctx(request->tfm); tfm 187 crypto/cryptd.c static inline struct cryptd_queue *cryptd_get_queue(struct crypto_tfm *tfm) tfm 189 crypto/cryptd.c struct crypto_instance *inst = crypto_tfm_alg_instance(tfm); tfm 270 crypto/cryptd.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 271 crypto/cryptd.c struct cryptd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 280 crypto/cryptd.c crypto_free_skcipher(tfm); tfm 288 crypto/cryptd.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 289 crypto/cryptd.c struct cryptd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 316 crypto/cryptd.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 317 crypto/cryptd.c struct cryptd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 343 crypto/cryptd.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 346 crypto/cryptd.c queue = cryptd_get_queue(crypto_skcipher_tfm(tfm)); tfm 363 crypto/cryptd.c static int cryptd_skcipher_init_tfm(struct crypto_skcipher *tfm) tfm 365 crypto/cryptd.c struct skcipher_instance *inst = skcipher_alg_instance(tfm); tfm 368 crypto/cryptd.c struct cryptd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 377 crypto/cryptd.c tfm, sizeof(struct cryptd_skcipher_request_ctx)); tfm 381 crypto/cryptd.c static void cryptd_skcipher_exit_tfm(struct crypto_skcipher *tfm) tfm 383 crypto/cryptd.c struct cryptd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 463 crypto/cryptd.c static int cryptd_hash_init_tfm(struct crypto_tfm *tfm) tfm 465 crypto/cryptd.c struct crypto_instance *inst = crypto_tfm_alg_instance(tfm); tfm 468 crypto/cryptd.c struct cryptd_hash_ctx *ctx = crypto_tfm_ctx(tfm); tfm 476 crypto/cryptd.c crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), tfm 482 crypto/cryptd.c static void cryptd_hash_exit_tfm(struct crypto_tfm *tfm) tfm 484 crypto/cryptd.c struct cryptd_hash_ctx *ctx = crypto_tfm_ctx(tfm); tfm 509 crypto/cryptd.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 511 crypto/cryptd.c cryptd_get_queue(crypto_ahash_tfm(tfm)); tfm 521 crypto/cryptd.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 522 crypto/cryptd.c struct cryptd_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 531 crypto/cryptd.c crypto_free_ahash(tfm); tfm 536 crypto/cryptd.c struct cryptd_hash_ctx *ctx = crypto_tfm_ctx(req_async->tfm); tfm 545 crypto/cryptd.c desc->tfm = child; tfm 627 crypto/cryptd.c struct cryptd_hash_ctx *ctx = crypto_tfm_ctx(req_async->tfm); tfm 636 crypto/cryptd.c desc->tfm = child; tfm 660 crypto/cryptd.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 661 crypto/cryptd.c struct cryptd_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 664 crypto/cryptd.c desc->tfm = ctx->child; tfm 760 crypto/cryptd.c struct crypto_aead *tfm; tfm 766 crypto/cryptd.c tfm = crypto_aead_reqtfm(req); tfm 774 crypto/cryptd.c ctx = crypto_aead_ctx(tfm); tfm 782 crypto/cryptd.c crypto_free_aead(tfm); tfm 787 crypto/cryptd.c struct cryptd_aead_ctx *ctx = crypto_tfm_ctx(areq->tfm); tfm 797 crypto/cryptd.c struct cryptd_aead_ctx *ctx = crypto_tfm_ctx(areq->tfm); tfm 809 crypto/cryptd.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 810 crypto/cryptd.c struct cryptd_queue *queue = cryptd_get_queue(crypto_aead_tfm(tfm)); tfm 827 crypto/cryptd.c static int cryptd_aead_init_tfm(struct crypto_aead *tfm) tfm 829 crypto/cryptd.c struct aead_instance *inst = aead_alg_instance(tfm); tfm 832 crypto/cryptd.c struct cryptd_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 841 crypto/cryptd.c tfm, max((unsigned)sizeof(struct cryptd_aead_request_ctx), tfm 846 crypto/cryptd.c static void cryptd_aead_exit_tfm(struct crypto_aead *tfm) tfm 848 crypto/cryptd.c struct cryptd_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 966 crypto/cryptd.c struct crypto_skcipher *tfm; tfm 972 crypto/cryptd.c tfm = crypto_alloc_skcipher(cryptd_alg_name, type, mask); tfm 973 crypto/cryptd.c if (IS_ERR(tfm)) tfm 974 crypto/cryptd.c return ERR_CAST(tfm); tfm 976 crypto/cryptd.c if (tfm->base.__crt_alg->cra_module != THIS_MODULE) { tfm 977 crypto/cryptd.c crypto_free_skcipher(tfm); tfm 981 crypto/cryptd.c ctx = crypto_skcipher_ctx(tfm); tfm 984 crypto/cryptd.c return container_of(tfm, struct cryptd_skcipher, base); tfm 988 crypto/cryptd.c struct crypto_skcipher *cryptd_skcipher_child(struct cryptd_skcipher *tfm) tfm 990 crypto/cryptd.c struct cryptd_skcipher_ctx *ctx = crypto_skcipher_ctx(&tfm->base); tfm 996 crypto/cryptd.c bool cryptd_skcipher_queued(struct cryptd_skcipher *tfm) tfm 998 crypto/cryptd.c struct cryptd_skcipher_ctx *ctx = crypto_skcipher_ctx(&tfm->base); tfm 1004 crypto/cryptd.c void cryptd_free_skcipher(struct cryptd_skcipher *tfm) tfm 1006 crypto/cryptd.c struct cryptd_skcipher_ctx *ctx = crypto_skcipher_ctx(&tfm->base); tfm 1009 crypto/cryptd.c crypto_free_skcipher(&tfm->base); tfm 1018 crypto/cryptd.c struct crypto_ahash *tfm; tfm 1023 crypto/cryptd.c tfm = crypto_alloc_ahash(cryptd_alg_name, type, mask); tfm 1024 crypto/cryptd.c if (IS_ERR(tfm)) tfm 1025 crypto/cryptd.c return ERR_CAST(tfm); tfm 1026 crypto/cryptd.c if (tfm->base.__crt_alg->cra_module != THIS_MODULE) { tfm 1027 crypto/cryptd.c crypto_free_ahash(tfm); tfm 1031 crypto/cryptd.c ctx = crypto_ahash_ctx(tfm); tfm 1034 crypto/cryptd.c return __cryptd_ahash_cast(tfm); tfm 1038 crypto/cryptd.c struct crypto_shash *cryptd_ahash_child(struct cryptd_ahash *tfm) tfm 1040 crypto/cryptd.c struct cryptd_hash_ctx *ctx = crypto_ahash_ctx(&tfm->base); tfm 1053 crypto/cryptd.c bool cryptd_ahash_queued(struct cryptd_ahash *tfm) tfm 1055 crypto/cryptd.c struct cryptd_hash_ctx *ctx = crypto_ahash_ctx(&tfm->base); tfm 1061 crypto/cryptd.c void cryptd_free_ahash(struct cryptd_ahash *tfm) tfm 1063 crypto/cryptd.c struct cryptd_hash_ctx *ctx = crypto_ahash_ctx(&tfm->base); tfm 1066 crypto/cryptd.c crypto_free_ahash(&tfm->base); tfm 1075 crypto/cryptd.c struct crypto_aead *tfm; tfm 1080 crypto/cryptd.c tfm = crypto_alloc_aead(cryptd_alg_name, type, mask); tfm 1081 crypto/cryptd.c if (IS_ERR(tfm)) tfm 1082 crypto/cryptd.c return ERR_CAST(tfm); tfm 1083 crypto/cryptd.c if (tfm->base.__crt_alg->cra_module != THIS_MODULE) { tfm 1084 crypto/cryptd.c crypto_free_aead(tfm); tfm 1088 crypto/cryptd.c ctx = crypto_aead_ctx(tfm); tfm 1091 crypto/cryptd.c return __cryptd_aead_cast(tfm); tfm 1095 crypto/cryptd.c struct crypto_aead *cryptd_aead_child(struct cryptd_aead *tfm) tfm 1098 crypto/cryptd.c ctx = crypto_aead_ctx(&tfm->base); tfm 1103 crypto/cryptd.c bool cryptd_aead_queued(struct cryptd_aead *tfm) tfm 1105 crypto/cryptd.c struct cryptd_aead_ctx *ctx = crypto_aead_ctx(&tfm->base); tfm 1111 crypto/cryptd.c void cryptd_free_aead(struct cryptd_aead *tfm) tfm 1113 crypto/cryptd.c struct cryptd_aead_ctx *ctx = crypto_aead_ctx(&tfm->base); tfm 1116 crypto/cryptd.c crypto_free_aead(&tfm->base); tfm 38 crypto/crypto_engine.c enginectx = crypto_tfm_ctx(req->tfm); tfm 137 crypto/crypto_engine.c enginectx = crypto_tfm_ctx(async_req->tfm); tfm 27 crypto/crypto_null.c static int null_compress(struct crypto_tfm *tfm, const u8 *src, tfm 59 crypto/crypto_null.c static int null_hash_setkey(struct crypto_shash *tfm, const u8 *key, tfm 63 crypto/crypto_null.c static int null_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, tfm 67 crypto/crypto_null.c static int null_setkey(struct crypto_tfm *tfm, const u8 *key, tfm 71 crypto/crypto_null.c static void null_crypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 155 crypto/crypto_null.c struct crypto_sync_skcipher *tfm; tfm 158 crypto/crypto_null.c tfm = crypto_default_null_skcipher; tfm 160 crypto/crypto_null.c if (!tfm) { tfm 161 crypto/crypto_null.c tfm = crypto_alloc_sync_skcipher("ecb(cipher_null)", 0, 0); tfm 162 crypto/crypto_null.c if (IS_ERR(tfm)) tfm 165 crypto/crypto_null.c crypto_default_null_skcipher = tfm; tfm 173 crypto/crypto_null.c return tfm; tfm 28 crypto/ctr.c struct crypto_cipher *tfm) tfm 30 crypto/ctr.c unsigned int bsize = crypto_cipher_blocksize(tfm); tfm 31 crypto/ctr.c unsigned long alignmask = crypto_cipher_alignmask(tfm); tfm 39 crypto/ctr.c crypto_cipher_encrypt_one(tfm, keystream, ctrblk); tfm 46 crypto/ctr.c struct crypto_cipher *tfm) tfm 49 crypto/ctr.c crypto_cipher_alg(tfm)->cia_encrypt; tfm 50 crypto/ctr.c unsigned int bsize = crypto_cipher_blocksize(tfm); tfm 58 crypto/ctr.c fn(crypto_cipher_tfm(tfm), dst, ctrblk); tfm 72 crypto/ctr.c struct crypto_cipher *tfm) tfm 75 crypto/ctr.c crypto_cipher_alg(tfm)->cia_encrypt; tfm 76 crypto/ctr.c unsigned int bsize = crypto_cipher_blocksize(tfm); tfm 77 crypto/ctr.c unsigned long alignmask = crypto_cipher_alignmask(tfm); tfm 86 crypto/ctr.c fn(crypto_cipher_tfm(tfm), keystream, ctrblk); tfm 100 crypto/ctr.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 101 crypto/ctr.c struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); tfm 197 crypto/ctr.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 198 crypto/ctr.c struct crypto_rfc3686_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 200 crypto/ctr.c unsigned long align = crypto_skcipher_alignmask(tfm); tfm 223 crypto/ctr.c static int crypto_rfc3686_init_tfm(struct crypto_skcipher *tfm) tfm 225 crypto/ctr.c struct skcipher_instance *inst = skcipher_alg_instance(tfm); tfm 227 crypto/ctr.c struct crypto_rfc3686_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 238 crypto/ctr.c align = crypto_skcipher_alignmask(tfm); tfm 242 crypto/ctr.c crypto_skcipher_set_reqsize(tfm, reqsize); tfm 247 crypto/ctr.c static void crypto_rfc3686_exit_tfm(struct crypto_skcipher *tfm) tfm 249 crypto/ctr.c struct crypto_rfc3686_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 68 crypto/cts.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 69 crypto/cts.c struct crypto_cts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 73 crypto/cts.c crypto_skcipher_alignmask(tfm) + 1); tfm 105 crypto/cts.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 107 crypto/cts.c int bsize = crypto_skcipher_blocksize(tfm); tfm 149 crypto/cts.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 151 crypto/cts.c struct crypto_cts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 153 crypto/cts.c int bsize = crypto_skcipher_blocksize(tfm); tfm 186 crypto/cts.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 188 crypto/cts.c int bsize = crypto_skcipher_blocksize(tfm); tfm 243 crypto/cts.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 245 crypto/cts.c struct crypto_cts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 247 crypto/cts.c int bsize = crypto_skcipher_blocksize(tfm); tfm 287 crypto/cts.c static int crypto_cts_init_tfm(struct crypto_skcipher *tfm) tfm 289 crypto/cts.c struct skcipher_instance *inst = skcipher_alg_instance(tfm); tfm 291 crypto/cts.c struct crypto_cts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 303 crypto/cts.c align = crypto_skcipher_alignmask(tfm); tfm 310 crypto/cts.c crypto_skcipher_set_reqsize(tfm, reqsize); tfm 315 crypto/cts.c static void crypto_cts_exit_tfm(struct crypto_skcipher *tfm) tfm 317 crypto/cts.c struct crypto_cts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 122 crypto/deflate.c static void *gen_deflate_alloc_ctx(struct crypto_scomp *tfm, int format) tfm 140 crypto/deflate.c static void *deflate_alloc_ctx(struct crypto_scomp *tfm) tfm 142 crypto/deflate.c return gen_deflate_alloc_ctx(tfm, 0); tfm 145 crypto/deflate.c static void *zlib_deflate_alloc_ctx(struct crypto_scomp *tfm) tfm 147 crypto/deflate.c return gen_deflate_alloc_ctx(tfm, 1); tfm 150 crypto/deflate.c static int deflate_init(struct crypto_tfm *tfm) tfm 152 crypto/deflate.c struct deflate_ctx *ctx = crypto_tfm_ctx(tfm); tfm 163 crypto/deflate.c static void deflate_free_ctx(struct crypto_scomp *tfm, void *ctx) tfm 169 crypto/deflate.c static void deflate_exit(struct crypto_tfm *tfm) tfm 171 crypto/deflate.c struct deflate_ctx *ctx = crypto_tfm_ctx(tfm); tfm 205 crypto/deflate.c static int deflate_compress(struct crypto_tfm *tfm, const u8 *src, tfm 208 crypto/deflate.c struct deflate_ctx *dctx = crypto_tfm_ctx(tfm); tfm 213 crypto/deflate.c static int deflate_scompress(struct crypto_scomp *tfm, const u8 *src, tfm 261 crypto/deflate.c static int deflate_decompress(struct crypto_tfm *tfm, const u8 *src, tfm 264 crypto/deflate.c struct deflate_ctx *dctx = crypto_tfm_ctx(tfm); tfm 269 crypto/deflate.c static int deflate_sdecompress(struct crypto_scomp *tfm, const u8 *src, tfm 19 crypto/des_generic.c static int des_setkey(struct crypto_tfm *tfm, const u8 *key, tfm 22 crypto/des_generic.c struct des_ctx *dctx = crypto_tfm_ctx(tfm); tfm 27 crypto/des_generic.c if (crypto_tfm_get_flags(tfm) & CRYPTO_TFM_REQ_FORBID_WEAK_KEYS) tfm 35 crypto/des_generic.c crypto_tfm_set_flags(tfm, CRYPTO_TFM_RES_WEAK_KEY); tfm 40 crypto/des_generic.c static void crypto_des_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 42 crypto/des_generic.c const struct des_ctx *dctx = crypto_tfm_ctx(tfm); tfm 47 crypto/des_generic.c static void crypto_des_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 49 crypto/des_generic.c const struct des_ctx *dctx = crypto_tfm_ctx(tfm); tfm 54 crypto/des_generic.c static int des3_ede_setkey(struct crypto_tfm *tfm, const u8 *key, tfm 57 crypto/des_generic.c struct des3_ede_ctx *dctx = crypto_tfm_ctx(tfm); tfm 62 crypto/des_generic.c if (crypto_tfm_get_flags(tfm) & CRYPTO_TFM_REQ_FORBID_WEAK_KEYS) tfm 70 crypto/des_generic.c crypto_tfm_set_flags(tfm, CRYPTO_TFM_RES_WEAK_KEY); tfm 75 crypto/des_generic.c static void crypto_des3_ede_encrypt(struct crypto_tfm *tfm, u8 *dst, tfm 78 crypto/des_generic.c const struct des3_ede_ctx *dctx = crypto_tfm_ctx(tfm); tfm 83 crypto/des_generic.c static void crypto_des3_ede_decrypt(struct crypto_tfm *tfm, u8 *dst, tfm 86 crypto/des_generic.c const struct des3_ede_ctx *dctx = crypto_tfm_ctx(tfm); tfm 42 crypto/dh.c static inline struct dh_ctx *dh_get_ctx(struct crypto_kpp *tfm) tfm 44 crypto/dh.c return kpp_tfm_ctx(tfm); tfm 74 crypto/dh.c static int dh_set_secret(struct crypto_kpp *tfm, const void *buf, tfm 77 crypto/dh.c struct dh_ctx *ctx = dh_get_ctx(tfm); tfm 151 crypto/dh.c struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); tfm 152 crypto/dh.c struct dh_ctx *ctx = dh_get_ctx(tfm); tfm 196 crypto/dh.c static unsigned int dh_max_size(struct crypto_kpp *tfm) tfm 198 crypto/dh.c struct dh_ctx *ctx = dh_get_ctx(tfm); tfm 203 crypto/dh.c static void dh_exit_tfm(struct crypto_kpp *tfm) tfm 205 crypto/dh.c struct dh_ctx *ctx = dh_get_ctx(tfm); tfm 1640 crypto/drbg.c static void drbg_kcapi_set_entropy(struct crypto_rng *tfm, tfm 1643 crypto/drbg.c struct drbg_state *drbg = crypto_rng_ctx(tfm); tfm 1663 crypto/drbg.c struct crypto_shash *tfm; tfm 1665 crypto/drbg.c tfm = crypto_alloc_shash(drbg->core->backend_cra_name, 0, 0); tfm 1666 crypto/drbg.c if (IS_ERR(tfm)) { tfm 1669 crypto/drbg.c return PTR_ERR(tfm); tfm 1671 crypto/drbg.c BUG_ON(drbg_blocklen(drbg) != crypto_shash_digestsize(tfm)); tfm 1672 crypto/drbg.c sdesc = kzalloc(sizeof(struct shash_desc) + crypto_shash_descsize(tfm), tfm 1675 crypto/drbg.c crypto_free_shash(tfm); tfm 1679 crypto/drbg.c sdesc->shash.tfm = tfm; tfm 1682 crypto/drbg.c return crypto_shash_alignmask(tfm); tfm 1689 crypto/drbg.c crypto_free_shash(sdesc->shash.tfm); tfm 1701 crypto/drbg.c crypto_shash_setkey(sdesc->shash.tfm, key, drbg_statelen(drbg)); tfm 1720 crypto/drbg.c struct crypto_cipher *tfm = tfm 1722 crypto/drbg.c if (tfm) tfm 1723 crypto/drbg.c crypto_free_cipher(tfm); tfm 1742 crypto/drbg.c struct crypto_cipher *tfm; tfm 1748 crypto/drbg.c tfm = crypto_alloc_cipher(drbg->core->backend_cra_name, 0, 0); tfm 1749 crypto/drbg.c if (IS_ERR(tfm)) { tfm 1752 crypto/drbg.c return PTR_ERR(tfm); tfm 1754 crypto/drbg.c BUG_ON(drbg_blocklen(drbg) != crypto_cipher_blocksize(tfm)); tfm 1755 crypto/drbg.c drbg->priv_data = tfm; tfm 1802 crypto/drbg.c struct crypto_cipher *tfm = tfm 1805 crypto/drbg.c crypto_cipher_setkey(tfm, key, (drbg_keylen(drbg))); tfm 1811 crypto/drbg.c struct crypto_cipher *tfm = tfm 1816 crypto/drbg.c crypto_cipher_encrypt_one(tfm, outval, in->buf); tfm 1908 crypto/drbg.c static int drbg_kcapi_init(struct crypto_tfm *tfm) tfm 1910 crypto/drbg.c struct drbg_state *drbg = crypto_tfm_ctx(tfm); tfm 1917 crypto/drbg.c static void drbg_kcapi_cleanup(struct crypto_tfm *tfm) tfm 1919 crypto/drbg.c drbg_uninstantiate(crypto_tfm_ctx(tfm)); tfm 1931 crypto/drbg.c static int drbg_kcapi_random(struct crypto_rng *tfm, tfm 1935 crypto/drbg.c struct drbg_state *drbg = crypto_rng_ctx(tfm); tfm 1951 crypto/drbg.c static int drbg_kcapi_seed(struct crypto_rng *tfm, tfm 1954 crypto/drbg.c struct drbg_state *drbg = crypto_rng_ctx(tfm); tfm 1955 crypto/drbg.c struct crypto_tfm *tfm_base = crypto_rng_tfm(tfm); tfm 45 crypto/ecb.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 46 crypto/ecb.c struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); tfm 54 crypto/ecb.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 55 crypto/ecb.c struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); tfm 21 crypto/ecdh.c static inline struct ecdh_ctx *ecdh_get_ctx(struct crypto_kpp *tfm) tfm 23 crypto/ecdh.c return kpp_tfm_ctx(tfm); tfm 35 crypto/ecdh.c static int ecdh_set_secret(struct crypto_kpp *tfm, const void *buf, tfm 38 crypto/ecdh.c struct ecdh_ctx *ctx = ecdh_get_ctx(tfm); tfm 67 crypto/ecdh.c struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); tfm 68 crypto/ecdh.c struct ecdh_ctx *ctx = ecdh_get_ctx(tfm); tfm 133 crypto/ecdh.c static unsigned int ecdh_max_size(struct crypto_kpp *tfm) tfm 135 crypto/ecdh.c struct ecdh_ctx *ctx = ecdh_get_ctx(tfm); tfm 72 crypto/ecrdsa.c struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); tfm 73 crypto/ecrdsa.c struct ecrdsa_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 190 crypto/ecrdsa.c static int ecrdsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, tfm 193 crypto/ecrdsa.c struct ecrdsa_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 251 crypto/ecrdsa.c static unsigned int ecrdsa_max_size(struct crypto_akcipher *tfm) tfm 253 crypto/ecrdsa.c struct ecrdsa_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 262 crypto/ecrdsa.c static void ecrdsa_exit_tfm(struct crypto_akcipher *tfm) tfm 65 crypto/essiv.c static int essiv_skcipher_setkey(struct crypto_skcipher *tfm, tfm 68 crypto/essiv.c struct essiv_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); tfm 75 crypto/essiv.c crypto_skcipher_get_flags(tfm) & tfm 78 crypto/essiv.c crypto_skcipher_set_flags(tfm, tfm 84 crypto/essiv.c desc->tfm = tctx->hash; tfm 91 crypto/essiv.c crypto_skcipher_get_flags(tfm) & tfm 95 crypto/essiv.c crypto_skcipher_set_flags(tfm, tfm 102 crypto/essiv.c static int essiv_aead_setkey(struct crypto_aead *tfm, const u8 *key, tfm 105 crypto/essiv.c struct essiv_tfm_ctx *tctx = crypto_aead_ctx(tfm); tfm 112 crypto/essiv.c crypto_aead_set_flags(tctx->u.aead, crypto_aead_get_flags(tfm) & tfm 115 crypto/essiv.c crypto_aead_set_flags(tfm, crypto_aead_get_flags(tctx->u.aead) & tfm 121 crypto/essiv.c crypto_aead_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 125 crypto/essiv.c desc->tfm = tctx->hash; tfm 133 crypto/essiv.c crypto_cipher_set_flags(tctx->essiv_cipher, crypto_aead_get_flags(tfm) & tfm 137 crypto/essiv.c crypto_aead_set_flags(tfm, crypto_cipher_get_flags(tctx->essiv_cipher) & tfm 143 crypto/essiv.c static int essiv_aead_setauthsize(struct crypto_aead *tfm, tfm 146 crypto/essiv.c struct essiv_tfm_ctx *tctx = crypto_aead_ctx(tfm); tfm 160 crypto/essiv.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 161 crypto/essiv.c const struct essiv_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); tfm 198 crypto/essiv.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 199 crypto/essiv.c const struct essiv_tfm_ctx *tctx = crypto_aead_ctx(tfm); tfm 215 crypto/essiv.c req->assoclen - crypto_aead_ivsize(tfm), tfm 216 crypto/essiv.c crypto_aead_ivsize(tfm), 1); tfm 219 crypto/essiv.c int ivsize = crypto_aead_ivsize(tfm); tfm 310 crypto/essiv.c static int essiv_skcipher_init_tfm(struct crypto_skcipher *tfm) tfm 312 crypto/essiv.c struct skcipher_instance *inst = skcipher_alg_instance(tfm); tfm 314 crypto/essiv.c struct essiv_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); tfm 322 crypto/essiv.c crypto_skcipher_set_reqsize(tfm, sizeof(struct skcipher_request) + tfm 335 crypto/essiv.c static int essiv_aead_init_tfm(struct crypto_aead *tfm) tfm 337 crypto/essiv.c struct aead_instance *inst = aead_alg_instance(tfm); tfm 339 crypto/essiv.c struct essiv_tfm_ctx *tctx = crypto_aead_ctx(tfm); tfm 356 crypto/essiv.c crypto_aead_set_reqsize(tfm, tctx->ivoffset + crypto_aead_ivsize(aead)); tfm 368 crypto/essiv.c static void essiv_skcipher_exit_tfm(struct crypto_skcipher *tfm) tfm 370 crypto/essiv.c struct essiv_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); tfm 377 crypto/essiv.c static void essiv_aead_exit_tfm(struct crypto_aead *tfm) tfm 379 crypto/essiv.c struct essiv_tfm_ctx *tctx = crypto_aead_ctx(tfm); tfm 236 crypto/fcrypt.c static void fcrypt_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 238 crypto/fcrypt.c const struct fcrypt_ctx *ctx = crypto_tfm_ctx(tfm); tfm 268 crypto/fcrypt.c static void fcrypt_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 270 crypto/fcrypt.c const struct fcrypt_ctx *ctx = crypto_tfm_ctx(tfm); tfm 303 crypto/fcrypt.c static int fcrypt_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) tfm 305 crypto/fcrypt.c struct fcrypt_ctx *ctx = crypto_tfm_ctx(tfm); tfm 152 crypto/gcm.c static int crypto_gcm_setauthsize(struct crypto_aead *tfm, tfm 527 crypto/gcm.c static int crypto_gcm_init_tfm(struct crypto_aead *tfm) tfm 529 crypto/gcm.c struct aead_instance *inst = aead_alg_instance(tfm); tfm 531 crypto/gcm.c struct crypto_gcm_ctx *ctx = crypto_aead_ctx(tfm); tfm 549 crypto/gcm.c align = crypto_aead_alignmask(tfm); tfm 551 crypto/gcm.c crypto_aead_set_reqsize(tfm, tfm 565 crypto/gcm.c static void crypto_gcm_exit_tfm(struct crypto_aead *tfm) tfm 567 crypto/gcm.c struct crypto_gcm_ctx *ctx = crypto_aead_ctx(tfm); tfm 828 crypto/gcm.c static int crypto_rfc4106_init_tfm(struct crypto_aead *tfm) tfm 830 crypto/gcm.c struct aead_instance *inst = aead_alg_instance(tfm); tfm 832 crypto/gcm.c struct crypto_rfc4106_ctx *ctx = crypto_aead_ctx(tfm); tfm 845 crypto/gcm.c tfm, tfm 853 crypto/gcm.c static void crypto_rfc4106_exit_tfm(struct crypto_aead *tfm) tfm 855 crypto/gcm.c struct crypto_rfc4106_ctx *ctx = crypto_aead_ctx(tfm); tfm 1047 crypto/gcm.c static int crypto_rfc4543_init_tfm(struct crypto_aead *tfm) tfm 1049 crypto/gcm.c struct aead_instance *inst = aead_alg_instance(tfm); tfm 1052 crypto/gcm.c struct crypto_rfc4543_ctx *ctx = crypto_aead_ctx(tfm); tfm 1073 crypto/gcm.c tfm, tfm 1085 crypto/gcm.c static void crypto_rfc4543_exit_tfm(struct crypto_aead *tfm) tfm 1087 crypto/gcm.c struct crypto_rfc4543_ctx *ctx = crypto_aead_ctx(tfm); tfm 55 crypto/ghash-generic.c static int ghash_setkey(struct crypto_shash *tfm, tfm 58 crypto/ghash-generic.c struct ghash_ctx *ctx = crypto_shash_ctx(tfm); tfm 62 crypto/ghash-generic.c crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 84 crypto/ghash-generic.c struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); tfm 136 crypto/ghash-generic.c struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); tfm 145 crypto/ghash-generic.c static void ghash_exit_tfm(struct crypto_tfm *tfm) tfm 147 crypto/ghash-generic.c struct ghash_ctx *ctx = crypto_tfm_ctx(tfm); tfm 33 crypto/hmac.c static inline struct hmac_ctx *hmac_ctx(struct crypto_shash *tfm) tfm 35 crypto/hmac.c return align_ptr(crypto_shash_ctx_aligned(tfm) + tfm 36 crypto/hmac.c crypto_shash_statesize(tfm) * 2, tfm 54 crypto/hmac.c shash->tfm = hash; tfm 93 crypto/hmac.c struct hmac_ctx *ctx = hmac_ctx(pdesc->tfm); tfm 95 crypto/hmac.c desc->tfm = ctx->hash; tfm 102 crypto/hmac.c return hmac_import(pdesc, crypto_shash_ctx_aligned(pdesc->tfm)); tfm 115 crypto/hmac.c struct crypto_shash *parent = pdesc->tfm; tfm 130 crypto/hmac.c struct crypto_shash *parent = pdesc->tfm; tfm 141 crypto/hmac.c static int hmac_init_tfm(struct crypto_tfm *tfm) tfm 143 crypto/hmac.c struct crypto_shash *parent = __crypto_shash_cast(tfm); tfm 145 crypto/hmac.c struct crypto_instance *inst = (void *)tfm->__crt_alg; tfm 164 crypto/hmac.c static void hmac_exit_tfm(struct crypto_tfm *tfm) tfm 166 crypto/hmac.c struct hmac_ctx *ctx = hmac_ctx(__crypto_shash_cast(tfm)); tfm 61 crypto/internal.h int crypto_init_cipher_ops(struct crypto_tfm *tfm); tfm 62 crypto/internal.h int crypto_init_compress_ops(struct crypto_tfm *tfm); tfm 119 crypto/jitterentropy-kcapi.c static int jent_kcapi_init(struct crypto_tfm *tfm) tfm 121 crypto/jitterentropy-kcapi.c struct jitterentropy *rng = crypto_tfm_ctx(tfm); tfm 132 crypto/jitterentropy-kcapi.c static void jent_kcapi_cleanup(struct crypto_tfm *tfm) tfm 134 crypto/jitterentropy-kcapi.c struct jitterentropy *rng = crypto_tfm_ctx(tfm); tfm 143 crypto/jitterentropy-kcapi.c static int jent_kcapi_random(struct crypto_rng *tfm, tfm 147 crypto/jitterentropy-kcapi.c struct jitterentropy *rng = crypto_rng_ctx(tfm); tfm 157 crypto/jitterentropy-kcapi.c static int jent_kcapi_reset(struct crypto_rng *tfm, tfm 125 crypto/keywrap.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 126 crypto/keywrap.c struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); tfm 194 crypto/keywrap.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 195 crypto/keywrap.c struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); tfm 756 crypto/khazad.c static int khazad_setkey(struct crypto_tfm *tfm, const u8 *in_key, tfm 759 crypto/khazad.c struct khazad_ctx *ctx = crypto_tfm_ctx(tfm); tfm 837 crypto/khazad.c static void khazad_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 839 crypto/khazad.c struct khazad_ctx *ctx = crypto_tfm_ctx(tfm); tfm 843 crypto/khazad.c static void khazad_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 845 crypto/khazad.c struct khazad_ctx *ctx = crypto_tfm_ctx(tfm); tfm 49 crypto/kpp.c static void crypto_kpp_exit_tfm(struct crypto_tfm *tfm) tfm 51 crypto/kpp.c struct crypto_kpp *kpp = __crypto_kpp_tfm(tfm); tfm 57 crypto/kpp.c static int crypto_kpp_init_tfm(struct crypto_tfm *tfm) tfm 59 crypto/kpp.c struct crypto_kpp *kpp = __crypto_kpp_tfm(tfm); tfm 145 crypto/lrw.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 146 crypto/lrw.c struct priv *ctx = crypto_skcipher_ctx(tfm); tfm 157 crypto/lrw.c skcipher_request_set_tfm(req, tfm); tfm 264 crypto/lrw.c static int init_tfm(struct crypto_skcipher *tfm) tfm 266 crypto/lrw.c struct skcipher_instance *inst = skcipher_alg_instance(tfm); tfm 268 crypto/lrw.c struct priv *ctx = crypto_skcipher_ctx(tfm); tfm 277 crypto/lrw.c crypto_skcipher_set_reqsize(tfm, crypto_skcipher_reqsize(cipher) + tfm 283 crypto/lrw.c static void exit_tfm(struct crypto_skcipher *tfm) tfm 285 crypto/lrw.c struct priv *ctx = crypto_skcipher_ctx(tfm); tfm 19 crypto/lz4.c static void *lz4_alloc_ctx(struct crypto_scomp *tfm) tfm 30 crypto/lz4.c static int lz4_init(struct crypto_tfm *tfm) tfm 32 crypto/lz4.c struct lz4_ctx *ctx = crypto_tfm_ctx(tfm); tfm 41 crypto/lz4.c static void lz4_free_ctx(struct crypto_scomp *tfm, void *ctx) tfm 46 crypto/lz4.c static void lz4_exit(struct crypto_tfm *tfm) tfm 48 crypto/lz4.c struct lz4_ctx *ctx = crypto_tfm_ctx(tfm); tfm 66 crypto/lz4.c static int lz4_scompress(struct crypto_scomp *tfm, const u8 *src, tfm 73 crypto/lz4.c static int lz4_compress_crypto(struct crypto_tfm *tfm, const u8 *src, tfm 76 crypto/lz4.c struct lz4_ctx *ctx = crypto_tfm_ctx(tfm); tfm 93 crypto/lz4.c static int lz4_sdecompress(struct crypto_scomp *tfm, const u8 *src, tfm 100 crypto/lz4.c static int lz4_decompress_crypto(struct crypto_tfm *tfm, const u8 *src, tfm 18 crypto/lz4hc.c static void *lz4hc_alloc_ctx(struct crypto_scomp *tfm) tfm 29 crypto/lz4hc.c static int lz4hc_init(struct crypto_tfm *tfm) tfm 31 crypto/lz4hc.c struct lz4hc_ctx *ctx = crypto_tfm_ctx(tfm); tfm 40 crypto/lz4hc.c static void lz4hc_free_ctx(struct crypto_scomp *tfm, void *ctx) tfm 45 crypto/lz4hc.c static void lz4hc_exit(struct crypto_tfm *tfm) tfm 47 crypto/lz4hc.c struct lz4hc_ctx *ctx = crypto_tfm_ctx(tfm); tfm 65 crypto/lz4hc.c static int lz4hc_scompress(struct crypto_scomp *tfm, const u8 *src, tfm 72 crypto/lz4hc.c static int lz4hc_compress_crypto(struct crypto_tfm *tfm, const u8 *src, tfm 76 crypto/lz4hc.c struct lz4hc_ctx *ctx = crypto_tfm_ctx(tfm); tfm 94 crypto/lz4hc.c static int lz4hc_sdecompress(struct crypto_scomp *tfm, const u8 *src, tfm 101 crypto/lz4hc.c static int lz4hc_decompress_crypto(struct crypto_tfm *tfm, const u8 *src, tfm 18 crypto/lzo-rle.c static void *lzorle_alloc_ctx(struct crypto_scomp *tfm) tfm 29 crypto/lzo-rle.c static int lzorle_init(struct crypto_tfm *tfm) tfm 31 crypto/lzo-rle.c struct lzorle_ctx *ctx = crypto_tfm_ctx(tfm); tfm 40 crypto/lzo-rle.c static void lzorle_free_ctx(struct crypto_scomp *tfm, void *ctx) tfm 45 crypto/lzo-rle.c static void lzorle_exit(struct crypto_tfm *tfm) tfm 47 crypto/lzo-rle.c struct lzorle_ctx *ctx = crypto_tfm_ctx(tfm); tfm 67 crypto/lzo-rle.c static int lzorle_compress(struct crypto_tfm *tfm, const u8 *src, tfm 70 crypto/lzo-rle.c struct lzorle_ctx *ctx = crypto_tfm_ctx(tfm); tfm 75 crypto/lzo-rle.c static int lzorle_scompress(struct crypto_scomp *tfm, const u8 *src, tfm 97 crypto/lzo-rle.c static int lzorle_decompress(struct crypto_tfm *tfm, const u8 *src, tfm 103 crypto/lzo-rle.c static int lzorle_sdecompress(struct crypto_scomp *tfm, const u8 *src, tfm 18 crypto/lzo.c static void *lzo_alloc_ctx(struct crypto_scomp *tfm) tfm 29 crypto/lzo.c static int lzo_init(struct crypto_tfm *tfm) tfm 31 crypto/lzo.c struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); tfm 40 crypto/lzo.c static void lzo_free_ctx(struct crypto_scomp *tfm, void *ctx) tfm 45 crypto/lzo.c static void lzo_exit(struct crypto_tfm *tfm) tfm 47 crypto/lzo.c struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); tfm 67 crypto/lzo.c static int lzo_compress(struct crypto_tfm *tfm, const u8 *src, tfm 70 crypto/lzo.c struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); tfm 75 crypto/lzo.c static int lzo_scompress(struct crypto_scomp *tfm, const u8 *src, tfm 97 crypto/lzo.c static int lzo_decompress(struct crypto_tfm *tfm, const u8 *src, tfm 103 crypto/lzo.c static int lzo_sdecompress(struct crypto_scomp *tfm, const u8 *src, tfm 50 crypto/michael_mic.c struct michael_mic_ctx *ctx = crypto_shash_ctx(desc->tfm); tfm 133 crypto/michael_mic.c static int michael_setkey(struct crypto_shash *tfm, const u8 *key, tfm 136 crypto/michael_mic.c struct michael_mic_ctx *mctx = crypto_shash_ctx(tfm); tfm 141 crypto/michael_mic.c crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 124 crypto/nhpoly1305.c int crypto_nhpoly1305_setkey(struct crypto_shash *tfm, tfm 127 crypto/nhpoly1305.c struct nhpoly1305_key *ctx = crypto_shash_ctx(tfm); tfm 159 crypto/nhpoly1305.c const struct nhpoly1305_key *key = crypto_shash_ctx(desc->tfm); tfm 200 crypto/nhpoly1305.c const struct nhpoly1305_key *key = crypto_shash_ctx(desc->tfm); tfm 19 crypto/ofb.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 20 crypto/ofb.c struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); tfm 21 crypto/pcbc.c struct crypto_cipher *tfm) tfm 23 crypto/pcbc.c int bsize = crypto_cipher_blocksize(tfm); tfm 31 crypto/pcbc.c crypto_cipher_encrypt_one(tfm, dst, iv); tfm 43 crypto/pcbc.c struct crypto_cipher *tfm) tfm 45 crypto/pcbc.c int bsize = crypto_cipher_blocksize(tfm); tfm 54 crypto/pcbc.c crypto_cipher_encrypt_one(tfm, src, iv); tfm 65 crypto/pcbc.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 66 crypto/pcbc.c struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); tfm 88 crypto/pcbc.c struct crypto_cipher *tfm) tfm 90 crypto/pcbc.c int bsize = crypto_cipher_blocksize(tfm); tfm 97 crypto/pcbc.c crypto_cipher_decrypt_one(tfm, dst, src); tfm 110 crypto/pcbc.c struct crypto_cipher *tfm) tfm 112 crypto/pcbc.c int bsize = crypto_cipher_blocksize(tfm); tfm 120 crypto/pcbc.c crypto_cipher_decrypt_one(tfm, src, src); tfm 132 crypto/pcbc.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 133 crypto/pcbc.c struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); tfm 38 crypto/pcrypt.c struct crypto_aead *tfm) tfm 40 crypto/pcrypt.c return aead_instance_ctx(aead_alg_instance(tfm)); tfm 168 crypto/pcrypt.c static int pcrypt_aead_init_tfm(struct crypto_aead *tfm) tfm 171 crypto/pcrypt.c struct aead_instance *inst = aead_alg_instance(tfm); tfm 173 crypto/pcrypt.c struct pcrypt_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 189 crypto/pcrypt.c crypto_aead_set_reqsize(tfm, sizeof(struct pcrypt_request) + tfm 196 crypto/pcrypt.c static void pcrypt_aead_exit_tfm(struct crypto_aead *tfm) tfm 198 crypto/pcrypt.c struct pcrypt_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 31 crypto/rng.c int crypto_rng_reset(struct crypto_rng *tfm, const u8 *seed, unsigned int slen) tfm 33 crypto/rng.c struct crypto_alg *alg = tfm->base.__crt_alg; tfm 53 crypto/rng.c err = crypto_rng_alg(tfm)->seed(tfm, seed, slen); tfm 61 crypto/rng.c static int crypto_rng_init_tfm(struct crypto_tfm *tfm) tfm 106 crypto/rsa-pkcs1pad.c static int pkcs1pad_set_pub_key(struct crypto_akcipher *tfm, const void *key, tfm 109 crypto/rsa-pkcs1pad.c struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 127 crypto/rsa-pkcs1pad.c static int pkcs1pad_set_priv_key(struct crypto_akcipher *tfm, const void *key, tfm 130 crypto/rsa-pkcs1pad.c struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 148 crypto/rsa-pkcs1pad.c static unsigned int pkcs1pad_get_max_size(struct crypto_akcipher *tfm) tfm 150 crypto/rsa-pkcs1pad.c struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 175 crypto/rsa-pkcs1pad.c struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); tfm 176 crypto/rsa-pkcs1pad.c struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 222 crypto/rsa-pkcs1pad.c async_req.tfm = crypto_akcipher_tfm(crypto_akcipher_reqtfm(req)); tfm 230 crypto/rsa-pkcs1pad.c struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); tfm 231 crypto/rsa-pkcs1pad.c struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 278 crypto/rsa-pkcs1pad.c struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); tfm 279 crypto/rsa-pkcs1pad.c struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 340 crypto/rsa-pkcs1pad.c async_req.tfm = crypto_akcipher_tfm(crypto_akcipher_reqtfm(req)); tfm 347 crypto/rsa-pkcs1pad.c struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); tfm 348 crypto/rsa-pkcs1pad.c struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 380 crypto/rsa-pkcs1pad.c struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); tfm 381 crypto/rsa-pkcs1pad.c struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 383 crypto/rsa-pkcs1pad.c struct akcipher_instance *inst = akcipher_alg_instance(tfm); tfm 437 crypto/rsa-pkcs1pad.c struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); tfm 438 crypto/rsa-pkcs1pad.c struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 440 crypto/rsa-pkcs1pad.c struct akcipher_instance *inst = akcipher_alg_instance(tfm); tfm 518 crypto/rsa-pkcs1pad.c async_req.tfm = crypto_akcipher_tfm(crypto_akcipher_reqtfm(req)); tfm 533 crypto/rsa-pkcs1pad.c struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); tfm 534 crypto/rsa-pkcs1pad.c struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 566 crypto/rsa-pkcs1pad.c static int pkcs1pad_init_tfm(struct crypto_akcipher *tfm) tfm 568 crypto/rsa-pkcs1pad.c struct akcipher_instance *inst = akcipher_alg_instance(tfm); tfm 570 crypto/rsa-pkcs1pad.c struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 581 crypto/rsa-pkcs1pad.c static void pkcs1pad_exit_tfm(struct crypto_akcipher *tfm) tfm 583 crypto/rsa-pkcs1pad.c struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 49 crypto/rsa.c static inline struct rsa_mpi_key *rsa_get_key(struct crypto_akcipher *tfm) tfm 51 crypto/rsa.c return akcipher_tfm_ctx(tfm); tfm 56 crypto/rsa.c struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); tfm 57 crypto/rsa.c const struct rsa_mpi_key *pkey = rsa_get_key(tfm); tfm 95 crypto/rsa.c struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); tfm 96 crypto/rsa.c const struct rsa_mpi_key *pkey = rsa_get_key(tfm); tfm 156 crypto/rsa.c static int rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, tfm 159 crypto/rsa.c struct rsa_mpi_key *mpi_key = akcipher_tfm_ctx(tfm); tfm 190 crypto/rsa.c static int rsa_set_priv_key(struct crypto_akcipher *tfm, const void *key, tfm 193 crypto/rsa.c struct rsa_mpi_key *mpi_key = akcipher_tfm_ctx(tfm); tfm 228 crypto/rsa.c static unsigned int rsa_max_size(struct crypto_akcipher *tfm) tfm 230 crypto/rsa.c struct rsa_mpi_key *pkey = akcipher_tfm_ctx(tfm); tfm 235 crypto/rsa.c static void rsa_exit_tfm(struct crypto_akcipher *tfm) tfm 237 crypto/rsa.c struct rsa_mpi_key *pkey = akcipher_tfm_ctx(tfm); tfm 111 crypto/salsa20_generic.c static int salsa20_setkey(struct crypto_skcipher *tfm, const u8 *key, tfm 116 crypto/salsa20_generic.c struct salsa20_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 155 crypto/salsa20_generic.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 156 crypto/salsa20_generic.c const struct salsa20_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 108 crypto/scompress.c static int crypto_scomp_init_tfm(struct crypto_tfm *tfm) tfm 122 crypto/scompress.c struct crypto_acomp *tfm = crypto_acomp_reqtfm(req); tfm 123 crypto/scompress.c void **tfm_ctx = acomp_tfm_ctx(tfm); tfm 174 crypto/scompress.c static void crypto_exit_scomp_ops_async(struct crypto_tfm *tfm) tfm 176 crypto/scompress.c struct crypto_scomp **ctx = crypto_tfm_ctx(tfm); tfm 186 crypto/scompress.c int crypto_init_scomp_ops_async(struct crypto_tfm *tfm) tfm 188 crypto/scompress.c struct crypto_alg *calg = tfm->__crt_alg; tfm 189 crypto/scompress.c struct crypto_acomp *crt = __crypto_acomp_tfm(tfm); tfm 190 crypto/scompress.c struct crypto_scomp **ctx = crypto_tfm_ctx(tfm); tfm 203 crypto/scompress.c tfm->exit = crypto_exit_scomp_ops_async; tfm 216 crypto/scompress.c struct crypto_tfm *tfm = crypto_acomp_tfm(acomp); tfm 217 crypto/scompress.c struct crypto_scomp **tfm_ctx = crypto_tfm_ctx(tfm); tfm 235 crypto/scompress.c struct crypto_tfm *tfm = crypto_acomp_tfm(acomp); tfm 236 crypto/scompress.c struct crypto_scomp **tfm_ctx = crypto_tfm_ctx(tfm); tfm 327 crypto/seed.c static int seed_set_key(struct crypto_tfm *tfm, const u8 *in_key, tfm 330 crypto/seed.c struct seed_ctx *ctx = crypto_tfm_ctx(tfm); tfm 364 crypto/seed.c static void seed_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) tfm 366 crypto/seed.c const struct seed_ctx *ctx = crypto_tfm_ctx(tfm); tfm 402 crypto/seed.c static void seed_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) tfm 404 crypto/seed.c const struct seed_ctx *ctx = crypto_tfm_ctx(tfm); tfm 446 crypto/serpent_generic.c int serpent_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) tfm 448 crypto/serpent_generic.c return __serpent_setkey(crypto_tfm_ctx(tfm), key, keylen); tfm 510 crypto/serpent_generic.c static void serpent_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 512 crypto/serpent_generic.c struct serpent_ctx *ctx = crypto_tfm_ctx(tfm); tfm 570 crypto/serpent_generic.c static void serpent_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 572 crypto/serpent_generic.c struct serpent_ctx *ctx = crypto_tfm_ctx(tfm); tfm 577 crypto/serpent_generic.c static int tnepres_setkey(struct crypto_tfm *tfm, const u8 *key, tfm 586 crypto/serpent_generic.c return serpent_setkey(tfm, rev_key, keylen); tfm 589 crypto/serpent_generic.c static void tnepres_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 601 crypto/serpent_generic.c serpent_encrypt(tfm, (u8 *)rd, (u8 *)rs); tfm 609 crypto/serpent_generic.c static void tnepres_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 621 crypto/serpent_generic.c serpent_decrypt(tfm, (u8 *)rd, (u8 *)rs); tfm 55 crypto/sha256_generic.c if (crypto_shash_digestsize(desc->tfm) == SHA224_DIGEST_SIZE) tfm 164 crypto/sha3_generic.c unsigned int digest_size = crypto_shash_digestsize(desc->tfm); tfm 217 crypto/sha3_generic.c unsigned int digest_size = crypto_shash_digestsize(desc->tfm); tfm 23 crypto/shash.c int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, tfm 30 crypto/shash.c static int shash_setkey_unaligned(struct crypto_shash *tfm, const u8 *key, tfm 33 crypto/shash.c struct shash_alg *shash = crypto_shash_alg(tfm); tfm 34 crypto/shash.c unsigned long alignmask = crypto_shash_alignmask(tfm); tfm 46 crypto/shash.c err = shash->setkey(tfm, alignbuffer, keylen); tfm 51 crypto/shash.c static void shash_set_needkey(struct crypto_shash *tfm, struct shash_alg *alg) tfm 55 crypto/shash.c crypto_shash_set_flags(tfm, CRYPTO_TFM_NEED_KEY); tfm 58 crypto/shash.c int crypto_shash_setkey(struct crypto_shash *tfm, const u8 *key, tfm 61 crypto/shash.c struct shash_alg *shash = crypto_shash_alg(tfm); tfm 62 crypto/shash.c unsigned long alignmask = crypto_shash_alignmask(tfm); tfm 66 crypto/shash.c err = shash_setkey_unaligned(tfm, key, keylen); tfm 68 crypto/shash.c err = shash->setkey(tfm, key, keylen); tfm 71 crypto/shash.c shash_set_needkey(tfm, shash); tfm 75 crypto/shash.c crypto_shash_clear_flags(tfm, CRYPTO_TFM_NEED_KEY); tfm 83 crypto/shash.c struct crypto_shash *tfm = desc->tfm; tfm 84 crypto/shash.c struct shash_alg *shash = crypto_shash_alg(tfm); tfm 85 crypto/shash.c unsigned long alignmask = crypto_shash_alignmask(tfm); tfm 113 crypto/shash.c struct crypto_shash *tfm = desc->tfm; tfm 114 crypto/shash.c struct shash_alg *shash = crypto_shash_alg(tfm); tfm 115 crypto/shash.c unsigned long alignmask = crypto_shash_alignmask(tfm); tfm 126 crypto/shash.c struct crypto_shash *tfm = desc->tfm; tfm 127 crypto/shash.c unsigned long alignmask = crypto_shash_alignmask(tfm); tfm 128 crypto/shash.c struct shash_alg *shash = crypto_shash_alg(tfm); tfm 129 crypto/shash.c unsigned int ds = crypto_shash_digestsize(tfm); tfm 154 crypto/shash.c struct crypto_shash *tfm = desc->tfm; tfm 155 crypto/shash.c struct shash_alg *shash = crypto_shash_alg(tfm); tfm 156 crypto/shash.c unsigned long alignmask = crypto_shash_alignmask(tfm); tfm 175 crypto/shash.c struct crypto_shash *tfm = desc->tfm; tfm 176 crypto/shash.c struct shash_alg *shash = crypto_shash_alg(tfm); tfm 177 crypto/shash.c unsigned long alignmask = crypto_shash_alignmask(tfm); tfm 196 crypto/shash.c struct crypto_shash *tfm = desc->tfm; tfm 197 crypto/shash.c struct shash_alg *shash = crypto_shash_alg(tfm); tfm 198 crypto/shash.c unsigned long alignmask = crypto_shash_alignmask(tfm); tfm 200 crypto/shash.c if (crypto_shash_get_flags(tfm) & CRYPTO_TFM_NEED_KEY) tfm 212 crypto/shash.c memcpy(out, shash_desc_ctx(desc), crypto_shash_descsize(desc->tfm)); tfm 218 crypto/shash.c memcpy(shash_desc_ctx(desc), in, crypto_shash_descsize(desc->tfm)); tfm 222 crypto/shash.c static int shash_async_setkey(struct crypto_ahash *tfm, const u8 *key, tfm 225 crypto/shash.c struct crypto_shash **ctx = crypto_ahash_ctx(tfm); tfm 235 crypto/shash.c desc->tfm = *ctx; tfm 289 crypto/shash.c desc->tfm = *ctx; tfm 323 crypto/shash.c desc->tfm = *ctx; tfm 338 crypto/shash.c desc->tfm = *ctx; tfm 343 crypto/shash.c static void crypto_exit_shash_ops_async(struct crypto_tfm *tfm) tfm 345 crypto/shash.c struct crypto_shash **ctx = crypto_tfm_ctx(tfm); tfm 350 crypto/shash.c int crypto_init_shash_ops_async(struct crypto_tfm *tfm) tfm 352 crypto/shash.c struct crypto_alg *calg = tfm->__crt_alg; tfm 354 crypto/shash.c struct crypto_ahash *crt = __crypto_ahash_cast(tfm); tfm 355 crypto/shash.c struct crypto_shash **ctx = crypto_tfm_ctx(tfm); tfm 368 crypto/shash.c tfm->exit = crypto_exit_shash_ops_async; tfm 389 crypto/shash.c static int crypto_shash_init_tfm(struct crypto_tfm *tfm) tfm 391 crypto/shash.c struct crypto_shash *hash = __crypto_shash_cast(tfm); tfm 50 crypto/simd.c static int simd_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, tfm 53 crypto/simd.c struct simd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 58 crypto/simd.c crypto_skcipher_set_flags(child, crypto_skcipher_get_flags(tfm) & tfm 61 crypto/simd.c crypto_skcipher_set_flags(tfm, crypto_skcipher_get_flags(child) & tfm 68 crypto/simd.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 69 crypto/simd.c struct simd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 89 crypto/simd.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 90 crypto/simd.c struct simd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 108 crypto/simd.c static void simd_skcipher_exit(struct crypto_skcipher *tfm) tfm 110 crypto/simd.c struct simd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 115 crypto/simd.c static int simd_skcipher_init(struct crypto_skcipher *tfm) tfm 117 crypto/simd.c struct simd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 123 crypto/simd.c alg = crypto_skcipher_alg(tfm); tfm 138 crypto/simd.c crypto_skcipher_set_reqsize(tfm, reqsize); tfm 148 crypto/simd.c struct crypto_skcipher *tfm; tfm 153 crypto/simd.c tfm = crypto_alloc_skcipher(basename, CRYPTO_ALG_INTERNAL, tfm 155 crypto/simd.c if (IS_ERR(tfm)) tfm 156 crypto/simd.c return ERR_CAST(tfm); tfm 158 crypto/simd.c ialg = crypto_skcipher_alg(tfm); tfm 202 crypto/simd.c crypto_free_skcipher(tfm); tfm 293 crypto/simd.c static int simd_aead_setkey(struct crypto_aead *tfm, const u8 *key, tfm 296 crypto/simd.c struct simd_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 301 crypto/simd.c crypto_aead_set_flags(child, crypto_aead_get_flags(tfm) & tfm 304 crypto/simd.c crypto_aead_set_flags(tfm, crypto_aead_get_flags(child) & tfm 309 crypto/simd.c static int simd_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) tfm 311 crypto/simd.c struct simd_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 319 crypto/simd.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 320 crypto/simd.c struct simd_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 340 crypto/simd.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 341 crypto/simd.c struct simd_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 359 crypto/simd.c static void simd_aead_exit(struct crypto_aead *tfm) tfm 361 crypto/simd.c struct simd_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 366 crypto/simd.c static int simd_aead_init(struct crypto_aead *tfm) tfm 368 crypto/simd.c struct simd_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 374 crypto/simd.c alg = crypto_aead_alg(tfm); tfm 388 crypto/simd.c crypto_aead_set_reqsize(tfm, reqsize); tfm 398 crypto/simd.c struct crypto_aead *tfm; tfm 403 crypto/simd.c tfm = crypto_alloc_aead(basename, CRYPTO_ALG_INTERNAL, tfm 405 crypto/simd.c if (IS_ERR(tfm)) tfm 406 crypto/simd.c return ERR_CAST(tfm); tfm 408 crypto/simd.c ialg = crypto_aead_alg(tfm); tfm 452 crypto/simd.c crypto_free_aead(tfm); tfm 451 crypto/skcipher.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 468 crypto/skcipher.c walk->blocksize = crypto_skcipher_blocksize(tfm); tfm 469 crypto/skcipher.c walk->stride = crypto_skcipher_walksize(tfm); tfm 470 crypto/skcipher.c walk->ivsize = crypto_skcipher_ivsize(tfm); tfm 471 crypto/skcipher.c walk->alignmask = crypto_skcipher_alignmask(tfm); tfm 513 crypto/skcipher.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 539 crypto/skcipher.c walk->blocksize = crypto_aead_blocksize(tfm); tfm 540 crypto/skcipher.c walk->stride = crypto_aead_chunksize(tfm); tfm 541 crypto/skcipher.c walk->ivsize = crypto_aead_ivsize(tfm); tfm 542 crypto/skcipher.c walk->alignmask = crypto_aead_alignmask(tfm); tfm 573 crypto/skcipher.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 575 crypto/skcipher.c walk->total = req->cryptlen - crypto_aead_authsize(tfm); tfm 592 crypto/skcipher.c static void skcipher_set_needkey(struct crypto_skcipher *tfm) tfm 594 crypto/skcipher.c if (tfm->keysize) tfm 595 crypto/skcipher.c crypto_skcipher_set_flags(tfm, CRYPTO_TFM_NEED_KEY); tfm 598 crypto/skcipher.c static int skcipher_setkey_blkcipher(struct crypto_skcipher *tfm, tfm 601 crypto/skcipher.c struct crypto_blkcipher **ctx = crypto_skcipher_ctx(tfm); tfm 606 crypto/skcipher.c crypto_blkcipher_set_flags(blkcipher, crypto_skcipher_get_flags(tfm) & tfm 609 crypto/skcipher.c crypto_skcipher_set_flags(tfm, crypto_blkcipher_get_flags(blkcipher) & tfm 612 crypto/skcipher.c skcipher_set_needkey(tfm); tfm 616 crypto/skcipher.c crypto_skcipher_clear_flags(tfm, CRYPTO_TFM_NEED_KEY); tfm 626 crypto/skcipher.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 627 crypto/skcipher.c struct crypto_blkcipher **ctx = crypto_skcipher_ctx(tfm); tfm 629 crypto/skcipher.c .tfm = *ctx, tfm 641 crypto/skcipher.c struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); tfm 642 crypto/skcipher.c struct blkcipher_alg *alg = &tfm->__crt_alg->cra_blkcipher; tfm 650 crypto/skcipher.c struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); tfm 651 crypto/skcipher.c struct blkcipher_alg *alg = &tfm->__crt_alg->cra_blkcipher; tfm 656 crypto/skcipher.c static void crypto_exit_skcipher_ops_blkcipher(struct crypto_tfm *tfm) tfm 658 crypto/skcipher.c struct crypto_blkcipher **ctx = crypto_tfm_ctx(tfm); tfm 663 crypto/skcipher.c static int crypto_init_skcipher_ops_blkcipher(struct crypto_tfm *tfm) tfm 665 crypto/skcipher.c struct crypto_alg *calg = tfm->__crt_alg; tfm 666 crypto/skcipher.c struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm); tfm 667 crypto/skcipher.c struct crypto_blkcipher **ctx = crypto_tfm_ctx(tfm); tfm 683 crypto/skcipher.c tfm->exit = crypto_exit_skcipher_ops_blkcipher; tfm 697 crypto/skcipher.c static int skcipher_setkey_ablkcipher(struct crypto_skcipher *tfm, tfm 700 crypto/skcipher.c struct crypto_ablkcipher **ctx = crypto_skcipher_ctx(tfm); tfm 706 crypto/skcipher.c crypto_skcipher_get_flags(tfm) & tfm 709 crypto/skcipher.c crypto_skcipher_set_flags(tfm, tfm 713 crypto/skcipher.c skcipher_set_needkey(tfm); tfm 717 crypto/skcipher.c crypto_skcipher_clear_flags(tfm, CRYPTO_TFM_NEED_KEY); tfm 724 crypto/skcipher.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 725 crypto/skcipher.c struct crypto_ablkcipher **ctx = crypto_skcipher_ctx(tfm); tfm 740 crypto/skcipher.c struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); tfm 741 crypto/skcipher.c struct ablkcipher_alg *alg = &tfm->__crt_alg->cra_ablkcipher; tfm 749 crypto/skcipher.c struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); tfm 750 crypto/skcipher.c struct ablkcipher_alg *alg = &tfm->__crt_alg->cra_ablkcipher; tfm 755 crypto/skcipher.c static void crypto_exit_skcipher_ops_ablkcipher(struct crypto_tfm *tfm) tfm 757 crypto/skcipher.c struct crypto_ablkcipher **ctx = crypto_tfm_ctx(tfm); tfm 762 crypto/skcipher.c static int crypto_init_skcipher_ops_ablkcipher(struct crypto_tfm *tfm) tfm 764 crypto/skcipher.c struct crypto_alg *calg = tfm->__crt_alg; tfm 765 crypto/skcipher.c struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm); tfm 766 crypto/skcipher.c struct crypto_ablkcipher **ctx = crypto_tfm_ctx(tfm); tfm 781 crypto/skcipher.c tfm->exit = crypto_exit_skcipher_ops_ablkcipher; tfm 797 crypto/skcipher.c static int skcipher_setkey_unaligned(struct crypto_skcipher *tfm, tfm 800 crypto/skcipher.c unsigned long alignmask = crypto_skcipher_alignmask(tfm); tfm 801 crypto/skcipher.c struct skcipher_alg *cipher = crypto_skcipher_alg(tfm); tfm 813 crypto/skcipher.c ret = cipher->setkey(tfm, alignbuffer, keylen); tfm 818 crypto/skcipher.c static int skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, tfm 821 crypto/skcipher.c struct skcipher_alg *cipher = crypto_skcipher_alg(tfm); tfm 822 crypto/skcipher.c unsigned long alignmask = crypto_skcipher_alignmask(tfm); tfm 826 crypto/skcipher.c crypto_skcipher_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 831 crypto/skcipher.c err = skcipher_setkey_unaligned(tfm, key, keylen); tfm 833 crypto/skcipher.c err = cipher->setkey(tfm, key, keylen); tfm 836 crypto/skcipher.c skcipher_set_needkey(tfm); tfm 840 crypto/skcipher.c crypto_skcipher_clear_flags(tfm, CRYPTO_TFM_NEED_KEY); tfm 846 crypto/skcipher.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 847 crypto/skcipher.c struct crypto_alg *alg = tfm->base.__crt_alg; tfm 852 crypto/skcipher.c if (crypto_skcipher_get_flags(tfm) & CRYPTO_TFM_NEED_KEY) tfm 855 crypto/skcipher.c ret = tfm->encrypt(req); tfm 863 crypto/skcipher.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 864 crypto/skcipher.c struct crypto_alg *alg = tfm->base.__crt_alg; tfm 869 crypto/skcipher.c if (crypto_skcipher_get_flags(tfm) & CRYPTO_TFM_NEED_KEY) tfm 872 crypto/skcipher.c ret = tfm->decrypt(req); tfm 878 crypto/skcipher.c static void crypto_skcipher_exit_tfm(struct crypto_tfm *tfm) tfm 880 crypto/skcipher.c struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm); tfm 886 crypto/skcipher.c static int crypto_skcipher_init_tfm(struct crypto_tfm *tfm) tfm 888 crypto/skcipher.c struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm); tfm 891 crypto/skcipher.c if (tfm->__crt_alg->cra_type == &crypto_blkcipher_type) tfm 892 crypto/skcipher.c return crypto_init_skcipher_ops_blkcipher(tfm); tfm 894 crypto/skcipher.c if (tfm->__crt_alg->cra_type == &crypto_ablkcipher_type) tfm 895 crypto/skcipher.c return crypto_init_skcipher_ops_ablkcipher(tfm); tfm 999 crypto/skcipher.c struct crypto_skcipher *tfm; tfm 1004 crypto/skcipher.c tfm = crypto_alloc_tfm(alg_name, &crypto_skcipher_type2, type, mask); tfm 1010 crypto/skcipher.c if (!IS_ERR(tfm) && WARN_ON(crypto_skcipher_reqsize(tfm) > tfm 1012 crypto/skcipher.c crypto_free_skcipher(tfm); tfm 1016 crypto/skcipher.c return (struct crypto_sync_skcipher *)tfm; tfm 1108 crypto/skcipher.c static int skcipher_setkey_simple(struct crypto_skcipher *tfm, const u8 *key, tfm 1111 crypto/skcipher.c struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); tfm 1115 crypto/skcipher.c crypto_cipher_set_flags(cipher, crypto_skcipher_get_flags(tfm) & tfm 1118 crypto/skcipher.c crypto_skcipher_set_flags(tfm, crypto_cipher_get_flags(cipher) & tfm 1123 crypto/skcipher.c static int skcipher_init_tfm_simple(struct crypto_skcipher *tfm) tfm 1125 crypto/skcipher.c struct skcipher_instance *inst = skcipher_alg_instance(tfm); tfm 1127 crypto/skcipher.c struct skcipher_ctx_simple *ctx = crypto_skcipher_ctx(tfm); tfm 1138 crypto/skcipher.c static void skcipher_exit_tfm_simple(struct crypto_skcipher *tfm) tfm 1140 crypto/skcipher.c struct skcipher_ctx_simple *ctx = crypto_skcipher_ctx(tfm); tfm 156 crypto/sm4_generic.c int crypto_sm4_set_key(struct crypto_tfm *tfm, const u8 *in_key, tfm 159 crypto/sm4_generic.c struct crypto_sm4_ctx *ctx = crypto_tfm_ctx(tfm); tfm 160 crypto/sm4_generic.c u32 *flags = &tfm->crt_flags; tfm 193 crypto/sm4_generic.c void crypto_sm4_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) tfm 195 crypto/sm4_generic.c const struct crypto_sm4_ctx *ctx = crypto_tfm_ctx(tfm); tfm 203 crypto/sm4_generic.c void crypto_sm4_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) tfm 205 crypto/sm4_generic.c const struct crypto_sm4_ctx *ctx = crypto_tfm_ctx(tfm); tfm 911 crypto/streebog_generic.c unsigned int digest_size = crypto_shash_digestsize(desc->tfm); tfm 1042 crypto/streebog_generic.c if (crypto_shash_digestsize(desc->tfm) == STREEBOG256_DIGEST_SIZE) tfm 54 crypto/tcrypt.c #define get_driver_name(tfm_type, tfm) crypto_tfm_alg_driver_name(tfm_type ## _tfm(tfm)) tfm 256 crypto/tcrypt.c struct crypto_aead *tfm; tfm 284 crypto/tcrypt.c tfm = crypto_alloc_aead(algo, 0, 0); tfm 285 crypto/tcrypt.c if (IS_ERR(tfm)) { tfm 287 crypto/tcrypt.c algo, PTR_ERR(tfm)); tfm 291 crypto/tcrypt.c ret = crypto_aead_setauthsize(tfm, authsize); tfm 315 crypto/tcrypt.c data[i].req = aead_request_alloc(tfm, GFP_KERNEL); tfm 333 crypto/tcrypt.c get_driver_name(crypto_aead, tfm), e); tfm 360 crypto/tcrypt.c crypto_aead_clear_flags(tfm, ~0); tfm 362 crypto/tcrypt.c ret = crypto_aead_setkey(tfm, key, *keysize); tfm 365 crypto/tcrypt.c crypto_aead_get_flags(tfm)); tfm 369 crypto/tcrypt.c iv_len = crypto_aead_ivsize(tfm); tfm 446 crypto/tcrypt.c crypto_free_aead(tfm); tfm 524 crypto/tcrypt.c struct crypto_aead *tfm; tfm 566 crypto/tcrypt.c tfm = crypto_alloc_aead(algo, 0, 0); tfm 568 crypto/tcrypt.c if (IS_ERR(tfm)) { tfm 570 crypto/tcrypt.c PTR_ERR(tfm)); tfm 576 crypto/tcrypt.c get_driver_name(crypto_aead, tfm), e); tfm 578 crypto/tcrypt.c req = aead_request_alloc(tfm, GFP_KERNEL); tfm 609 crypto/tcrypt.c ret = crypto_aead_setkey(tfm, key, *keysize); tfm 610 crypto/tcrypt.c ret = crypto_aead_setauthsize(tfm, authsize); tfm 612 crypto/tcrypt.c iv_len = crypto_aead_ivsize(tfm); tfm 616 crypto/tcrypt.c crypto_aead_clear_flags(tfm, ~0); tfm 625 crypto/tcrypt.c crypto_aead_get_flags(tfm)); tfm 682 crypto/tcrypt.c crypto_free_aead(tfm); tfm 815 crypto/tcrypt.c struct crypto_ahash *tfm; tfm 823 crypto/tcrypt.c tfm = crypto_alloc_ahash(algo, 0, 0); tfm 824 crypto/tcrypt.c if (IS_ERR(tfm)) { tfm 826 crypto/tcrypt.c algo, PTR_ERR(tfm)); tfm 836 crypto/tcrypt.c data[i].req = ahash_request_alloc(tfm, GFP_KERNEL); tfm 854 crypto/tcrypt.c get_driver_name(crypto_ahash, tfm)); tfm 868 crypto/tcrypt.c crypto_ahash_setkey(tfm, tvmem[0], speed[i].klen); tfm 901 crypto/tcrypt.c crypto_free_ahash(tfm); tfm 1060 crypto/tcrypt.c struct crypto_ahash *tfm; tfm 1064 crypto/tcrypt.c tfm = crypto_alloc_ahash(algo, 0, mask); tfm 1065 crypto/tcrypt.c if (IS_ERR(tfm)) { tfm 1067 crypto/tcrypt.c algo, PTR_ERR(tfm)); tfm 1072 crypto/tcrypt.c get_driver_name(crypto_ahash, tfm)); tfm 1074 crypto/tcrypt.c if (crypto_ahash_digestsize(tfm) > MAX_DIGEST_SIZE) { tfm 1075 crypto/tcrypt.c pr_err("digestsize(%u) > %d\n", crypto_ahash_digestsize(tfm), tfm 1081 crypto/tcrypt.c req = ahash_request_alloc(tfm, GFP_KERNEL); tfm 1103 crypto/tcrypt.c crypto_ahash_setkey(tfm, tvmem[0], speed[i].klen); tfm 1132 crypto/tcrypt.c crypto_free_ahash(tfm); tfm 1253 crypto/tcrypt.c struct crypto_skcipher *tfm; tfm 1270 crypto/tcrypt.c tfm = crypto_alloc_skcipher(algo, 0, 0); tfm 1271 crypto/tcrypt.c if (IS_ERR(tfm)) { tfm 1273 crypto/tcrypt.c algo, PTR_ERR(tfm)); tfm 1294 crypto/tcrypt.c data[i].req = skcipher_request_alloc(tfm, GFP_KERNEL); tfm 1312 crypto/tcrypt.c get_driver_name(crypto_skcipher, tfm), e); tfm 1338 crypto/tcrypt.c crypto_skcipher_clear_flags(tfm, ~0); tfm 1340 crypto/tcrypt.c ret = crypto_skcipher_setkey(tfm, key, *keysize); tfm 1343 crypto/tcrypt.c crypto_skcipher_get_flags(tfm)); tfm 1347 crypto/tcrypt.c iv_len = crypto_skcipher_ivsize(tfm); tfm 1389 crypto/tcrypt.c crypto_skcipher_get_flags(tfm)); tfm 1405 crypto/tcrypt.c crypto_free_skcipher(tfm); tfm 1498 crypto/tcrypt.c struct crypto_skcipher *tfm; tfm 1509 crypto/tcrypt.c tfm = crypto_alloc_skcipher(algo, 0, async ? 0 : CRYPTO_ALG_ASYNC); tfm 1511 crypto/tcrypt.c if (IS_ERR(tfm)) { tfm 1513 crypto/tcrypt.c PTR_ERR(tfm)); tfm 1518 crypto/tcrypt.c get_driver_name(crypto_skcipher, tfm), e); tfm 1520 crypto/tcrypt.c req = skcipher_request_alloc(tfm, GFP_KERNEL); tfm 1558 crypto/tcrypt.c crypto_skcipher_clear_flags(tfm, ~0); tfm 1560 crypto/tcrypt.c ret = crypto_skcipher_setkey(tfm, key, *keysize); tfm 1563 crypto/tcrypt.c crypto_skcipher_get_flags(tfm)); tfm 1587 crypto/tcrypt.c iv_len = crypto_skcipher_ivsize(tfm); tfm 1604 crypto/tcrypt.c crypto_skcipher_get_flags(tfm)); tfm 1616 crypto/tcrypt.c crypto_free_skcipher(tfm); tfm 42 crypto/tea.c static int tea_setkey(struct crypto_tfm *tfm, const u8 *in_key, tfm 45 crypto/tea.c struct tea_ctx *ctx = crypto_tfm_ctx(tfm); tfm 57 crypto/tea.c static void tea_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 61 crypto/tea.c struct tea_ctx *ctx = crypto_tfm_ctx(tfm); tfm 85 crypto/tea.c static void tea_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 89 crypto/tea.c struct tea_ctx *ctx = crypto_tfm_ctx(tfm); tfm 115 crypto/tea.c static int xtea_setkey(struct crypto_tfm *tfm, const u8 *in_key, tfm 118 crypto/tea.c struct xtea_ctx *ctx = crypto_tfm_ctx(tfm); tfm 130 crypto/tea.c static void xtea_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 134 crypto/tea.c struct xtea_ctx *ctx = crypto_tfm_ctx(tfm); tfm 151 crypto/tea.c static void xtea_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 154 crypto/tea.c struct tea_ctx *ctx = crypto_tfm_ctx(tfm); tfm 174 crypto/tea.c static void xeta_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 178 crypto/tea.c struct xtea_ctx *ctx = crypto_tfm_ctx(tfm); tfm 195 crypto/tea.c static void xeta_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 198 crypto/tea.c struct tea_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1095 crypto/testmgr.c struct crypto_shash *tfm = desc->tfm; tfm 1096 crypto/testmgr.c const unsigned int alignmask = crypto_shash_alignmask(tfm); tfm 1097 crypto/testmgr.c const unsigned int digestsize = crypto_shash_digestsize(tfm); tfm 1098 crypto/testmgr.c const unsigned int statesize = crypto_shash_statesize(tfm); tfm 1106 crypto/testmgr.c err = crypto_shash_setkey(tfm, vec->key, vec->ksize); tfm 1112 crypto/testmgr.c crypto_shash_get_flags(tfm)); tfm 1132 crypto/testmgr.c testmgr_poison(desc->__ctx, crypto_shash_descsize(tfm)); tfm 1212 crypto/testmgr.c testmgr_poison(desc->__ctx, crypto_shash_descsize(tfm)); tfm 1278 crypto/testmgr.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 1279 crypto/testmgr.c const unsigned int alignmask = crypto_ahash_alignmask(tfm); tfm 1280 crypto/testmgr.c const unsigned int digestsize = crypto_ahash_digestsize(tfm); tfm 1281 crypto/testmgr.c const unsigned int statesize = crypto_ahash_statesize(tfm); tfm 1293 crypto/testmgr.c err = crypto_ahash_setkey(tfm, vec->key, vec->ksize); tfm 1299 crypto/testmgr.c crypto_ahash_get_flags(tfm)); tfm 1319 crypto/testmgr.c testmgr_poison(req->__ctx, crypto_ahash_reqsize(tfm)); tfm 1392 crypto/testmgr.c testmgr_poison(req->__ctx, crypto_ahash_reqsize(tfm)); tfm 1528 crypto/testmgr.c vec->setkey_error = crypto_shash_setkey(desc->tfm, vec->key, tfm 1555 crypto/testmgr.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 1556 crypto/testmgr.c const unsigned int digestsize = crypto_ahash_digestsize(tfm); tfm 1557 crypto/testmgr.c const unsigned int blocksize = crypto_ahash_blocksize(tfm); tfm 1559 crypto/testmgr.c const char *algname = crypto_hash_alg_common(tfm)->base.cra_name; tfm 1608 crypto/testmgr.c generic_desc->tfm = generic_tfm; tfm 1679 crypto/testmgr.c struct crypto_shash *tfm; tfm 1682 crypto/testmgr.c tfm = crypto_alloc_shash(driver, type, mask); tfm 1683 crypto/testmgr.c if (IS_ERR(tfm)) { tfm 1684 crypto/testmgr.c if (PTR_ERR(tfm) == -ENOENT) { tfm 1692 crypto/testmgr.c driver, PTR_ERR(tfm)); tfm 1693 crypto/testmgr.c return PTR_ERR(tfm); tfm 1696 crypto/testmgr.c desc = kmalloc(sizeof(*desc) + crypto_shash_descsize(tfm), GFP_KERNEL); tfm 1698 crypto/testmgr.c crypto_free_shash(tfm); tfm 1701 crypto/testmgr.c desc->tfm = tfm; tfm 1703 crypto/testmgr.c *tfm_ret = tfm; tfm 1844 crypto/testmgr.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 1845 crypto/testmgr.c const unsigned int alignmask = crypto_aead_alignmask(tfm); tfm 1846 crypto/testmgr.c const unsigned int ivsize = crypto_aead_ivsize(tfm); tfm 1861 crypto/testmgr.c crypto_aead_set_flags(tfm, CRYPTO_TFM_REQ_FORBID_WEAK_KEYS); tfm 1863 crypto/testmgr.c crypto_aead_clear_flags(tfm, CRYPTO_TFM_REQ_FORBID_WEAK_KEYS); tfm 1864 crypto/testmgr.c err = crypto_aead_setkey(tfm, vec->key, vec->klen); tfm 1868 crypto/testmgr.c crypto_aead_get_flags(tfm)); tfm 1878 crypto/testmgr.c err = crypto_aead_setauthsize(tfm, authsize); tfm 1919 crypto/testmgr.c testmgr_poison(req->__ctx, crypto_aead_reqsize(tfm)); tfm 1937 crypto/testmgr.c crypto_aead_reqtfm(req) != tfm || tfm 1953 crypto/testmgr.c if (crypto_aead_reqtfm(req) != tfm) tfm 2060 crypto/testmgr.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 2061 crypto/testmgr.c const unsigned int ivsize = crypto_aead_ivsize(tfm); tfm 2062 crypto/testmgr.c unsigned int maxauthsize = crypto_aead_alg(tfm)->maxauthsize; tfm 2075 crypto/testmgr.c vec->setkey_error = crypto_aead_setkey(tfm, vec->key, vec->klen); tfm 2087 crypto/testmgr.c vec->setauthsize_error = crypto_aead_setauthsize(tfm, authsize); tfm 2139 crypto/testmgr.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 2140 crypto/testmgr.c const unsigned int ivsize = crypto_aead_ivsize(tfm); tfm 2141 crypto/testmgr.c const unsigned int maxauthsize = crypto_aead_alg(tfm)->maxauthsize; tfm 2142 crypto/testmgr.c const unsigned int blocksize = crypto_aead_blocksize(tfm); tfm 2144 crypto/testmgr.c const char *algname = crypto_aead_alg(tfm)->base.cra_name; tfm 2301 crypto/testmgr.c struct crypto_aead *tfm; tfm 2311 crypto/testmgr.c tfm = crypto_alloc_aead(driver, type, mask); tfm 2312 crypto/testmgr.c if (IS_ERR(tfm)) { tfm 2314 crypto/testmgr.c driver, PTR_ERR(tfm)); tfm 2315 crypto/testmgr.c return PTR_ERR(tfm); tfm 2318 crypto/testmgr.c req = aead_request_alloc(tfm, GFP_KERNEL); tfm 2346 crypto/testmgr.c crypto_free_aead(tfm); tfm 2350 crypto/testmgr.c static int test_cipher(struct crypto_cipher *tfm, int enc, tfm 2354 crypto/testmgr.c const char *algo = crypto_tfm_alg_driver_name(crypto_cipher_tfm(tfm)); tfm 2388 crypto/testmgr.c crypto_cipher_clear_flags(tfm, ~0); tfm 2390 crypto/testmgr.c crypto_cipher_set_flags(tfm, CRYPTO_TFM_REQ_FORBID_WEAK_KEYS); tfm 2392 crypto/testmgr.c ret = crypto_cipher_setkey(tfm, template[i].key, tfm 2399 crypto/testmgr.c crypto_cipher_get_flags(tfm)); tfm 2410 crypto/testmgr.c k += crypto_cipher_blocksize(tfm)) { tfm 2412 crypto/testmgr.c crypto_cipher_encrypt_one(tfm, data + k, tfm 2415 crypto/testmgr.c crypto_cipher_decrypt_one(tfm, data + k, tfm 2444 crypto/testmgr.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 2445 crypto/testmgr.c const unsigned int alignmask = crypto_skcipher_alignmask(tfm); tfm 2446 crypto/testmgr.c const unsigned int ivsize = crypto_skcipher_ivsize(tfm); tfm 2459 crypto/testmgr.c crypto_skcipher_set_flags(tfm, CRYPTO_TFM_REQ_FORBID_WEAK_KEYS); tfm 2461 crypto/testmgr.c crypto_skcipher_clear_flags(tfm, tfm 2463 crypto/testmgr.c err = crypto_skcipher_setkey(tfm, vec->key, vec->klen); tfm 2469 crypto/testmgr.c crypto_skcipher_get_flags(tfm)); tfm 2509 crypto/testmgr.c testmgr_poison(req->__ctx, crypto_skcipher_reqsize(tfm)); tfm 2525 crypto/testmgr.c crypto_skcipher_reqtfm(req) != tfm || tfm 2539 crypto/testmgr.c if (crypto_skcipher_reqtfm(req) != tfm) tfm 2652 crypto/testmgr.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 2653 crypto/testmgr.c const unsigned int maxkeysize = tfm->keysize; tfm 2654 crypto/testmgr.c const unsigned int ivsize = crypto_skcipher_ivsize(tfm); tfm 2664 crypto/testmgr.c vec->setkey_error = crypto_skcipher_setkey(tfm, vec->key, vec->klen); tfm 2707 crypto/testmgr.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 2708 crypto/testmgr.c const unsigned int ivsize = crypto_skcipher_ivsize(tfm); tfm 2709 crypto/testmgr.c const unsigned int blocksize = crypto_skcipher_blocksize(tfm); tfm 2711 crypto/testmgr.c const char *algname = crypto_skcipher_alg(tfm)->base.cra_name; tfm 2766 crypto/testmgr.c if (tfm->keysize != generic_tfm->keysize) { tfm 2768 crypto/testmgr.c driver, tfm->keysize, generic_tfm->keysize); tfm 2793 crypto/testmgr.c vec.key = kmalloc(tfm->keysize, GFP_KERNEL); tfm 2860 crypto/testmgr.c struct crypto_skcipher *tfm; tfm 2870 crypto/testmgr.c tfm = crypto_alloc_skcipher(driver, type, mask); tfm 2871 crypto/testmgr.c if (IS_ERR(tfm)) { tfm 2873 crypto/testmgr.c driver, PTR_ERR(tfm)); tfm 2874 crypto/testmgr.c return PTR_ERR(tfm); tfm 2877 crypto/testmgr.c req = skcipher_request_alloc(tfm, GFP_KERNEL); tfm 2906 crypto/testmgr.c crypto_free_skcipher(tfm); tfm 2910 crypto/testmgr.c static int test_comp(struct crypto_comp *tfm, tfm 2915 crypto/testmgr.c const char *algo = crypto_tfm_alg_driver_name(crypto_comp_tfm(tfm)); tfm 2938 crypto/testmgr.c ret = crypto_comp_compress(tfm, ctemplate[i].input, tfm 2949 crypto/testmgr.c ret = crypto_comp_decompress(tfm, output, tfm 2982 crypto/testmgr.c ret = crypto_comp_decompress(tfm, dtemplate[i].input, tfm 3016 crypto/testmgr.c static int test_acomp(struct crypto_acomp *tfm, tfm 3021 crypto/testmgr.c const char *algo = crypto_tfm_alg_driver_name(crypto_acomp_tfm(tfm)); tfm 3055 crypto/testmgr.c req = acomp_request_alloc(tfm); tfm 3132 crypto/testmgr.c req = acomp_request_alloc(tfm); tfm 3185 crypto/testmgr.c static int test_cprng(struct crypto_rng *tfm, tfm 3189 crypto/testmgr.c const char *algo = crypto_tfm_alg_driver_name(crypto_rng_tfm(tfm)); tfm 3194 crypto/testmgr.c seedsize = crypto_rng_seedsize(tfm); tfm 3212 crypto/testmgr.c err = crypto_rng_reset(tfm, seed, seedsize); tfm 3220 crypto/testmgr.c err = crypto_rng_get_bytes(tfm, result, tfm 3251 crypto/testmgr.c struct crypto_cipher *tfm; tfm 3254 crypto/testmgr.c tfm = crypto_alloc_cipher(driver, type, mask); tfm 3255 crypto/testmgr.c if (IS_ERR(tfm)) { tfm 3257 crypto/testmgr.c "%s: %ld\n", driver, PTR_ERR(tfm)); tfm 3258 crypto/testmgr.c return PTR_ERR(tfm); tfm 3261 crypto/testmgr.c err = test_cipher(tfm, ENCRYPT, suite->vecs, suite->count); tfm 3263 crypto/testmgr.c err = test_cipher(tfm, DECRYPT, suite->vecs, suite->count); tfm 3265 crypto/testmgr.c crypto_free_cipher(tfm); tfm 3310 crypto/testmgr.c struct crypto_shash *tfm; tfm 3318 crypto/testmgr.c tfm = crypto_alloc_shash(driver, type, mask); tfm 3319 crypto/testmgr.c if (IS_ERR(tfm)) { tfm 3320 crypto/testmgr.c if (PTR_ERR(tfm) == -ENOENT) { tfm 3329 crypto/testmgr.c "%ld\n", driver, PTR_ERR(tfm)); tfm 3330 crypto/testmgr.c return PTR_ERR(tfm); tfm 3334 crypto/testmgr.c SHASH_DESC_ON_STACK(shash, tfm); tfm 3337 crypto/testmgr.c shash->tfm = tfm; tfm 3354 crypto/testmgr.c crypto_free_shash(tfm); tfm 3473 crypto/testmgr.c static int do_test_kpp(struct crypto_kpp *tfm, const struct kpp_testvec *vec, tfm 3487 crypto/testmgr.c req = kpp_request_alloc(tfm, GFP_KERNEL); tfm 3493 crypto/testmgr.c err = crypto_kpp_set_secret(tfm, vec->secret, vec->secret_size); tfm 3497 crypto/testmgr.c out_len_max = crypto_kpp_maxsize(tfm); tfm 3569 crypto/testmgr.c err = crypto_kpp_set_secret(tfm, vec->b_secret, tfm 3615 crypto/testmgr.c static int test_kpp(struct crypto_kpp *tfm, const char *alg, tfm 3621 crypto/testmgr.c ret = do_test_kpp(tfm, vecs++, alg); tfm 3634 crypto/testmgr.c struct crypto_kpp *tfm; tfm 3637 crypto/testmgr.c tfm = crypto_alloc_kpp(driver, type, mask); tfm 3638 crypto/testmgr.c if (IS_ERR(tfm)) { tfm 3640 crypto/testmgr.c driver, PTR_ERR(tfm)); tfm 3641 crypto/testmgr.c return PTR_ERR(tfm); tfm 3644 crypto/testmgr.c err = test_kpp(tfm, desc->alg, desc->suite.kpp.vecs, tfm 3647 crypto/testmgr.c crypto_free_kpp(tfm); tfm 3657 crypto/testmgr.c static int test_akcipher_one(struct crypto_akcipher *tfm, tfm 3676 crypto/testmgr.c req = akcipher_request_alloc(tfm, GFP_KERNEL); tfm 3693 crypto/testmgr.c err = crypto_akcipher_set_pub_key(tfm, key, vecs->key_len); tfm 3695 crypto/testmgr.c err = crypto_akcipher_set_priv_key(tfm, key, vecs->key_len); tfm 3704 crypto/testmgr.c out_len_max = crypto_akcipher_maxsize(tfm); tfm 3831 crypto/testmgr.c static int test_akcipher(struct crypto_akcipher *tfm, const char *alg, tfm 3836 crypto/testmgr.c crypto_tfm_alg_driver_name(crypto_akcipher_tfm(tfm)); tfm 3840 crypto/testmgr.c ret = test_akcipher_one(tfm, vecs++); tfm 3854 crypto/testmgr.c struct crypto_akcipher *tfm; tfm 3857 crypto/testmgr.c tfm = crypto_alloc_akcipher(driver, type, mask); tfm 3858 crypto/testmgr.c if (IS_ERR(tfm)) { tfm 3860 crypto/testmgr.c driver, PTR_ERR(tfm)); tfm 3861 crypto/testmgr.c return PTR_ERR(tfm); tfm 3864 crypto/testmgr.c err = test_akcipher(tfm, desc->alg, desc->suite.akcipher.vecs, tfm 3867 crypto/testmgr.c crypto_free_akcipher(tfm); tfm 689 crypto/twofish_common.c int twofish_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int key_len) tfm 691 crypto/twofish_common.c return __twofish_setkey(crypto_tfm_ctx(tfm), key, key_len, tfm 692 crypto/twofish_common.c &tfm->crt_flags); tfm 95 crypto/twofish_generic.c static void twofish_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) tfm 97 crypto/twofish_generic.c struct twofish_ctx *ctx = crypto_tfm_ctx(tfm); tfm 132 crypto/twofish_generic.c static void twofish_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) tfm 134 crypto/twofish_generic.c struct twofish_ctx *ctx = crypto_tfm_ctx(tfm); tfm 429 crypto/vmac.c static int vmac_setkey(struct crypto_shash *tfm, tfm 432 crypto/vmac.c struct vmac_tfm_ctx *tctx = crypto_shash_ctx(tfm); tfm 439 crypto/vmac.c crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 483 crypto/vmac.c const struct vmac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); tfm 495 crypto/vmac.c const struct vmac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); tfm 565 crypto/vmac.c const struct vmac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); tfm 598 crypto/vmac.c static int vmac_init_tfm(struct crypto_tfm *tfm) tfm 600 crypto/vmac.c struct crypto_instance *inst = crypto_tfm_alg_instance(tfm); tfm 602 crypto/vmac.c struct vmac_tfm_ctx *tctx = crypto_tfm_ctx(tfm); tfm 613 crypto/vmac.c static void vmac_exit_tfm(struct crypto_tfm *tfm) tfm 615 crypto/vmac.c struct vmac_tfm_ctx *tctx = crypto_tfm_ctx(tfm); tfm 73 crypto/xcbc.c unsigned long alignmask = crypto_shash_alignmask(pdesc->tfm); tfm 75 crypto/xcbc.c int bs = crypto_shash_blocksize(pdesc->tfm); tfm 87 crypto/xcbc.c struct crypto_shash *parent = pdesc->tfm; tfm 91 crypto/xcbc.c struct crypto_cipher *tfm = tctx->child; tfm 109 crypto/xcbc.c crypto_cipher_encrypt_one(tfm, prev, prev); tfm 117 crypto/xcbc.c crypto_cipher_encrypt_one(tfm, prev, prev); tfm 133 crypto/xcbc.c struct crypto_shash *parent = pdesc->tfm; tfm 137 crypto/xcbc.c struct crypto_cipher *tfm = tctx->child; tfm 161 crypto/xcbc.c crypto_cipher_encrypt_one(tfm, out, prev); tfm 166 crypto/xcbc.c static int xcbc_init_tfm(struct crypto_tfm *tfm) tfm 169 crypto/xcbc.c struct crypto_instance *inst = (void *)tfm->__crt_alg; tfm 171 crypto/xcbc.c struct xcbc_tfm_ctx *ctx = crypto_tfm_ctx(tfm); tfm 182 crypto/xcbc.c static void xcbc_exit_tfm(struct crypto_tfm *tfm) tfm 184 crypto/xcbc.c struct xcbc_tfm_ctx *ctx = crypto_tfm_ctx(tfm); tfm 90 crypto/xts.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 100 crypto/xts.c skcipher_request_set_tfm(req, tfm); tfm 295 crypto/xts.c static int init_tfm(struct crypto_skcipher *tfm) tfm 297 crypto/xts.c struct skcipher_instance *inst = skcipher_alg_instance(tfm); tfm 299 crypto/xts.c struct priv *ctx = crypto_skcipher_ctx(tfm); tfm 317 crypto/xts.c crypto_skcipher_set_reqsize(tfm, crypto_skcipher_reqsize(child) + tfm 323 crypto/xts.c static void exit_tfm(struct crypto_skcipher *tfm) tfm 325 crypto/xts.c struct priv *ctx = crypto_skcipher_ctx(tfm); tfm 20 crypto/xxhash_generic.c static int xxhash64_setkey(struct crypto_shash *tfm, const u8 *key, tfm 23 crypto/xxhash_generic.c struct xxhash64_tfm_ctx *tctx = crypto_shash_ctx(tfm); tfm 26 crypto/xxhash_generic.c crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 35 crypto/xxhash_generic.c struct xxhash64_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); tfm 65 crypto/xxhash_generic.c struct xxhash64_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); tfm 106 crypto/zstd.c static void *zstd_alloc_ctx(struct crypto_scomp *tfm) tfm 124 crypto/zstd.c static int zstd_init(struct crypto_tfm *tfm) tfm 126 crypto/zstd.c struct zstd_ctx *ctx = crypto_tfm_ctx(tfm); tfm 137 crypto/zstd.c static void zstd_free_ctx(struct crypto_scomp *tfm, void *ctx) tfm 143 crypto/zstd.c static void zstd_exit(struct crypto_tfm *tfm) tfm 145 crypto/zstd.c struct zstd_ctx *ctx = crypto_tfm_ctx(tfm); tfm 164 crypto/zstd.c static int zstd_compress(struct crypto_tfm *tfm, const u8 *src, tfm 167 crypto/zstd.c struct zstd_ctx *ctx = crypto_tfm_ctx(tfm); tfm 172 crypto/zstd.c static int zstd_scompress(struct crypto_scomp *tfm, const u8 *src, tfm 192 crypto/zstd.c static int zstd_decompress(struct crypto_tfm *tfm, const u8 *src, tfm 195 crypto/zstd.c struct zstd_ctx *ctx = crypto_tfm_ctx(tfm); tfm 200 crypto/zstd.c static int zstd_sdecompress(struct crypto_scomp *tfm, const u8 *src, tfm 36 drivers/block/cryptoloop.c struct crypto_sync_skcipher *tfm; tfm 71 drivers/block/cryptoloop.c tfm = crypto_alloc_sync_skcipher(cms, 0, 0); tfm 72 drivers/block/cryptoloop.c if (IS_ERR(tfm)) tfm 73 drivers/block/cryptoloop.c return PTR_ERR(tfm); tfm 75 drivers/block/cryptoloop.c err = crypto_sync_skcipher_setkey(tfm, info->lo_encrypt_key, tfm 81 drivers/block/cryptoloop.c lo->key_data = tfm; tfm 85 drivers/block/cryptoloop.c crypto_free_sync_skcipher(tfm); tfm 100 drivers/block/cryptoloop.c struct crypto_sync_skcipher *tfm = lo->key_data; tfm 101 drivers/block/cryptoloop.c SYNC_SKCIPHER_REQUEST_ON_STACK(req, tfm); tfm 110 drivers/block/cryptoloop.c skcipher_request_set_sync_tfm(req, tfm); tfm 166 drivers/block/cryptoloop.c struct crypto_sync_skcipher *tfm = lo->key_data; tfm 167 drivers/block/cryptoloop.c if (tfm != NULL) { tfm 168 drivers/block/cryptoloop.c crypto_free_sync_skcipher(tfm); tfm 2375 drivers/block/drbd/drbd_nl.c alloc_shash(struct crypto_shash **tfm, char *tfm_name, int err_alg) tfm 2380 drivers/block/drbd/drbd_nl.c *tfm = crypto_alloc_shash(tfm_name, 0, 0); tfm 2381 drivers/block/drbd/drbd_nl.c if (IS_ERR(*tfm)) { tfm 2382 drivers/block/drbd/drbd_nl.c *tfm = NULL; tfm 3826 drivers/block/drbd/drbd_receiver.c struct crypto_shash *tfm; tfm 3831 drivers/block/drbd/drbd_receiver.c tfm = crypto_alloc_shash(alg, 0, 0); tfm 3832 drivers/block/drbd/drbd_receiver.c if (IS_ERR(tfm)) { tfm 3834 drivers/block/drbd/drbd_receiver.c alg, name, PTR_ERR(tfm)); tfm 3835 drivers/block/drbd/drbd_receiver.c return tfm; tfm 3837 drivers/block/drbd/drbd_receiver.c return tfm; tfm 5440 drivers/block/drbd/drbd_receiver.c desc->tfm = connection->cram_hmac_tfm; tfm 286 drivers/block/drbd/drbd_worker.c void drbd_csum_ee(struct crypto_shash *tfm, struct drbd_peer_request *peer_req, void *digest) tfm 288 drivers/block/drbd/drbd_worker.c SHASH_DESC_ON_STACK(desc, tfm); tfm 294 drivers/block/drbd/drbd_worker.c desc->tfm = tfm; tfm 315 drivers/block/drbd/drbd_worker.c void drbd_csum_bio(struct crypto_shash *tfm, struct bio *bio, void *digest) tfm 317 drivers/block/drbd/drbd_worker.c SHASH_DESC_ON_STACK(desc, tfm); tfm 321 drivers/block/drbd/drbd_worker.c desc->tfm = tfm; tfm 37 drivers/block/zram/zcomp.c if (!IS_ERR_OR_NULL(zstrm->tfm)) tfm 38 drivers/block/zram/zcomp.c crypto_free_comp(zstrm->tfm); tfm 53 drivers/block/zram/zcomp.c zstrm->tfm = crypto_alloc_comp(comp->name, 0, 0); tfm 59 drivers/block/zram/zcomp.c if (IS_ERR_OR_NULL(zstrm->tfm) || !zstrm->buffer) { tfm 143 drivers/block/zram/zcomp.c return crypto_comp_compress(zstrm->tfm, tfm 153 drivers/block/zram/zcomp.c return crypto_comp_decompress(zstrm->tfm, tfm 12 drivers/block/zram/zcomp.h struct crypto_comp *tfm; tfm 403 drivers/crypto/amcc/crypto4xx_alg.c struct crypto_tfm *tfm = crypto_aead_tfm(cipher); tfm 404 drivers/crypto/amcc/crypto4xx_alg.c struct crypto4xx_ctx *ctx = crypto_tfm_ctx(tfm); tfm 462 drivers/crypto/amcc/crypto4xx_alg.c struct crypto4xx_ctx *ctx = crypto_tfm_ctx(req->base.tfm); tfm 505 drivers/crypto/amcc/crypto4xx_alg.c struct crypto_tfm *tfm = crypto_aead_tfm(cipher); tfm 506 drivers/crypto/amcc/crypto4xx_alg.c struct crypto4xx_ctx *ctx = crypto_tfm_ctx(tfm); tfm 549 drivers/crypto/amcc/crypto4xx_alg.c struct crypto_tfm *tfm = crypto_aead_tfm(cipher); tfm 550 drivers/crypto/amcc/crypto4xx_alg.c struct crypto4xx_ctx *ctx = crypto_tfm_ctx(tfm); tfm 611 drivers/crypto/amcc/crypto4xx_alg.c struct crypto4xx_ctx *ctx = crypto_tfm_ctx(req->base.tfm); tfm 644 drivers/crypto/amcc/crypto4xx_alg.c static int crypto4xx_hash_alg_init(struct crypto_tfm *tfm, tfm 649 drivers/crypto/amcc/crypto4xx_alg.c struct crypto_alg *alg = tfm->__crt_alg; tfm 651 drivers/crypto/amcc/crypto4xx_alg.c struct crypto4xx_ctx *ctx = crypto_tfm_ctx(tfm); tfm 667 drivers/crypto/amcc/crypto4xx_alg.c crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), tfm 689 drivers/crypto/amcc/crypto4xx_alg.c struct crypto4xx_ctx *ctx = crypto_tfm_ctx(req->base.tfm); tfm 695 drivers/crypto/amcc/crypto4xx_alg.c __crypto_ahash_cast(req->base.tfm)); tfm 705 drivers/crypto/amcc/crypto4xx_alg.c struct crypto4xx_ctx *ctx = crypto_tfm_ctx(req->base.tfm); tfm 724 drivers/crypto/amcc/crypto4xx_alg.c struct crypto4xx_ctx *ctx = crypto_tfm_ctx(req->base.tfm); tfm 738 drivers/crypto/amcc/crypto4xx_alg.c int crypto4xx_sha1_alg_init(struct crypto_tfm *tfm) tfm 740 drivers/crypto/amcc/crypto4xx_alg.c return crypto4xx_hash_alg_init(tfm, SA_HASH160_LEN, SA_HASH_ALG_SHA1, tfm 559 drivers/crypto/amcc/crypto4xx_core.c ctx = crypto_tfm_ctx(ahash_req->base.tfm); tfm 562 drivers/crypto/amcc/crypto4xx_core.c crypto_tfm_ctx(ahash_req->base.tfm)); tfm 639 drivers/crypto/amcc/crypto4xx_core.c switch (crypto_tfm_alg_type(pd_uinfo->async_req->tfm)) { tfm 919 drivers/crypto/amcc/crypto4xx_core.c ((crypto_tfm_alg_type(req->tfm) == CRYPTO_ALG_TYPE_AHASH) | tfm 920 drivers/crypto/amcc/crypto4xx_core.c (crypto_tfm_alg_type(req->tfm) == CRYPTO_ALG_TYPE_AEAD) ? tfm 977 drivers/crypto/amcc/crypto4xx_core.c static int crypto4xx_aead_init(struct crypto_aead *tfm) tfm 979 drivers/crypto/amcc/crypto4xx_core.c struct aead_alg *alg = crypto_aead_alg(tfm); tfm 980 drivers/crypto/amcc/crypto4xx_core.c struct crypto4xx_ctx *ctx = crypto_aead_ctx(tfm); tfm 991 drivers/crypto/amcc/crypto4xx_core.c crypto_aead_set_reqsize(tfm, max(sizeof(struct aead_request) + 32 + tfm 997 drivers/crypto/amcc/crypto4xx_core.c static void crypto4xx_aead_exit(struct crypto_aead *tfm) tfm 999 drivers/crypto/amcc/crypto4xx_core.c struct crypto4xx_ctx *ctx = crypto_aead_ctx(tfm); tfm 1163 drivers/crypto/amcc/crypto4xx_core.c static int crypto4xx_prng_generate(struct crypto_rng *tfm, tfm 1167 drivers/crypto/amcc/crypto4xx_core.c struct rng_alg *alg = crypto_rng_alg(tfm); tfm 1182 drivers/crypto/amcc/crypto4xx_core.c static int crypto4xx_prng_seed(struct crypto_rng *tfm, const u8 *seed, tfm 184 drivers/crypto/amcc/crypto4xx_core.h int crypto4xx_sha1_alg_init(struct crypto_tfm *tfm); tfm 961 drivers/crypto/atmel-aes.c ctx = crypto_tfm_ctx(areq->tfm); tfm 1134 drivers/crypto/atmel-aes.c static int atmel_aes_setkey(struct crypto_ablkcipher *tfm, const u8 *key, tfm 1137 drivers/crypto/atmel-aes.c struct atmel_aes_base_ctx *ctx = crypto_ablkcipher_ctx(tfm); tfm 1142 drivers/crypto/atmel-aes.c crypto_ablkcipher_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 1242 drivers/crypto/atmel-aes.c static int atmel_aes_cra_init(struct crypto_tfm *tfm) tfm 1244 drivers/crypto/atmel-aes.c struct atmel_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1246 drivers/crypto/atmel-aes.c tfm->crt_ablkcipher.reqsize = sizeof(struct atmel_aes_reqctx); tfm 1252 drivers/crypto/atmel-aes.c static int atmel_aes_ctr_cra_init(struct crypto_tfm *tfm) tfm 1254 drivers/crypto/atmel-aes.c struct atmel_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1256 drivers/crypto/atmel-aes.c tfm->crt_ablkcipher.reqsize = sizeof(struct atmel_aes_reqctx); tfm 1531 drivers/crypto/atmel-aes.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 1533 drivers/crypto/atmel-aes.c size_t ivsize = crypto_aead_ivsize(tfm); tfm 1568 drivers/crypto/atmel-aes.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 1573 drivers/crypto/atmel-aes.c authsize = crypto_aead_authsize(tfm); tfm 1719 drivers/crypto/atmel-aes.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 1731 drivers/crypto/atmel-aes.c authsize = crypto_aead_authsize(tfm); tfm 1764 drivers/crypto/atmel-aes.c static int atmel_aes_gcm_setkey(struct crypto_aead *tfm, const u8 *key, tfm 1767 drivers/crypto/atmel-aes.c struct atmel_aes_base_ctx *ctx = crypto_aead_ctx(tfm); tfm 1772 drivers/crypto/atmel-aes.c crypto_aead_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 1782 drivers/crypto/atmel-aes.c static int atmel_aes_gcm_setauthsize(struct crypto_aead *tfm, tfm 1812 drivers/crypto/atmel-aes.c static int atmel_aes_gcm_init(struct crypto_aead *tfm) tfm 1814 drivers/crypto/atmel-aes.c struct atmel_aes_gcm_ctx *ctx = crypto_aead_ctx(tfm); tfm 1816 drivers/crypto/atmel-aes.c crypto_aead_set_reqsize(tfm, sizeof(struct atmel_aes_reqctx)); tfm 1915 drivers/crypto/atmel-aes.c static int atmel_aes_xts_setkey(struct crypto_ablkcipher *tfm, const u8 *key, tfm 1918 drivers/crypto/atmel-aes.c struct atmel_aes_xts_ctx *ctx = crypto_ablkcipher_ctx(tfm); tfm 1921 drivers/crypto/atmel-aes.c err = xts_check_key(crypto_ablkcipher_tfm(tfm), key, keylen); tfm 1942 drivers/crypto/atmel-aes.c static int atmel_aes_xts_cra_init(struct crypto_tfm *tfm) tfm 1944 drivers/crypto/atmel-aes.c struct atmel_aes_xts_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1946 drivers/crypto/atmel-aes.c tfm->crt_ablkcipher.reqsize = sizeof(struct atmel_aes_reqctx); tfm 1999 drivers/crypto/atmel-aes.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 2000 drivers/crypto/atmel-aes.c struct atmel_aes_authenc_ctx *ctx = crypto_aead_ctx(tfm); tfm 2094 drivers/crypto/atmel-aes.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 2105 drivers/crypto/atmel-aes.c authsize = crypto_aead_authsize(tfm); tfm 2118 drivers/crypto/atmel-aes.c static int atmel_aes_authenc_setkey(struct crypto_aead *tfm, const u8 *key, tfm 2121 drivers/crypto/atmel-aes.c struct atmel_aes_authenc_ctx *ctx = crypto_aead_ctx(tfm); tfm 2133 drivers/crypto/atmel-aes.c flags = crypto_aead_get_flags(tfm); tfm 2137 drivers/crypto/atmel-aes.c crypto_aead_set_flags(tfm, flags & CRYPTO_TFM_RES_MASK); tfm 2151 drivers/crypto/atmel-aes.c crypto_aead_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 2156 drivers/crypto/atmel-aes.c static int atmel_aes_authenc_init_tfm(struct crypto_aead *tfm, tfm 2159 drivers/crypto/atmel-aes.c struct atmel_aes_authenc_ctx *ctx = crypto_aead_ctx(tfm); tfm 2166 drivers/crypto/atmel-aes.c crypto_aead_set_reqsize(tfm, (sizeof(struct atmel_aes_authenc_reqctx) + tfm 2173 drivers/crypto/atmel-aes.c static int atmel_aes_authenc_hmac_sha1_init_tfm(struct crypto_aead *tfm) tfm 2175 drivers/crypto/atmel-aes.c return atmel_aes_authenc_init_tfm(tfm, SHA_FLAGS_HMAC_SHA1); tfm 2178 drivers/crypto/atmel-aes.c static int atmel_aes_authenc_hmac_sha224_init_tfm(struct crypto_aead *tfm) tfm 2180 drivers/crypto/atmel-aes.c return atmel_aes_authenc_init_tfm(tfm, SHA_FLAGS_HMAC_SHA224); tfm 2183 drivers/crypto/atmel-aes.c static int atmel_aes_authenc_hmac_sha256_init_tfm(struct crypto_aead *tfm) tfm 2185 drivers/crypto/atmel-aes.c return atmel_aes_authenc_init_tfm(tfm, SHA_FLAGS_HMAC_SHA256); tfm 2188 drivers/crypto/atmel-aes.c static int atmel_aes_authenc_hmac_sha384_init_tfm(struct crypto_aead *tfm) tfm 2190 drivers/crypto/atmel-aes.c return atmel_aes_authenc_init_tfm(tfm, SHA_FLAGS_HMAC_SHA384); tfm 2193 drivers/crypto/atmel-aes.c static int atmel_aes_authenc_hmac_sha512_init_tfm(struct crypto_aead *tfm) tfm 2195 drivers/crypto/atmel-aes.c return atmel_aes_authenc_init_tfm(tfm, SHA_FLAGS_HMAC_SHA512); tfm 2198 drivers/crypto/atmel-aes.c static void atmel_aes_authenc_exit_tfm(struct crypto_aead *tfm) tfm 2200 drivers/crypto/atmel-aes.c struct atmel_aes_authenc_ctx *ctx = crypto_aead_ctx(tfm); tfm 2209 drivers/crypto/atmel-aes.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 2210 drivers/crypto/atmel-aes.c struct atmel_aes_base_ctx *ctx = crypto_aead_ctx(tfm); tfm 2211 drivers/crypto/atmel-aes.c u32 authsize = crypto_aead_authsize(tfm); tfm 88 drivers/crypto/atmel-ecc.c static int atmel_ecdh_set_secret(struct crypto_kpp *tfm, const void *buf, tfm 91 drivers/crypto/atmel-ecc.c struct atmel_ecdh_ctx *ctx = kpp_tfm_ctx(tfm); tfm 152 drivers/crypto/atmel-ecc.c struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); tfm 153 drivers/crypto/atmel-ecc.c struct atmel_ecdh_ctx *ctx = kpp_tfm_ctx(tfm); tfm 180 drivers/crypto/atmel-ecc.c struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); tfm 181 drivers/crypto/atmel-ecc.c struct atmel_ecdh_ctx *ctx = kpp_tfm_ctx(tfm); tfm 260 drivers/crypto/atmel-ecc.c static int atmel_ecdh_init_tfm(struct crypto_kpp *tfm) tfm 262 drivers/crypto/atmel-ecc.c const char *alg = kpp_alg_name(tfm); tfm 264 drivers/crypto/atmel-ecc.c struct atmel_ecdh_ctx *ctx = kpp_tfm_ctx(tfm); tfm 279 drivers/crypto/atmel-ecc.c crypto_kpp_set_flags(fallback, crypto_kpp_get_flags(tfm)); tfm 285 drivers/crypto/atmel-ecc.c static void atmel_ecdh_exit_tfm(struct crypto_kpp *tfm) tfm 287 drivers/crypto/atmel-ecc.c struct atmel_ecdh_ctx *ctx = kpp_tfm_ctx(tfm); tfm 294 drivers/crypto/atmel-ecc.c static unsigned int atmel_ecdh_max_size(struct crypto_kpp *tfm) tfm 296 drivers/crypto/atmel-ecc.c struct atmel_ecdh_ctx *ctx = kpp_tfm_ctx(tfm); tfm 427 drivers/crypto/atmel-sha.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 428 drivers/crypto/atmel-sha.c struct atmel_sha_ctx *tctx = crypto_ahash_ctx(tfm); tfm 437 drivers/crypto/atmel-sha.c crypto_ahash_digestsize(tfm)); tfm 439 drivers/crypto/atmel-sha.c switch (crypto_ahash_digestsize(tfm)) { tfm 1082 drivers/crypto/atmel-sha.c ctx = crypto_tfm_ctx(async_req->tfm); tfm 1150 drivers/crypto/atmel-sha.c struct atmel_sha_ctx *tctx = crypto_tfm_ctx(req->base.tfm); tfm 1240 drivers/crypto/atmel-sha.c static int atmel_sha_cra_init(struct crypto_tfm *tfm) tfm 1242 drivers/crypto/atmel-sha.c struct atmel_sha_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1244 drivers/crypto/atmel-sha.c crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), tfm 1755 drivers/crypto/atmel-sha.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 1756 drivers/crypto/atmel-sha.c struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm); tfm 1816 drivers/crypto/atmel-sha.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 1817 drivers/crypto/atmel-sha.c struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm); tfm 1819 drivers/crypto/atmel-sha.c size_t ds = crypto_ahash_digestsize(tfm); tfm 1833 drivers/crypto/atmel-sha.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 1834 drivers/crypto/atmel-sha.c struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm); tfm 1852 drivers/crypto/atmel-sha.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 1853 drivers/crypto/atmel-sha.c struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm); tfm 1868 drivers/crypto/atmel-sha.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 1869 drivers/crypto/atmel-sha.c struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm); tfm 1916 drivers/crypto/atmel-sha.c static int atmel_sha_hmac_setkey(struct crypto_ahash *tfm, const u8 *key, tfm 1919 drivers/crypto/atmel-sha.c struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm); tfm 1939 drivers/crypto/atmel-sha.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 1940 drivers/crypto/atmel-sha.c struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm); tfm 1956 drivers/crypto/atmel-sha.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 1957 drivers/crypto/atmel-sha.c struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm); tfm 1959 drivers/crypto/atmel-sha.c size_t ds = crypto_ahash_digestsize(tfm); tfm 2015 drivers/crypto/atmel-sha.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 2016 drivers/crypto/atmel-sha.c struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm); tfm 2063 drivers/crypto/atmel-sha.c static int atmel_sha_hmac_cra_init(struct crypto_tfm *tfm) tfm 2065 drivers/crypto/atmel-sha.c struct atmel_sha_hmac_ctx *hmac = crypto_tfm_ctx(tfm); tfm 2067 drivers/crypto/atmel-sha.c crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), tfm 2075 drivers/crypto/atmel-sha.c static void atmel_sha_hmac_cra_exit(struct crypto_tfm *tfm) tfm 2077 drivers/crypto/atmel-sha.c struct atmel_sha_hmac_ctx *hmac = crypto_tfm_ctx(tfm); tfm 2219 drivers/crypto/atmel-sha.c struct crypto_ahash *tfm; tfm 2281 drivers/crypto/atmel-sha.c struct crypto_ahash *tfm; tfm 2311 drivers/crypto/atmel-sha.c tfm = crypto_alloc_ahash(name, 0, 0); tfm 2312 drivers/crypto/atmel-sha.c if (IS_ERR(tfm)) { tfm 2313 drivers/crypto/atmel-sha.c err = PTR_ERR(tfm); tfm 2316 drivers/crypto/atmel-sha.c tctx = crypto_ahash_ctx(tfm); tfm 2325 drivers/crypto/atmel-sha.c auth->tfm = tfm; tfm 2330 drivers/crypto/atmel-sha.c crypto_free_ahash(tfm); tfm 2339 drivers/crypto/atmel-sha.c crypto_free_ahash(auth->tfm); tfm 2348 drivers/crypto/atmel-sha.c struct crypto_ahash *tfm = auth->tfm; tfm 2351 drivers/crypto/atmel-sha.c crypto_ahash_clear_flags(tfm, CRYPTO_TFM_REQ_MASK); tfm 2352 drivers/crypto/atmel-sha.c crypto_ahash_set_flags(tfm, *flags & CRYPTO_TFM_REQ_MASK); tfm 2353 drivers/crypto/atmel-sha.c err = crypto_ahash_setkey(tfm, key, keylen); tfm 2354 drivers/crypto/atmel-sha.c *flags = crypto_ahash_get_flags(tfm); tfm 2367 drivers/crypto/atmel-sha.c struct crypto_ahash *tfm = auth->tfm; tfm 2368 drivers/crypto/atmel-sha.c struct atmel_sha_ctx *tctx = crypto_ahash_ctx(tfm); tfm 2384 drivers/crypto/atmel-sha.c ahash_request_set_tfm(req, tfm); tfm 2399 drivers/crypto/atmel-sha.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 2400 drivers/crypto/atmel-sha.c struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm); tfm 2422 drivers/crypto/atmel-sha.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 2423 drivers/crypto/atmel-sha.c struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm); tfm 398 drivers/crypto/atmel-tdes.c static int atmel_tdes_crypt_pdc(struct crypto_tfm *tfm, dma_addr_t dma_addr_in, tfm 401 drivers/crypto/atmel-tdes.c struct atmel_tdes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 434 drivers/crypto/atmel-tdes.c static int atmel_tdes_crypt_dma(struct crypto_tfm *tfm, dma_addr_t dma_addr_in, tfm 437 drivers/crypto/atmel-tdes.c struct atmel_tdes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 505 drivers/crypto/atmel-tdes.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm( tfm 562 drivers/crypto/atmel-tdes.c err = atmel_tdes_crypt_dma(tfm, addr_in, addr_out, count); tfm 564 drivers/crypto/atmel-tdes.c err = atmel_tdes_crypt_pdc(tfm, addr_in, addr_out, count); tfm 773 drivers/crypto/atmel-tdes.c static int atmel_des_setkey(struct crypto_ablkcipher *tfm, const u8 *key, tfm 776 drivers/crypto/atmel-tdes.c struct atmel_tdes_ctx *ctx = crypto_ablkcipher_ctx(tfm); tfm 779 drivers/crypto/atmel-tdes.c err = verify_ablkcipher_des_key(tfm, key); tfm 789 drivers/crypto/atmel-tdes.c static int atmel_tdes_setkey(struct crypto_ablkcipher *tfm, const u8 *key, tfm 792 drivers/crypto/atmel-tdes.c struct atmel_tdes_ctx *ctx = crypto_ablkcipher_ctx(tfm); tfm 795 drivers/crypto/atmel-tdes.c err = verify_ablkcipher_des3_key(tfm, key); tfm 877 drivers/crypto/atmel-tdes.c static int atmel_tdes_cra_init(struct crypto_tfm *tfm) tfm 879 drivers/crypto/atmel-tdes.c struct atmel_tdes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 882 drivers/crypto/atmel-tdes.c tfm->crt_ablkcipher.reqsize = sizeof(struct atmel_tdes_reqctx); tfm 1235 drivers/crypto/axis/artpec6_crypto.c static int artpec6_crypto_aead_init(struct crypto_aead *tfm) tfm 1237 drivers/crypto/axis/artpec6_crypto.c struct artpec6_cryptotfm_context *tfm_ctx = crypto_aead_ctx(tfm); tfm 1241 drivers/crypto/axis/artpec6_crypto.c crypto_aead_set_reqsize(tfm, tfm 1247 drivers/crypto/axis/artpec6_crypto.c static int artpec6_crypto_aead_set_key(struct crypto_aead *tfm, const u8 *key, tfm 1250 drivers/crypto/axis/artpec6_crypto.c struct artpec6_cryptotfm_context *ctx = crypto_tfm_ctx(&tfm->base); tfm 1253 drivers/crypto/axis/artpec6_crypto.c crypto_aead_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 1311 drivers/crypto/axis/artpec6_crypto.c struct artpec6_hashalg_context *ctx = crypto_tfm_ctx(areq->base.tfm); tfm 1535 drivers/crypto/axis/artpec6_crypto.c static int artpec6_crypto_aes_ecb_init(struct crypto_skcipher *tfm) tfm 1537 drivers/crypto/axis/artpec6_crypto.c struct artpec6_cryptotfm_context *ctx = crypto_skcipher_ctx(tfm); tfm 1539 drivers/crypto/axis/artpec6_crypto.c tfm->reqsize = sizeof(struct artpec6_crypto_request_context); tfm 1545 drivers/crypto/axis/artpec6_crypto.c static int artpec6_crypto_aes_ctr_init(struct crypto_skcipher *tfm) tfm 1547 drivers/crypto/axis/artpec6_crypto.c struct artpec6_cryptotfm_context *ctx = crypto_skcipher_ctx(tfm); tfm 1550 drivers/crypto/axis/artpec6_crypto.c crypto_alloc_sync_skcipher(crypto_tfm_alg_name(&tfm->base), tfm 1555 drivers/crypto/axis/artpec6_crypto.c tfm->reqsize = sizeof(struct artpec6_crypto_request_context); tfm 1561 drivers/crypto/axis/artpec6_crypto.c static int artpec6_crypto_aes_cbc_init(struct crypto_skcipher *tfm) tfm 1563 drivers/crypto/axis/artpec6_crypto.c struct artpec6_cryptotfm_context *ctx = crypto_skcipher_ctx(tfm); tfm 1565 drivers/crypto/axis/artpec6_crypto.c tfm->reqsize = sizeof(struct artpec6_crypto_request_context); tfm 1571 drivers/crypto/axis/artpec6_crypto.c static int artpec6_crypto_aes_xts_init(struct crypto_skcipher *tfm) tfm 1573 drivers/crypto/axis/artpec6_crypto.c struct artpec6_cryptotfm_context *ctx = crypto_skcipher_ctx(tfm); tfm 1575 drivers/crypto/axis/artpec6_crypto.c tfm->reqsize = sizeof(struct artpec6_crypto_request_context); tfm 1581 drivers/crypto/axis/artpec6_crypto.c static void artpec6_crypto_aes_exit(struct crypto_skcipher *tfm) tfm 1583 drivers/crypto/axis/artpec6_crypto.c struct artpec6_cryptotfm_context *ctx = crypto_skcipher_ctx(tfm); tfm 1588 drivers/crypto/axis/artpec6_crypto.c static void artpec6_crypto_aes_ctr_exit(struct crypto_skcipher *tfm) tfm 1590 drivers/crypto/axis/artpec6_crypto.c struct artpec6_cryptotfm_context *ctx = crypto_skcipher_ctx(tfm); tfm 1593 drivers/crypto/axis/artpec6_crypto.c artpec6_crypto_aes_exit(tfm); tfm 1837 drivers/crypto/axis/artpec6_crypto.c struct artpec6_cryptotfm_context *ctx = crypto_tfm_ctx(areq->base.tfm); tfm 2230 drivers/crypto/axis/artpec6_crypto.c artpec6_crypto_hash_set_key(struct crypto_ahash *tfm, tfm 2233 drivers/crypto/axis/artpec6_crypto.c struct artpec6_hashalg_context *tfm_ctx = crypto_tfm_ctx(&tfm->base); tfm 2245 drivers/crypto/axis/artpec6_crypto.c blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); tfm 2250 drivers/crypto/axis/artpec6_crypto.c hdesc->tfm = tfm_ctx->child_hash; tfm 2397 drivers/crypto/axis/artpec6_crypto.c static int artpec6_crypto_ahash_init_common(struct crypto_tfm *tfm, tfm 2400 drivers/crypto/axis/artpec6_crypto.c struct artpec6_hashalg_context *tfm_ctx = crypto_tfm_ctx(tfm); tfm 2402 drivers/crypto/axis/artpec6_crypto.c crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), tfm 2421 drivers/crypto/axis/artpec6_crypto.c static int artpec6_crypto_ahash_init(struct crypto_tfm *tfm) tfm 2423 drivers/crypto/axis/artpec6_crypto.c return artpec6_crypto_ahash_init_common(tfm, NULL); tfm 2426 drivers/crypto/axis/artpec6_crypto.c static int artpec6_crypto_ahash_init_hmac_sha256(struct crypto_tfm *tfm) tfm 2428 drivers/crypto/axis/artpec6_crypto.c return artpec6_crypto_ahash_init_common(tfm, "sha256"); tfm 2431 drivers/crypto/axis/artpec6_crypto.c static void artpec6_crypto_ahash_exit(struct crypto_tfm *tfm) tfm 2433 drivers/crypto/axis/artpec6_crypto.c struct artpec6_hashalg_context *tfm_ctx = crypto_tfm_ctx(tfm); tfm 695 drivers/crypto/bcm/cipher.c struct crypto_tfm *tfm = crypto_ahash_tfm(ahash); tfm 696 drivers/crypto/bcm/cipher.c unsigned int blocksize = crypto_tfm_alg_blocksize(tfm); tfm 1969 drivers/crypto/bcm/cipher.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 1970 drivers/crypto/bcm/cipher.c struct iproc_ctx_s *ctx = crypto_ahash_ctx(tfm); tfm 1994 drivers/crypto/bcm/cipher.c alg_name = crypto_tfm_alg_name(crypto_ahash_tfm(tfm)); tfm 2026 drivers/crypto/bcm/cipher.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 2027 drivers/crypto/bcm/cipher.c struct iproc_ctx_s *ctx = crypto_ahash_ctx(tfm); tfm 2040 drivers/crypto/bcm/cipher.c ctx->digestsize = crypto_ahash_digestsize(tfm); tfm 2082 drivers/crypto/bcm/cipher.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 2083 drivers/crypto/bcm/cipher.c struct iproc_ctx_s *ctx = crypto_ahash_ctx(tfm); tfm 2095 drivers/crypto/bcm/cipher.c alg_name = crypto_tfm_alg_name(crypto_ahash_tfm(tfm)); tfm 2110 drivers/crypto/bcm/cipher.c ctx->shash->tfm = hash; tfm 2155 drivers/crypto/bcm/cipher.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 2156 drivers/crypto/bcm/cipher.c struct iproc_ctx_s *ctx = crypto_ahash_ctx(tfm); tfm 2210 drivers/crypto/bcm/cipher.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 2211 drivers/crypto/bcm/cipher.c struct iproc_ctx_s *ctx = crypto_ahash_ctx(tfm); tfm 2223 drivers/crypto/bcm/cipher.c crypto_free_shash(ctx->shash->tfm); tfm 2249 drivers/crypto/bcm/cipher.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 2250 drivers/crypto/bcm/cipher.c struct iproc_ctx_s *ctx = crypto_ahash_ctx(tfm); tfm 2296 drivers/crypto/bcm/cipher.c crypto_free_shash(ctx->shash->tfm); tfm 2482 drivers/crypto/bcm/cipher.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 2483 drivers/crypto/bcm/cipher.c struct iproc_ctx_s *ctx = crypto_ahash_ctx(tfm); tfm 2485 drivers/crypto/bcm/cipher.c crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); tfm 2532 drivers/crypto/bcm/cipher.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 2533 drivers/crypto/bcm/cipher.c struct iproc_ctx_s *ctx = crypto_ahash_ctx(tfm); tfm 2535 drivers/crypto/bcm/cipher.c crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); tfm 2645 drivers/crypto/bcm/cipher.c areq->tfm = crypto_aead_tfm(aead); tfm 2656 drivers/crypto/bcm/cipher.c struct crypto_tfm *tfm = crypto_aead_tfm(aead); tfm 2658 drivers/crypto/bcm/cipher.c struct iproc_ctx_s *ctx = crypto_tfm_ctx(tfm); tfm 2666 drivers/crypto/bcm/cipher.c rctx->old_tfm = tfm; tfm 2824 drivers/crypto/bcm/cipher.c struct crypto_tfm *tfm = crypto_aead_tfm(cipher); tfm 2895 drivers/crypto/bcm/cipher.c tfm->crt_flags & CRYPTO_TFM_REQ_MASK; tfm 2899 drivers/crypto/bcm/cipher.c tfm->crt_flags &= ~CRYPTO_TFM_RES_MASK; tfm 2900 drivers/crypto/bcm/cipher.c tfm->crt_flags |= tfm 2928 drivers/crypto/bcm/cipher.c struct crypto_tfm *tfm = crypto_aead_tfm(cipher); tfm 2967 drivers/crypto/bcm/cipher.c tfm->crt_flags & CRYPTO_TFM_REQ_MASK; tfm 2972 drivers/crypto/bcm/cipher.c tfm->crt_flags &= ~CRYPTO_TFM_RES_MASK; tfm 2973 drivers/crypto/bcm/cipher.c tfm->crt_flags |= tfm 4258 drivers/crypto/bcm/cipher.c static int generic_cra_init(struct crypto_tfm *tfm, tfm 4262 drivers/crypto/bcm/cipher.c struct iproc_ctx_s *ctx = crypto_tfm_ctx(tfm); tfm 4263 drivers/crypto/bcm/cipher.c unsigned int blocksize = crypto_tfm_alg_blocksize(tfm); tfm 4285 drivers/crypto/bcm/cipher.c static int ablkcipher_cra_init(struct crypto_tfm *tfm) tfm 4287 drivers/crypto/bcm/cipher.c struct crypto_alg *alg = tfm->__crt_alg; tfm 4292 drivers/crypto/bcm/cipher.c tfm->crt_ablkcipher.reqsize = sizeof(struct iproc_reqctx_s); tfm 4295 drivers/crypto/bcm/cipher.c return generic_cra_init(tfm, cipher_alg); tfm 4298 drivers/crypto/bcm/cipher.c static int ahash_cra_init(struct crypto_tfm *tfm) tfm 4301 drivers/crypto/bcm/cipher.c struct crypto_alg *alg = tfm->__crt_alg; tfm 4307 drivers/crypto/bcm/cipher.c err = generic_cra_init(tfm, cipher_alg); tfm 4314 drivers/crypto/bcm/cipher.c crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), tfm 4322 drivers/crypto/bcm/cipher.c struct crypto_tfm *tfm = crypto_aead_tfm(aead); tfm 4323 drivers/crypto/bcm/cipher.c struct iproc_ctx_s *ctx = crypto_tfm_ctx(tfm); tfm 4324 drivers/crypto/bcm/cipher.c struct crypto_alg *alg = tfm->__crt_alg; tfm 4329 drivers/crypto/bcm/cipher.c int err = generic_cra_init(tfm, cipher_alg); tfm 4361 drivers/crypto/bcm/cipher.c static void generic_cra_exit(struct crypto_tfm *tfm) tfm 4368 drivers/crypto/bcm/cipher.c struct crypto_tfm *tfm = crypto_aead_tfm(aead); tfm 4369 drivers/crypto/bcm/cipher.c struct iproc_ctx_s *ctx = crypto_tfm_ctx(tfm); tfm 4371 drivers/crypto/bcm/cipher.c generic_cra_exit(tfm); tfm 233 drivers/crypto/bcm/util.c sdesc->shash.tfm = hash; tfm 3448 drivers/crypto/caam/caamalg.c static int caam_cra_init(struct crypto_skcipher *tfm) tfm 3450 drivers/crypto/caam/caamalg.c struct skcipher_alg *alg = crypto_skcipher_alg(tfm); tfm 3454 drivers/crypto/caam/caamalg.c return caam_init_common(crypto_skcipher_ctx(tfm), &caam_alg->caam, tfm 3458 drivers/crypto/caam/caamalg.c static int caam_aead_init(struct crypto_aead *tfm) tfm 3460 drivers/crypto/caam/caamalg.c struct aead_alg *alg = crypto_aead_alg(tfm); tfm 3463 drivers/crypto/caam/caamalg.c struct caam_ctx *ctx = crypto_aead_ctx(tfm); tfm 3476 drivers/crypto/caam/caamalg.c static void caam_cra_exit(struct crypto_skcipher *tfm) tfm 3478 drivers/crypto/caam/caamalg.c caam_exit_common(crypto_skcipher_ctx(tfm)); tfm 3481 drivers/crypto/caam/caamalg.c static void caam_aead_exit(struct crypto_aead *tfm) tfm 3483 drivers/crypto/caam/caamalg.c caam_exit_common(crypto_aead_ctx(tfm)); tfm 2460 drivers/crypto/caam/caamalg_qi.c static int caam_cra_init(struct crypto_skcipher *tfm) tfm 2462 drivers/crypto/caam/caamalg_qi.c struct skcipher_alg *alg = crypto_skcipher_alg(tfm); tfm 2466 drivers/crypto/caam/caamalg_qi.c return caam_init_common(crypto_skcipher_ctx(tfm), &caam_alg->caam, tfm 2470 drivers/crypto/caam/caamalg_qi.c static int caam_aead_init(struct crypto_aead *tfm) tfm 2472 drivers/crypto/caam/caamalg_qi.c struct aead_alg *alg = crypto_aead_alg(tfm); tfm 2475 drivers/crypto/caam/caamalg_qi.c struct caam_ctx *ctx = crypto_aead_ctx(tfm); tfm 2491 drivers/crypto/caam/caamalg_qi.c static void caam_cra_exit(struct crypto_skcipher *tfm) tfm 2493 drivers/crypto/caam/caamalg_qi.c caam_exit_common(crypto_skcipher_ctx(tfm)); tfm 2496 drivers/crypto/caam/caamalg_qi.c static void caam_aead_exit(struct crypto_aead *tfm) tfm 2498 drivers/crypto/caam/caamalg_qi.c caam_exit_common(crypto_aead_ctx(tfm)); tfm 128 drivers/crypto/caam/caamalg_qi2.c switch (crypto_tfm_alg_type(areq->tfm)) { tfm 1561 drivers/crypto/caam/caamalg_qi2.c static int caam_cra_init_skcipher(struct crypto_skcipher *tfm) tfm 1563 drivers/crypto/caam/caamalg_qi2.c struct skcipher_alg *alg = crypto_skcipher_alg(tfm); tfm 1567 drivers/crypto/caam/caamalg_qi2.c crypto_skcipher_set_reqsize(tfm, sizeof(struct caam_request)); tfm 1568 drivers/crypto/caam/caamalg_qi2.c return caam_cra_init(crypto_skcipher_ctx(tfm), &caam_alg->caam, false); tfm 1571 drivers/crypto/caam/caamalg_qi2.c static int caam_cra_init_aead(struct crypto_aead *tfm) tfm 1573 drivers/crypto/caam/caamalg_qi2.c struct aead_alg *alg = crypto_aead_alg(tfm); tfm 1577 drivers/crypto/caam/caamalg_qi2.c crypto_aead_set_reqsize(tfm, sizeof(struct caam_request)); tfm 1578 drivers/crypto/caam/caamalg_qi2.c return caam_cra_init(crypto_aead_ctx(tfm), &caam_alg->caam, tfm 1589 drivers/crypto/caam/caamalg_qi2.c static void caam_cra_exit(struct crypto_skcipher *tfm) tfm 1591 drivers/crypto/caam/caamalg_qi2.c caam_exit_common(crypto_skcipher_ctx(tfm)); tfm 1594 drivers/crypto/caam/caamalg_qi2.c static void caam_cra_exit_aead(struct crypto_aead *tfm) tfm 1596 drivers/crypto/caam/caamalg_qi2.c caam_exit_common(crypto_aead_ctx(tfm)); tfm 4509 drivers/crypto/caam/caamalg_qi2.c static int caam_hash_cra_init(struct crypto_tfm *tfm) tfm 4511 drivers/crypto/caam/caamalg_qi2.c struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); tfm 4512 drivers/crypto/caam/caamalg_qi2.c struct crypto_alg *base = tfm->__crt_alg; tfm 4519 drivers/crypto/caam/caamalg_qi2.c struct caam_hash_ctx *ctx = crypto_tfm_ctx(tfm); tfm 4566 drivers/crypto/caam/caamalg_qi2.c crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), tfm 4572 drivers/crypto/caam/caamalg_qi2.c static void caam_hash_cra_exit(struct crypto_tfm *tfm) tfm 4574 drivers/crypto/caam/caamalg_qi2.c struct caam_hash_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1806 drivers/crypto/caam/caamhash.c static int caam_hash_cra_init(struct crypto_tfm *tfm) tfm 1808 drivers/crypto/caam/caamhash.c struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); tfm 1809 drivers/crypto/caam/caamhash.c struct crypto_alg *base = tfm->__crt_alg; tfm 1816 drivers/crypto/caam/caamhash.c struct caam_hash_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1900 drivers/crypto/caam/caamhash.c crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), tfm 1910 drivers/crypto/caam/caamhash.c static void caam_hash_cra_exit(struct crypto_tfm *tfm) tfm 1912 drivers/crypto/caam/caamhash.c struct caam_hash_ctx *ctx = crypto_tfm_ctx(tfm); tfm 59 drivers/crypto/caam/caampkc.c struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); tfm 60 drivers/crypto/caam/caampkc.c struct caam_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 71 drivers/crypto/caam/caampkc.c struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); tfm 72 drivers/crypto/caam/caampkc.c struct caam_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 83 drivers/crypto/caam/caampkc.c struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); tfm 84 drivers/crypto/caam/caampkc.c struct caam_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 100 drivers/crypto/caam/caampkc.c struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); tfm 101 drivers/crypto/caam/caampkc.c struct caam_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 246 drivers/crypto/caam/caampkc.c struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); tfm 247 drivers/crypto/caam/caampkc.c struct caam_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 365 drivers/crypto/caam/caampkc.c struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); tfm 367 drivers/crypto/caam/caampkc.c struct caam_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 411 drivers/crypto/caam/caampkc.c struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); tfm 412 drivers/crypto/caam/caampkc.c struct caam_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 457 drivers/crypto/caam/caampkc.c struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); tfm 458 drivers/crypto/caam/caampkc.c struct caam_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 534 drivers/crypto/caam/caampkc.c struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); tfm 535 drivers/crypto/caam/caampkc.c struct caam_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 626 drivers/crypto/caam/caampkc.c struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); tfm 627 drivers/crypto/caam/caampkc.c struct caam_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 669 drivers/crypto/caam/caampkc.c struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); tfm 670 drivers/crypto/caam/caampkc.c struct caam_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 702 drivers/crypto/caam/caampkc.c struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); tfm 703 drivers/crypto/caam/caampkc.c struct caam_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 735 drivers/crypto/caam/caampkc.c struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); tfm 736 drivers/crypto/caam/caampkc.c struct caam_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 768 drivers/crypto/caam/caampkc.c struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); tfm 769 drivers/crypto/caam/caampkc.c struct caam_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 869 drivers/crypto/caam/caampkc.c static int caam_rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, tfm 872 drivers/crypto/caam/caampkc.c struct caam_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 971 drivers/crypto/caam/caampkc.c static int caam_rsa_set_priv_key(struct crypto_akcipher *tfm, const void *key, tfm 974 drivers/crypto/caam/caampkc.c struct caam_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 1023 drivers/crypto/caam/caampkc.c static unsigned int caam_rsa_max_size(struct crypto_akcipher *tfm) tfm 1025 drivers/crypto/caam/caampkc.c struct caam_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 1031 drivers/crypto/caam/caampkc.c static int caam_rsa_init_tfm(struct crypto_akcipher *tfm) tfm 1033 drivers/crypto/caam/caampkc.c struct caam_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 1055 drivers/crypto/caam/caampkc.c static void caam_rsa_exit_tfm(struct crypto_akcipher *tfm) tfm 1057 drivers/crypto/caam/caampkc.c struct caam_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 98 drivers/crypto/cavium/cpt/cptvf_algs.c struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); tfm 99 drivers/crypto/cavium/cpt/cptvf_algs.c struct cvm_enc_ctx *ctx = crypto_ablkcipher_ctx(tfm); tfm 103 drivers/crypto/cavium/cpt/cptvf_algs.c u32 enc_iv_len = crypto_ablkcipher_ivsize(tfm); tfm 194 drivers/crypto/cavium/cpt/cptvf_algs.c struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); tfm 196 drivers/crypto/cavium/cpt/cptvf_algs.c u32 enc_iv_len = crypto_ablkcipher_ivsize(tfm); tfm 233 drivers/crypto/cavium/cpt/cptvf_algs.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); tfm 234 drivers/crypto/cavium/cpt/cptvf_algs.c struct cvm_enc_ctx *ctx = crypto_tfm_ctx(tfm); tfm 239 drivers/crypto/cavium/cpt/cptvf_algs.c err = xts_check_key(tfm, key, keylen); tfm 290 drivers/crypto/cavium/cpt/cptvf_algs.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); tfm 291 drivers/crypto/cavium/cpt/cptvf_algs.c struct cvm_enc_ctx *ctx = crypto_tfm_ctx(tfm); tfm 336 drivers/crypto/cavium/cpt/cptvf_algs.c static int cvm_enc_dec_init(struct crypto_tfm *tfm) tfm 338 drivers/crypto/cavium/cpt/cptvf_algs.c tfm->crt_ablkcipher.reqsize = sizeof(struct cvm_req_ctx); tfm 50 drivers/crypto/cavium/nitrox/nitrox_skcipher.c static int nitrox_skcipher_init(struct crypto_skcipher *tfm) tfm 52 drivers/crypto/cavium/nitrox/nitrox_skcipher.c struct nitrox_crypto_ctx *nctx = crypto_skcipher_ctx(tfm); tfm 69 drivers/crypto/cavium/nitrox/nitrox_skcipher.c crypto_skcipher_set_reqsize(tfm, crypto_skcipher_reqsize(tfm) + tfm 74 drivers/crypto/cavium/nitrox/nitrox_skcipher.c static void nitrox_skcipher_exit(struct crypto_skcipher *tfm) tfm 76 drivers/crypto/cavium/nitrox/nitrox_skcipher.c struct nitrox_crypto_ctx *nctx = crypto_skcipher_ctx(tfm); tfm 96 drivers/crypto/cavium/nitrox/nitrox_skcipher.c struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher); tfm 97 drivers/crypto/cavium/nitrox/nitrox_skcipher.c struct nitrox_crypto_ctx *nctx = crypto_tfm_ctx(tfm); tfm 103 drivers/crypto/cavium/nitrox/nitrox_skcipher.c name = crypto_tfm_alg_name(tfm); tfm 277 drivers/crypto/cavium/nitrox/nitrox_skcipher.c struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher); tfm 278 drivers/crypto/cavium/nitrox/nitrox_skcipher.c struct nitrox_crypto_ctx *nctx = crypto_tfm_ctx(tfm); tfm 282 drivers/crypto/cavium/nitrox/nitrox_skcipher.c ret = xts_check_key(tfm, key, keylen); tfm 304 drivers/crypto/cavium/nitrox/nitrox_skcipher.c struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher); tfm 305 drivers/crypto/cavium/nitrox/nitrox_skcipher.c struct nitrox_crypto_ctx *nctx = crypto_tfm_ctx(tfm); tfm 199 drivers/crypto/cavium/zip/zip_crypto.c int zip_alloc_comp_ctx_deflate(struct crypto_tfm *tfm) tfm 202 drivers/crypto/cavium/zip/zip_crypto.c struct zip_kernel_ctx *zip_ctx = crypto_tfm_ctx(tfm); tfm 209 drivers/crypto/cavium/zip/zip_crypto.c int zip_alloc_comp_ctx_lzs(struct crypto_tfm *tfm) tfm 212 drivers/crypto/cavium/zip/zip_crypto.c struct zip_kernel_ctx *zip_ctx = crypto_tfm_ctx(tfm); tfm 219 drivers/crypto/cavium/zip/zip_crypto.c void zip_free_comp_ctx(struct crypto_tfm *tfm) tfm 221 drivers/crypto/cavium/zip/zip_crypto.c struct zip_kernel_ctx *zip_ctx = crypto_tfm_ctx(tfm); tfm 226 drivers/crypto/cavium/zip/zip_crypto.c int zip_comp_compress(struct crypto_tfm *tfm, tfm 231 drivers/crypto/cavium/zip/zip_crypto.c struct zip_kernel_ctx *zip_ctx = crypto_tfm_ctx(tfm); tfm 238 drivers/crypto/cavium/zip/zip_crypto.c int zip_comp_decompress(struct crypto_tfm *tfm, tfm 243 drivers/crypto/cavium/zip/zip_crypto.c struct zip_kernel_ctx *zip_ctx = crypto_tfm_ctx(tfm); tfm 251 drivers/crypto/cavium/zip/zip_crypto.c void *zip_alloc_scomp_ctx_deflate(struct crypto_scomp *tfm) tfm 270 drivers/crypto/cavium/zip/zip_crypto.c void *zip_alloc_scomp_ctx_lzs(struct crypto_scomp *tfm) tfm 289 drivers/crypto/cavium/zip/zip_crypto.c void zip_free_scomp_ctx(struct crypto_scomp *tfm, void *ctx) tfm 297 drivers/crypto/cavium/zip/zip_crypto.c int zip_scomp_compress(struct crypto_scomp *tfm, tfm 309 drivers/crypto/cavium/zip/zip_crypto.c int zip_scomp_decompress(struct crypto_scomp *tfm, tfm 60 drivers/crypto/cavium/zip/zip_crypto.h int zip_alloc_comp_ctx_deflate(struct crypto_tfm *tfm); tfm 61 drivers/crypto/cavium/zip/zip_crypto.h int zip_alloc_comp_ctx_lzs(struct crypto_tfm *tfm); tfm 62 drivers/crypto/cavium/zip/zip_crypto.h void zip_free_comp_ctx(struct crypto_tfm *tfm); tfm 63 drivers/crypto/cavium/zip/zip_crypto.h int zip_comp_compress(struct crypto_tfm *tfm, tfm 66 drivers/crypto/cavium/zip/zip_crypto.h int zip_comp_decompress(struct crypto_tfm *tfm, tfm 70 drivers/crypto/cavium/zip/zip_crypto.h void *zip_alloc_scomp_ctx_deflate(struct crypto_scomp *tfm); tfm 71 drivers/crypto/cavium/zip/zip_crypto.h void *zip_alloc_scomp_ctx_lzs(struct crypto_scomp *tfm); tfm 72 drivers/crypto/cavium/zip/zip_crypto.h void zip_free_scomp_ctx(struct crypto_scomp *tfm, void *zip_ctx); tfm 73 drivers/crypto/cavium/zip/zip_crypto.h int zip_scomp_compress(struct crypto_scomp *tfm, tfm 76 drivers/crypto/cavium/zip/zip_crypto.h int zip_scomp_decompress(struct crypto_scomp *tfm, tfm 27 drivers/crypto/ccp/ccp-crypto-aes-cmac.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 29 drivers/crypto/ccp/ccp-crypto-aes-cmac.c unsigned int digest_size = crypto_ahash_digestsize(tfm); tfm 58 drivers/crypto/ccp/ccp-crypto-aes-cmac.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 59 drivers/crypto/ccp/ccp-crypto-aes-cmac.c struct ccp_ctx *ctx = crypto_ahash_ctx(tfm); tfm 63 drivers/crypto/ccp/ccp-crypto-aes-cmac.c crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); tfm 256 drivers/crypto/ccp/ccp-crypto-aes-cmac.c static int ccp_aes_cmac_setkey(struct crypto_ahash *tfm, const u8 *key, tfm 259 drivers/crypto/ccp/ccp-crypto-aes-cmac.c struct ccp_ctx *ctx = crypto_tfm_ctx(crypto_ahash_tfm(tfm)); tfm 261 drivers/crypto/ccp/ccp-crypto-aes-cmac.c ccp_crypto_ahash_alg(crypto_ahash_tfm(tfm)); tfm 279 drivers/crypto/ccp/ccp-crypto-aes-cmac.c crypto_ahash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 336 drivers/crypto/ccp/ccp-crypto-aes-cmac.c static int ccp_aes_cmac_cra_init(struct crypto_tfm *tfm) tfm 338 drivers/crypto/ccp/ccp-crypto-aes-cmac.c struct ccp_ctx *ctx = crypto_tfm_ctx(tfm); tfm 339 drivers/crypto/ccp/ccp-crypto-aes-cmac.c struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); tfm 29 drivers/crypto/ccp/ccp-crypto-aes-galois.c static int ccp_aes_gcm_setkey(struct crypto_aead *tfm, const u8 *key, tfm 32 drivers/crypto/ccp/ccp-crypto-aes-galois.c struct ccp_ctx *ctx = crypto_aead_ctx(tfm); tfm 45 drivers/crypto/ccp/ccp-crypto-aes-galois.c crypto_aead_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 58 drivers/crypto/ccp/ccp-crypto-aes-galois.c static int ccp_aes_gcm_setauthsize(struct crypto_aead *tfm, tfm 79 drivers/crypto/ccp/ccp-crypto-aes-galois.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 80 drivers/crypto/ccp/ccp-crypto-aes-galois.c struct ccp_ctx *ctx = crypto_aead_ctx(tfm); tfm 120 drivers/crypto/ccp/ccp-crypto-aes-galois.c rctx->cmd.u.aes.authsize = crypto_aead_authsize(tfm); tfm 150 drivers/crypto/ccp/ccp-crypto-aes-galois.c static int ccp_aes_gcm_cra_init(struct crypto_aead *tfm) tfm 152 drivers/crypto/ccp/ccp-crypto-aes-galois.c struct ccp_ctx *ctx = crypto_aead_ctx(tfm); tfm 157 drivers/crypto/ccp/ccp-crypto-aes-galois.c crypto_aead_set_reqsize(tfm, sizeof(struct ccp_aes_req_ctx)); tfm 162 drivers/crypto/ccp/ccp-crypto-aes-galois.c static void ccp_aes_gcm_cra_exit(struct crypto_tfm *tfm) tfm 75 drivers/crypto/ccp/ccp-crypto-aes-xts.c static int ccp_aes_xts_setkey(struct crypto_ablkcipher *tfm, const u8 *key, tfm 78 drivers/crypto/ccp/ccp-crypto-aes-xts.c struct crypto_tfm *xfm = crypto_ablkcipher_tfm(tfm); tfm 108 drivers/crypto/ccp/ccp-crypto-aes-xts.c struct ccp_ctx *ctx = crypto_tfm_ctx(req->base.tfm); tfm 198 drivers/crypto/ccp/ccp-crypto-aes-xts.c static int ccp_aes_xts_cra_init(struct crypto_tfm *tfm) tfm 200 drivers/crypto/ccp/ccp-crypto-aes-xts.c struct ccp_ctx *ctx = crypto_tfm_ctx(tfm); tfm 215 drivers/crypto/ccp/ccp-crypto-aes-xts.c tfm->crt_ablkcipher.reqsize = sizeof(struct ccp_aes_req_ctx); tfm 220 drivers/crypto/ccp/ccp-crypto-aes-xts.c static void ccp_aes_xts_cra_exit(struct crypto_tfm *tfm) tfm 222 drivers/crypto/ccp/ccp-crypto-aes-xts.c struct ccp_ctx *ctx = crypto_tfm_ctx(tfm); tfm 25 drivers/crypto/ccp/ccp-crypto-aes.c struct ccp_ctx *ctx = crypto_tfm_ctx(req->base.tfm); tfm 37 drivers/crypto/ccp/ccp-crypto-aes.c static int ccp_aes_setkey(struct crypto_ablkcipher *tfm, const u8 *key, tfm 40 drivers/crypto/ccp/ccp-crypto-aes.c struct ccp_ctx *ctx = crypto_tfm_ctx(crypto_ablkcipher_tfm(tfm)); tfm 42 drivers/crypto/ccp/ccp-crypto-aes.c ccp_crypto_ablkcipher_alg(crypto_ablkcipher_tfm(tfm)); tfm 55 drivers/crypto/ccp/ccp-crypto-aes.c crypto_ablkcipher_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 69 drivers/crypto/ccp/ccp-crypto-aes.c struct ccp_ctx *ctx = crypto_tfm_ctx(req->base.tfm); tfm 123 drivers/crypto/ccp/ccp-crypto-aes.c static int ccp_aes_cra_init(struct crypto_tfm *tfm) tfm 125 drivers/crypto/ccp/ccp-crypto-aes.c struct ccp_ctx *ctx = crypto_tfm_ctx(tfm); tfm 130 drivers/crypto/ccp/ccp-crypto-aes.c tfm->crt_ablkcipher.reqsize = sizeof(struct ccp_aes_req_ctx); tfm 135 drivers/crypto/ccp/ccp-crypto-aes.c static void ccp_aes_cra_exit(struct crypto_tfm *tfm) tfm 151 drivers/crypto/ccp/ccp-crypto-aes.c static int ccp_aes_rfc3686_setkey(struct crypto_ablkcipher *tfm, const u8 *key, tfm 154 drivers/crypto/ccp/ccp-crypto-aes.c struct ccp_ctx *ctx = crypto_tfm_ctx(crypto_ablkcipher_tfm(tfm)); tfm 162 drivers/crypto/ccp/ccp-crypto-aes.c return ccp_aes_setkey(tfm, key, key_len); tfm 167 drivers/crypto/ccp/ccp-crypto-aes.c struct ccp_ctx *ctx = crypto_tfm_ctx(req->base.tfm); tfm 198 drivers/crypto/ccp/ccp-crypto-aes.c static int ccp_aes_rfc3686_cra_init(struct crypto_tfm *tfm) tfm 200 drivers/crypto/ccp/ccp-crypto-aes.c struct ccp_ctx *ctx = crypto_tfm_ctx(tfm); tfm 205 drivers/crypto/ccp/ccp-crypto-aes.c tfm->crt_ablkcipher.reqsize = sizeof(struct ccp_aes_req_ctx); tfm 210 drivers/crypto/ccp/ccp-crypto-aes.c static void ccp_aes_rfc3686_cra_exit(struct crypto_tfm *tfm) tfm 24 drivers/crypto/ccp/ccp-crypto-des3.c struct ccp_ctx *ctx = crypto_tfm_ctx(req->base.tfm); tfm 36 drivers/crypto/ccp/ccp-crypto-des3.c static int ccp_des3_setkey(struct crypto_ablkcipher *tfm, const u8 *key, tfm 39 drivers/crypto/ccp/ccp-crypto-des3.c struct ccp_ctx *ctx = crypto_tfm_ctx(crypto_ablkcipher_tfm(tfm)); tfm 41 drivers/crypto/ccp/ccp-crypto-des3.c ccp_crypto_ablkcipher_alg(crypto_ablkcipher_tfm(tfm)); tfm 44 drivers/crypto/ccp/ccp-crypto-des3.c err = verify_ablkcipher_des3_key(tfm, key); tfm 63 drivers/crypto/ccp/ccp-crypto-des3.c struct ccp_ctx *ctx = crypto_tfm_ctx(req->base.tfm); tfm 118 drivers/crypto/ccp/ccp-crypto-des3.c static int ccp_des3_cra_init(struct crypto_tfm *tfm) tfm 120 drivers/crypto/ccp/ccp-crypto-des3.c struct ccp_ctx *ctx = crypto_tfm_ctx(tfm); tfm 125 drivers/crypto/ccp/ccp-crypto-des3.c tfm->crt_ablkcipher.reqsize = sizeof(struct ccp_des3_req_ctx); tfm 130 drivers/crypto/ccp/ccp-crypto-des3.c static void ccp_des3_cra_exit(struct crypto_tfm *tfm) tfm 75 drivers/crypto/ccp/ccp-crypto-main.c struct crypto_tfm *tfm; tfm 111 drivers/crypto/ccp/ccp-crypto-main.c if (crypto_cmd->tfm != tmp->tfm) tfm 149 drivers/crypto/ccp/ccp-crypto-main.c struct ccp_ctx *ctx = crypto_tfm_ctx(req->tfm); tfm 193 drivers/crypto/ccp/ccp-crypto-main.c ctx = crypto_tfm_ctx(held->req->tfm); tfm 233 drivers/crypto/ccp/ccp-crypto-main.c if (crypto_cmd->tfm != tmp->tfm) tfm 293 drivers/crypto/ccp/ccp-crypto-main.c crypto_cmd->tfm = req->tfm; tfm 57 drivers/crypto/ccp/ccp-crypto-rsa.c static unsigned int ccp_rsa_maxsize(struct crypto_akcipher *tfm) tfm 59 drivers/crypto/ccp/ccp-crypto-rsa.c struct ccp_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 66 drivers/crypto/ccp/ccp-crypto-rsa.c struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); tfm 67 drivers/crypto/ccp/ccp-crypto-rsa.c struct ccp_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 126 drivers/crypto/ccp/ccp-crypto-rsa.c static int ccp_rsa_setkey(struct crypto_akcipher *tfm, const void *key, tfm 129 drivers/crypto/ccp/ccp-crypto-rsa.c struct ccp_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 181 drivers/crypto/ccp/ccp-crypto-rsa.c static int ccp_rsa_setprivkey(struct crypto_akcipher *tfm, const void *key, tfm 184 drivers/crypto/ccp/ccp-crypto-rsa.c return ccp_rsa_setkey(tfm, key, keylen, true); tfm 187 drivers/crypto/ccp/ccp-crypto-rsa.c static int ccp_rsa_setpubkey(struct crypto_akcipher *tfm, const void *key, tfm 190 drivers/crypto/ccp/ccp-crypto-rsa.c return ccp_rsa_setkey(tfm, key, keylen, false); tfm 193 drivers/crypto/ccp/ccp-crypto-rsa.c static int ccp_rsa_init_tfm(struct crypto_akcipher *tfm) tfm 195 drivers/crypto/ccp/ccp-crypto-rsa.c struct ccp_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 197 drivers/crypto/ccp/ccp-crypto-rsa.c akcipher_set_reqsize(tfm, sizeof(struct ccp_rsa_req_ctx)); tfm 203 drivers/crypto/ccp/ccp-crypto-rsa.c static void ccp_rsa_exit_tfm(struct crypto_akcipher *tfm) tfm 205 drivers/crypto/ccp/ccp-crypto-rsa.c struct ccp_ctx *ctx = crypto_tfm_ctx(&tfm->base); tfm 28 drivers/crypto/ccp/ccp-crypto-sha.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 30 drivers/crypto/ccp/ccp-crypto-sha.c unsigned int digest_size = crypto_ahash_digestsize(tfm); tfm 59 drivers/crypto/ccp/ccp-crypto-sha.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 60 drivers/crypto/ccp/ccp-crypto-sha.c struct ccp_ctx *ctx = crypto_ahash_ctx(tfm); tfm 64 drivers/crypto/ccp/ccp-crypto-sha.c crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); tfm 182 drivers/crypto/ccp/ccp-crypto-sha.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 183 drivers/crypto/ccp/ccp-crypto-sha.c struct ccp_ctx *ctx = crypto_ahash_ctx(tfm); tfm 186 drivers/crypto/ccp/ccp-crypto-sha.c ccp_crypto_ahash_alg(crypto_ahash_tfm(tfm)); tfm 188 drivers/crypto/ccp/ccp-crypto-sha.c crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); tfm 270 drivers/crypto/ccp/ccp-crypto-sha.c static int ccp_sha_setkey(struct crypto_ahash *tfm, const u8 *key, tfm 273 drivers/crypto/ccp/ccp-crypto-sha.c struct ccp_ctx *ctx = crypto_tfm_ctx(crypto_ahash_tfm(tfm)); tfm 292 drivers/crypto/ccp/ccp-crypto-sha.c sdesc->tfm = shash; tfm 297 drivers/crypto/ccp/ccp-crypto-sha.c crypto_ahash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 319 drivers/crypto/ccp/ccp-crypto-sha.c static int ccp_sha_cra_init(struct crypto_tfm *tfm) tfm 321 drivers/crypto/ccp/ccp-crypto-sha.c struct ccp_ctx *ctx = crypto_tfm_ctx(tfm); tfm 322 drivers/crypto/ccp/ccp-crypto-sha.c struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); tfm 332 drivers/crypto/ccp/ccp-crypto-sha.c static void ccp_sha_cra_exit(struct crypto_tfm *tfm) tfm 336 drivers/crypto/ccp/ccp-crypto-sha.c static int ccp_hmac_sha_cra_init(struct crypto_tfm *tfm) tfm 338 drivers/crypto/ccp/ccp-crypto-sha.c struct ccp_ctx *ctx = crypto_tfm_ctx(tfm); tfm 339 drivers/crypto/ccp/ccp-crypto-sha.c struct ccp_crypto_ahash_alg *alg = ccp_crypto_ahash_alg(tfm); tfm 351 drivers/crypto/ccp/ccp-crypto-sha.c return ccp_sha_cra_init(tfm); tfm 354 drivers/crypto/ccp/ccp-crypto-sha.c static void ccp_hmac_sha_cra_exit(struct crypto_tfm *tfm) tfm 356 drivers/crypto/ccp/ccp-crypto-sha.c struct ccp_ctx *ctx = crypto_tfm_ctx(tfm); tfm 361 drivers/crypto/ccp/ccp-crypto-sha.c ccp_sha_cra_exit(tfm); tfm 70 drivers/crypto/ccp/ccp-crypto.h ccp_crypto_ablkcipher_alg(struct crypto_tfm *tfm) tfm 72 drivers/crypto/ccp/ccp-crypto.h struct crypto_alg *alg = tfm->__crt_alg; tfm 78 drivers/crypto/ccp/ccp-crypto.h ccp_crypto_ahash_alg(struct crypto_tfm *tfm) tfm 80 drivers/crypto/ccp/ccp-crypto.h struct crypto_alg *alg = tfm->__crt_alg; tfm 68 drivers/crypto/ccree/cc_aead.c static void cc_aead_exit(struct crypto_aead *tfm) tfm 70 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 73 drivers/crypto/ccree/cc_aead.c dev_dbg(dev, "Clearing context @%p for %s\n", crypto_aead_ctx(tfm), tfm 74 drivers/crypto/ccree/cc_aead.c crypto_tfm_alg_name(&tfm->base)); tfm 122 drivers/crypto/ccree/cc_aead.c static unsigned int cc_get_aead_hash_len(struct crypto_aead *tfm) tfm 124 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 129 drivers/crypto/ccree/cc_aead.c static int cc_aead_init(struct crypto_aead *tfm) tfm 131 drivers/crypto/ccree/cc_aead.c struct aead_alg *alg = crypto_aead_alg(tfm); tfm 132 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 138 drivers/crypto/ccree/cc_aead.c crypto_tfm_alg_name(&tfm->base)); tfm 145 drivers/crypto/ccree/cc_aead.c crypto_aead_set_reqsize(tfm, sizeof(struct aead_req_ctx)); tfm 203 drivers/crypto/ccree/cc_aead.c ctx->hash_len = cc_get_aead_hash_len(tfm); tfm 208 drivers/crypto/ccree/cc_aead.c cc_aead_exit(tfm); tfm 216 drivers/crypto/ccree/cc_aead.c struct crypto_aead *tfm = crypto_aead_reqtfm(cc_req); tfm 217 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 413 drivers/crypto/ccree/cc_aead.c static int cc_get_plain_hmac_key(struct crypto_aead *tfm, const u8 *authkey, tfm 417 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 543 drivers/crypto/ccree/cc_aead.c static int cc_aead_setkey(struct crypto_aead *tfm, const u8 *key, tfm 546 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 555 drivers/crypto/ccree/cc_aead.c ctx, crypto_tfm_alg_name(crypto_aead_tfm(tfm)), key, keylen); tfm 605 drivers/crypto/ccree/cc_aead.c rc = cc_get_plain_hmac_key(tfm, authkey, ctx->auth_keylen); tfm 642 drivers/crypto/ccree/cc_aead.c crypto_aead_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 665 drivers/crypto/ccree/cc_aead.c static int cc_rfc4309_ccm_setkey(struct crypto_aead *tfm, const u8 *key, tfm 668 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 676 drivers/crypto/ccree/cc_aead.c return cc_aead_setkey(tfm, key, keylen); tfm 734 drivers/crypto/ccree/cc_aead.c struct crypto_aead *tfm = crypto_aead_reqtfm(areq); tfm 735 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 778 drivers/crypto/ccree/cc_aead.c struct crypto_aead *tfm = crypto_aead_reqtfm(areq); tfm 779 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 842 drivers/crypto/ccree/cc_aead.c struct crypto_aead *tfm = crypto_aead_reqtfm(areq); tfm 843 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 884 drivers/crypto/ccree/cc_aead.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 885 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 934 drivers/crypto/ccree/cc_aead.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 935 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 1001 drivers/crypto/ccree/cc_aead.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 1002 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 1034 drivers/crypto/ccree/cc_aead.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 1035 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 1110 drivers/crypto/ccree/cc_aead.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 1111 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 1172 drivers/crypto/ccree/cc_aead.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 1173 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 1223 drivers/crypto/ccree/cc_aead.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 1224 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 1276 drivers/crypto/ccree/cc_aead.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 1277 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 1422 drivers/crypto/ccree/cc_aead.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 1423 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 1543 drivers/crypto/ccree/cc_aead.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 1544 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 1602 drivers/crypto/ccree/cc_aead.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 1603 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 1627 drivers/crypto/ccree/cc_aead.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 1628 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 1705 drivers/crypto/ccree/cc_aead.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 1706 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 1742 drivers/crypto/ccree/cc_aead.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 1743 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 1842 drivers/crypto/ccree/cc_aead.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 1843 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 1892 drivers/crypto/ccree/cc_aead.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 1893 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 1910 drivers/crypto/ccree/cc_aead.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 1911 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 1927 drivers/crypto/ccree/cc_aead.c crypto_aead_set_flags(tfm, CRYPTO_TFM_RES_BAD_BLOCK_LEN); tfm 1962 drivers/crypto/ccree/cc_aead.c crypto_aead_ivsize(tfm)); tfm 1966 drivers/crypto/ccree/cc_aead.c areq_ctx->hw_iv_size = crypto_aead_ivsize(tfm); tfm 2061 drivers/crypto/ccree/cc_aead.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 2062 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 2110 drivers/crypto/ccree/cc_aead.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 2111 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 2138 drivers/crypto/ccree/cc_aead.c static int cc_rfc4106_gcm_setkey(struct crypto_aead *tfm, const u8 *key, tfm 2141 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 2152 drivers/crypto/ccree/cc_aead.c return cc_aead_setkey(tfm, key, keylen); tfm 2155 drivers/crypto/ccree/cc_aead.c static int cc_rfc4543_gcm_setkey(struct crypto_aead *tfm, const u8 *key, tfm 2158 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 2169 drivers/crypto/ccree/cc_aead.c return cc_aead_setkey(tfm, key, keylen); tfm 2229 drivers/crypto/ccree/cc_aead.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 2230 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 2260 drivers/crypto/ccree/cc_aead.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 2261 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 2294 drivers/crypto/ccree/cc_aead.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 2295 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 2325 drivers/crypto/ccree/cc_aead.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 2326 drivers/crypto/ccree/cc_aead.c struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 67 drivers/crypto/ccree/cc_buffer_mgr.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 71 drivers/crypto/ccree/cc_buffer_mgr.c skip += crypto_aead_ivsize(tfm); tfm 611 drivers/crypto/ccree/cc_buffer_mgr.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 612 drivers/crypto/ccree/cc_buffer_mgr.c unsigned int iv_size_to_authenc = crypto_aead_ivsize(tfm); tfm 634 drivers/crypto/ccree/cc_buffer_mgr.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 639 drivers/crypto/ccree/cc_buffer_mgr.c size_of_assoc += crypto_aead_ivsize(tfm); tfm 850 drivers/crypto/ccree/cc_buffer_mgr.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 857 drivers/crypto/ccree/cc_buffer_mgr.c size_to_skip += crypto_aead_ivsize(tfm); tfm 868 drivers/crypto/ccree/cc_buffer_mgr.c size_for_map += crypto_aead_ivsize(tfm); tfm 904 drivers/crypto/ccree/cc_buffer_mgr.c size_for_map += crypto_aead_ivsize(tfm); tfm 1013 drivers/crypto/ccree/cc_buffer_mgr.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 1122 drivers/crypto/ccree/cc_buffer_mgr.c size_to_map += crypto_aead_ivsize(tfm); tfm 67 drivers/crypto/ccree/cc_cipher.c static inline enum cc_key_type cc_key_type(struct crypto_tfm *tfm) tfm 69 drivers/crypto/ccree/cc_cipher.c struct cc_cipher_ctx *ctx_p = crypto_tfm_ctx(tfm); tfm 158 drivers/crypto/ccree/cc_cipher.c static int cc_cipher_init(struct crypto_tfm *tfm) tfm 160 drivers/crypto/ccree/cc_cipher.c struct cc_cipher_ctx *ctx_p = crypto_tfm_ctx(tfm); tfm 162 drivers/crypto/ccree/cc_cipher.c container_of(tfm->__crt_alg, struct cc_crypto_alg, tfm 169 drivers/crypto/ccree/cc_cipher.c crypto_tfm_alg_name(tfm)); tfm 171 drivers/crypto/ccree/cc_cipher.c crypto_skcipher_set_reqsize(__crypto_skcipher_cast(tfm), tfm 210 drivers/crypto/ccree/cc_cipher.c static void cc_cipher_exit(struct crypto_tfm *tfm) tfm 212 drivers/crypto/ccree/cc_cipher.c struct crypto_alg *alg = tfm->__crt_alg; tfm 217 drivers/crypto/ccree/cc_cipher.c struct cc_cipher_ctx *ctx_p = crypto_tfm_ctx(tfm); tfm 221 drivers/crypto/ccree/cc_cipher.c crypto_tfm_ctx(tfm), crypto_tfm_alg_name(tfm)); tfm 280 drivers/crypto/ccree/cc_cipher.c struct crypto_tfm *tfm = crypto_skcipher_tfm(sktfm); tfm 281 drivers/crypto/ccree/cc_cipher.c struct cc_cipher_ctx *ctx_p = crypto_tfm_ctx(tfm); tfm 286 drivers/crypto/ccree/cc_cipher.c ctx_p, crypto_tfm_alg_name(tfm), keylen); tfm 294 drivers/crypto/ccree/cc_cipher.c crypto_tfm_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 307 drivers/crypto/ccree/cc_cipher.c crypto_tfm_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 382 drivers/crypto/ccree/cc_cipher.c struct crypto_tfm *tfm = crypto_skcipher_tfm(sktfm); tfm 383 drivers/crypto/ccree/cc_cipher.c struct cc_cipher_ctx *ctx_p = crypto_tfm_ctx(tfm); tfm 386 drivers/crypto/ccree/cc_cipher.c container_of(tfm->__crt_alg, struct cc_crypto_alg, tfm 391 drivers/crypto/ccree/cc_cipher.c ctx_p, crypto_tfm_alg_name(tfm), keylen); tfm 398 drivers/crypto/ccree/cc_cipher.c crypto_tfm_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 419 drivers/crypto/ccree/cc_cipher.c xts_check_key(tfm, key, keylen)) { tfm 439 drivers/crypto/ccree/cc_cipher.c desc->tfm = ctx_p->shash_tfm; tfm 470 drivers/crypto/ccree/cc_cipher.c static void cc_setup_readiv_desc(struct crypto_tfm *tfm, tfm 475 drivers/crypto/ccree/cc_cipher.c struct cc_cipher_ctx *ctx_p = crypto_tfm_ctx(tfm); tfm 527 drivers/crypto/ccree/cc_cipher.c static void cc_setup_state_desc(struct crypto_tfm *tfm, tfm 533 drivers/crypto/ccree/cc_cipher.c struct cc_cipher_ctx *ctx_p = crypto_tfm_ctx(tfm); tfm 542 drivers/crypto/ccree/cc_cipher.c container_of(tfm->__crt_alg, struct cc_crypto_alg, tfm 580 drivers/crypto/ccree/cc_cipher.c static void cc_setup_xex_state_desc(struct crypto_tfm *tfm, tfm 586 drivers/crypto/ccree/cc_cipher.c struct cc_cipher_ctx *ctx_p = crypto_tfm_ctx(tfm); tfm 597 drivers/crypto/ccree/cc_cipher.c container_of(tfm->__crt_alg, struct cc_crypto_alg, tfm 618 drivers/crypto/ccree/cc_cipher.c if (cc_key_type(tfm) == CC_HW_PROTECTED_KEY) { tfm 662 drivers/crypto/ccree/cc_cipher.c static void cc_setup_key_desc(struct crypto_tfm *tfm, tfm 667 drivers/crypto/ccree/cc_cipher.c struct cc_cipher_ctx *ctx_p = crypto_tfm_ctx(tfm); tfm 687 drivers/crypto/ccree/cc_cipher.c if (cc_key_type(tfm) == CC_POLICY_PROTECTED_KEY) { tfm 694 drivers/crypto/ccree/cc_cipher.c if (cc_key_type(tfm) == CC_HW_PROTECTED_KEY) { tfm 728 drivers/crypto/ccree/cc_cipher.c if (cc_key_type(tfm) == CC_HW_PROTECTED_KEY) { tfm 745 drivers/crypto/ccree/cc_cipher.c static void cc_setup_mlli_desc(struct crypto_tfm *tfm, tfm 751 drivers/crypto/ccree/cc_cipher.c struct cc_cipher_ctx *ctx_p = crypto_tfm_ctx(tfm); tfm 772 drivers/crypto/ccree/cc_cipher.c static void cc_setup_flow_desc(struct crypto_tfm *tfm, tfm 778 drivers/crypto/ccree/cc_cipher.c struct cc_cipher_ctx *ctx_p = crypto_tfm_ctx(tfm); tfm 856 drivers/crypto/ccree/cc_cipher.c struct crypto_tfm *tfm = crypto_skcipher_tfm(sk_tfm); tfm 863 drivers/crypto/ccree/cc_cipher.c struct cc_cipher_ctx *ctx_p = crypto_tfm_ctx(tfm); tfm 880 drivers/crypto/ccree/cc_cipher.c crypto_tfm_set_flags(tfm, CRYPTO_TFM_RES_BAD_BLOCK_LEN); tfm 925 drivers/crypto/ccree/cc_cipher.c cc_setup_state_desc(tfm, req_ctx, ivsize, nbytes, desc, &seq_len); tfm 927 drivers/crypto/ccree/cc_cipher.c cc_setup_mlli_desc(tfm, req_ctx, dst, src, nbytes, req, desc, &seq_len); tfm 929 drivers/crypto/ccree/cc_cipher.c cc_setup_key_desc(tfm, req_ctx, nbytes, desc, &seq_len); tfm 931 drivers/crypto/ccree/cc_cipher.c cc_setup_xex_state_desc(tfm, req_ctx, ivsize, nbytes, desc, &seq_len); tfm 933 drivers/crypto/ccree/cc_cipher.c cc_setup_flow_desc(tfm, req_ctx, dst, src, nbytes, desc, &seq_len); tfm 935 drivers/crypto/ccree/cc_cipher.c cc_setup_readiv_desc(tfm, req_ctx, ivsize, desc, &seq_len); tfm 280 drivers/crypto/ccree/cc_hash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 281 drivers/crypto/ccree/cc_hash.c struct cc_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 298 drivers/crypto/ccree/cc_hash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 299 drivers/crypto/ccree/cc_hash.c struct cc_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 300 drivers/crypto/ccree/cc_hash.c u32 digestsize = crypto_ahash_digestsize(tfm); tfm 318 drivers/crypto/ccree/cc_hash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 319 drivers/crypto/ccree/cc_hash.c struct cc_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 320 drivers/crypto/ccree/cc_hash.c u32 digestsize = crypto_ahash_digestsize(tfm); tfm 338 drivers/crypto/ccree/cc_hash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 339 drivers/crypto/ccree/cc_hash.c struct cc_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 340 drivers/crypto/ccree/cc_hash.c u32 digestsize = crypto_ahash_digestsize(tfm); tfm 362 drivers/crypto/ccree/cc_hash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 363 drivers/crypto/ccree/cc_hash.c struct cc_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 364 drivers/crypto/ccree/cc_hash.c u32 digestsize = crypto_ahash_digestsize(tfm); tfm 415 drivers/crypto/ccree/cc_hash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 416 drivers/crypto/ccree/cc_hash.c struct cc_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 417 drivers/crypto/ccree/cc_hash.c u32 digestsize = crypto_ahash_digestsize(tfm); tfm 552 drivers/crypto/ccree/cc_hash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 553 drivers/crypto/ccree/cc_hash.c struct cc_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 554 drivers/crypto/ccree/cc_hash.c unsigned int block_size = crypto_tfm_alg_blocksize(&tfm->base); tfm 628 drivers/crypto/ccree/cc_hash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 629 drivers/crypto/ccree/cc_hash.c struct cc_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 630 drivers/crypto/ccree/cc_hash.c u32 digestsize = crypto_ahash_digestsize(tfm); tfm 708 drivers/crypto/ccree/cc_hash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 709 drivers/crypto/ccree/cc_hash.c struct cc_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 1109 drivers/crypto/ccree/cc_hash.c static int cc_get_hash_len(struct crypto_tfm *tfm) tfm 1111 drivers/crypto/ccree/cc_hash.c struct cc_hash_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1119 drivers/crypto/ccree/cc_hash.c static int cc_cra_init(struct crypto_tfm *tfm) tfm 1121 drivers/crypto/ccree/cc_hash.c struct cc_hash_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1123 drivers/crypto/ccree/cc_hash.c container_of(tfm->__crt_alg, struct hash_alg_common, base); tfm 1129 drivers/crypto/ccree/cc_hash.c crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), tfm 1136 drivers/crypto/ccree/cc_hash.c ctx->hash_len = cc_get_hash_len(tfm); tfm 1140 drivers/crypto/ccree/cc_hash.c static void cc_cra_exit(struct crypto_tfm *tfm) tfm 1142 drivers/crypto/ccree/cc_hash.c struct cc_hash_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1152 drivers/crypto/ccree/cc_hash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 1153 drivers/crypto/ccree/cc_hash.c struct cc_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 1155 drivers/crypto/ccree/cc_hash.c unsigned int block_size = crypto_tfm_alg_blocksize(&tfm->base); tfm 1220 drivers/crypto/ccree/cc_hash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 1221 drivers/crypto/ccree/cc_hash.c struct cc_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 1228 drivers/crypto/ccree/cc_hash.c u32 digestsize = crypto_ahash_digestsize(tfm); tfm 1342 drivers/crypto/ccree/cc_hash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 1343 drivers/crypto/ccree/cc_hash.c struct cc_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 1350 drivers/crypto/ccree/cc_hash.c u32 digestsize = crypto_ahash_digestsize(tfm); tfm 1424 drivers/crypto/ccree/cc_hash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 1425 drivers/crypto/ccree/cc_hash.c struct cc_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 1427 drivers/crypto/ccree/cc_hash.c u32 digestsize = crypto_ahash_digestsize(tfm); tfm 2129 drivers/crypto/ccree/cc_hash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); tfm 2130 drivers/crypto/ccree/cc_hash.c struct cc_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 2186 drivers/crypto/ccree/cc_hash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); tfm 2187 drivers/crypto/ccree/cc_hash.c struct cc_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 179 drivers/crypto/chelsio/chcr_algo.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 180 drivers/crypto/chelsio/chcr_algo.c int authsize = crypto_aead_authsize(tfm); tfm 185 drivers/crypto/chelsio/chcr_algo.c if ((get_aead_subtype(tfm) == CRYPTO_ALG_SUB_TYPE_AEAD_RFC4106) || tfm 186 drivers/crypto/chelsio/chcr_algo.c (get_aead_subtype(tfm) == CRYPTO_ALG_SUB_TYPE_AEAD_GCM)) { tfm 219 drivers/crypto/chelsio/chcr_algo.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 220 drivers/crypto/chelsio/chcr_algo.c struct chcr_dev *dev = a_ctx(tfm)->dev; tfm 369 drivers/crypto/chelsio/chcr_algo.c static inline int is_hmac(struct crypto_tfm *tfm) tfm 371 drivers/crypto/chelsio/chcr_algo.c struct crypto_alg *alg = tfm->__crt_alg; tfm 571 drivers/crypto/chelsio/chcr_algo.c static inline int get_cryptoalg_subtype(struct crypto_tfm *tfm) tfm 573 drivers/crypto/chelsio/chcr_algo.c struct crypto_alg *alg = tfm->__crt_alg; tfm 760 drivers/crypto/chelsio/chcr_algo.c struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(wrparam->req); tfm 761 drivers/crypto/chelsio/chcr_algo.c struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(tfm)); tfm 774 drivers/crypto/chelsio/chcr_algo.c struct adapter *adap = padap(c_ctx(tfm)->dev); tfm 794 drivers/crypto/chelsio/chcr_algo.c FILL_SEC_CPL_OP_IVINSR(c_ctx(tfm)->tx_chan_id, 2, 1); tfm 810 drivers/crypto/chelsio/chcr_algo.c (!(get_cryptoalg_subtype(crypto_ablkcipher_tfm(tfm)) == tfm 812 drivers/crypto/chelsio/chcr_algo.c (!(get_cryptoalg_subtype(crypto_ablkcipher_tfm(tfm)) == tfm 838 drivers/crypto/chelsio/chcr_algo.c create_wreq(c_ctx(tfm), chcr_req, &(wrparam->req->base), reqctx->imm, 0, tfm 873 drivers/crypto/chelsio/chcr_algo.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); tfm 882 drivers/crypto/chelsio/chcr_algo.c tfm->crt_flags &= ~CRYPTO_TFM_RES_MASK; tfm 883 drivers/crypto/chelsio/chcr_algo.c tfm->crt_flags |= tfm 1023 drivers/crypto/chelsio/chcr_algo.c struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); tfm 1024 drivers/crypto/chelsio/chcr_algo.c struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(tfm)); tfm 1057 drivers/crypto/chelsio/chcr_algo.c struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); tfm 1059 drivers/crypto/chelsio/chcr_algo.c int subtype = get_cryptoalg_subtype(crypto_ablkcipher_tfm(tfm)); tfm 1091 drivers/crypto/chelsio/chcr_algo.c struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); tfm 1093 drivers/crypto/chelsio/chcr_algo.c int subtype = get_cryptoalg_subtype(crypto_ablkcipher_tfm(tfm)); tfm 1114 drivers/crypto/chelsio/chcr_algo.c struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); tfm 1115 drivers/crypto/chelsio/chcr_algo.c struct uld_ctx *u_ctx = ULD_CTX(c_ctx(tfm)); tfm 1116 drivers/crypto/chelsio/chcr_algo.c struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(tfm)); tfm 1121 drivers/crypto/chelsio/chcr_algo.c struct chcr_dev *dev = c_ctx(tfm)->dev; tfm 1127 drivers/crypto/chelsio/chcr_algo.c chcr_cipher_dma_unmap(&ULD_CTX(c_ctx(tfm))->lldi.pdev->dev, tfm 1150 drivers/crypto/chelsio/chcr_algo.c chcr_cipher_dma_unmap(&ULD_CTX(c_ctx(tfm))->lldi.pdev->dev, tfm 1162 drivers/crypto/chelsio/chcr_algo.c if (get_cryptoalg_subtype(crypto_ablkcipher_tfm(tfm)) == tfm 1165 drivers/crypto/chelsio/chcr_algo.c wrparam.qid = u_ctx->lldi.rxq_ids[c_ctx(tfm)->rx_qidx]; tfm 1175 drivers/crypto/chelsio/chcr_algo.c set_wr_txq(skb, CPL_PRIORITY_DATA, c_ctx(tfm)->tx_qidx); tfm 1181 drivers/crypto/chelsio/chcr_algo.c chcr_cipher_dma_unmap(&ULD_CTX(c_ctx(tfm))->lldi.pdev->dev, req); tfm 1193 drivers/crypto/chelsio/chcr_algo.c struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); tfm 1194 drivers/crypto/chelsio/chcr_algo.c unsigned int ivsize = crypto_ablkcipher_ivsize(tfm); tfm 1196 drivers/crypto/chelsio/chcr_algo.c struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(tfm)); tfm 1205 drivers/crypto/chelsio/chcr_algo.c (req->nbytes % crypto_ablkcipher_blocksize(tfm))) { tfm 1211 drivers/crypto/chelsio/chcr_algo.c err = chcr_cipher_dma_map(&ULD_CTX(c_ctx(tfm))->lldi.pdev->dev, req); tfm 1246 drivers/crypto/chelsio/chcr_algo.c if (get_cryptoalg_subtype(crypto_ablkcipher_tfm(tfm)) == tfm 1250 drivers/crypto/chelsio/chcr_algo.c if (get_cryptoalg_subtype(crypto_ablkcipher_tfm(tfm)) == tfm 1265 drivers/crypto/chelsio/chcr_algo.c chcr_cipher_dma_unmap(&ULD_CTX(c_ctx(tfm))->lldi.pdev->dev, tfm 1294 drivers/crypto/chelsio/chcr_algo.c chcr_cipher_dma_unmap(&ULD_CTX(c_ctx(tfm))->lldi.pdev->dev, req); tfm 1301 drivers/crypto/chelsio/chcr_algo.c struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); tfm 1302 drivers/crypto/chelsio/chcr_algo.c struct chcr_dev *dev = c_ctx(tfm)->dev; tfm 1305 drivers/crypto/chelsio/chcr_algo.c struct uld_ctx *u_ctx = ULD_CTX(c_ctx(tfm)); tfm 1311 drivers/crypto/chelsio/chcr_algo.c c_ctx(tfm)->tx_qidx))) { tfm 1319 drivers/crypto/chelsio/chcr_algo.c err = process_cipher(req, u_ctx->lldi.rxq_ids[c_ctx(tfm)->rx_qidx], tfm 1324 drivers/crypto/chelsio/chcr_algo.c set_wr_txq(skb, CPL_PRIORITY_DATA, c_ctx(tfm)->tx_qidx); tfm 1334 drivers/crypto/chelsio/chcr_algo.c struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); tfm 1335 drivers/crypto/chelsio/chcr_algo.c struct uld_ctx *u_ctx = ULD_CTX(c_ctx(tfm)); tfm 1336 drivers/crypto/chelsio/chcr_algo.c struct chcr_dev *dev = c_ctx(tfm)->dev; tfm 1345 drivers/crypto/chelsio/chcr_algo.c c_ctx(tfm)->tx_qidx))) { tfm 1351 drivers/crypto/chelsio/chcr_algo.c err = process_cipher(req, u_ctx->lldi.rxq_ids[c_ctx(tfm)->rx_qidx], tfm 1356 drivers/crypto/chelsio/chcr_algo.c set_wr_txq(skb, CPL_PRIORITY_DATA, c_ctx(tfm)->tx_qidx); tfm 1401 drivers/crypto/chelsio/chcr_algo.c static int chcr_cra_init(struct crypto_tfm *tfm) tfm 1403 drivers/crypto/chelsio/chcr_algo.c struct crypto_alg *alg = tfm->__crt_alg; tfm 1404 drivers/crypto/chelsio/chcr_algo.c struct chcr_context *ctx = crypto_tfm_ctx(tfm); tfm 1414 drivers/crypto/chelsio/chcr_algo.c tfm->crt_ablkcipher.reqsize = sizeof(struct chcr_blkcipher_req_ctx); tfm 1415 drivers/crypto/chelsio/chcr_algo.c return chcr_device_init(crypto_tfm_ctx(tfm)); tfm 1418 drivers/crypto/chelsio/chcr_algo.c static int chcr_rfc3686_init(struct crypto_tfm *tfm) tfm 1420 drivers/crypto/chelsio/chcr_algo.c struct crypto_alg *alg = tfm->__crt_alg; tfm 1421 drivers/crypto/chelsio/chcr_algo.c struct chcr_context *ctx = crypto_tfm_ctx(tfm); tfm 1433 drivers/crypto/chelsio/chcr_algo.c tfm->crt_ablkcipher.reqsize = sizeof(struct chcr_blkcipher_req_ctx); tfm 1434 drivers/crypto/chelsio/chcr_algo.c return chcr_device_init(crypto_tfm_ctx(tfm)); tfm 1438 drivers/crypto/chelsio/chcr_algo.c static void chcr_cra_exit(struct crypto_tfm *tfm) tfm 1440 drivers/crypto/chelsio/chcr_algo.c struct chcr_context *ctx = crypto_tfm_ctx(tfm); tfm 1495 drivers/crypto/chelsio/chcr_algo.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 1496 drivers/crypto/chelsio/chcr_algo.c struct hmac_ctx *hmacctx = HMAC_CTX(h_ctx(tfm)); tfm 1498 drivers/crypto/chelsio/chcr_algo.c struct uld_ctx *u_ctx = ULD_CTX(h_ctx(tfm)); tfm 1505 drivers/crypto/chelsio/chcr_algo.c struct adapter *adap = padap(h_ctx(tfm)->dev); tfm 1524 drivers/crypto/chelsio/chcr_algo.c FILL_SEC_CPL_OP_IVINSR(h_ctx(tfm)->tx_chan_id, 2, 0); tfm 1573 drivers/crypto/chelsio/chcr_algo.c create_wreq(h_ctx(tfm), chcr_req, &req->base, req_ctx->hctx_wr.imm, tfm 1994 drivers/crypto/chelsio/chcr_algo.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 1995 drivers/crypto/chelsio/chcr_algo.c struct uld_ctx *u_ctx = ULD_CTX(h_ctx(tfm)); tfm 1996 drivers/crypto/chelsio/chcr_algo.c struct chcr_dev *dev = h_ctx(tfm)->dev; tfm 2050 drivers/crypto/chelsio/chcr_algo.c struct crypto_tfm *tfm = req->tfm; tfm 2051 drivers/crypto/chelsio/chcr_algo.c struct chcr_context *ctx = crypto_tfm_ctx(tfm); tfm 2054 drivers/crypto/chelsio/chcr_algo.c switch (tfm->__crt_alg->cra_flags & CRYPTO_ALG_TYPE_MASK) { tfm 2099 drivers/crypto/chelsio/chcr_algo.c static int chcr_ahash_setkey(struct crypto_ahash *tfm, const u8 *key, tfm 2102 drivers/crypto/chelsio/chcr_algo.c struct hmac_ctx *hmacctx = HMAC_CTX(h_ctx(tfm)); tfm 2103 drivers/crypto/chelsio/chcr_algo.c unsigned int digestsize = crypto_ahash_digestsize(tfm); tfm 2104 drivers/crypto/chelsio/chcr_algo.c unsigned int bs = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); tfm 2113 drivers/crypto/chelsio/chcr_algo.c shash->tfm = hmacctx->base_hash; tfm 2184 drivers/crypto/chelsio/chcr_algo.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); tfm 2185 drivers/crypto/chelsio/chcr_algo.c int digestsize = crypto_ahash_digestsize(tfm); tfm 2196 drivers/crypto/chelsio/chcr_algo.c static int chcr_sha_cra_init(struct crypto_tfm *tfm) tfm 2198 drivers/crypto/chelsio/chcr_algo.c crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), tfm 2200 drivers/crypto/chelsio/chcr_algo.c return chcr_device_init(crypto_tfm_ctx(tfm)); tfm 2227 drivers/crypto/chelsio/chcr_algo.c static int chcr_hmac_cra_init(struct crypto_tfm *tfm) tfm 2229 drivers/crypto/chelsio/chcr_algo.c struct chcr_context *ctx = crypto_tfm_ctx(tfm); tfm 2232 drivers/crypto/chelsio/chcr_algo.c crypto_ahash_digestsize(__crypto_ahash_cast(tfm)); tfm 2234 drivers/crypto/chelsio/chcr_algo.c crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), tfm 2239 drivers/crypto/chelsio/chcr_algo.c return chcr_device_init(crypto_tfm_ctx(tfm)); tfm 2242 drivers/crypto/chelsio/chcr_algo.c static void chcr_hmac_cra_exit(struct crypto_tfm *tfm) tfm 2244 drivers/crypto/chelsio/chcr_algo.c struct chcr_context *ctx = crypto_tfm_ctx(tfm); tfm 2256 drivers/crypto/chelsio/chcr_algo.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 2257 drivers/crypto/chelsio/chcr_algo.c struct uld_ctx *u_ctx = ULD_CTX(a_ctx(tfm)); tfm 2264 drivers/crypto/chelsio/chcr_algo.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 2265 drivers/crypto/chelsio/chcr_algo.c struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(tfm)); tfm 2267 drivers/crypto/chelsio/chcr_algo.c unsigned int authsize = crypto_aead_authsize(tfm); tfm 2280 drivers/crypto/chelsio/chcr_algo.c error = chcr_aead_dma_map(&ULD_CTX(a_ctx(tfm))->lldi.pdev->dev, req, tfm 2308 drivers/crypto/chelsio/chcr_algo.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 2309 drivers/crypto/chelsio/chcr_algo.c struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(tfm)); tfm 2326 drivers/crypto/chelsio/chcr_algo.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 2327 drivers/crypto/chelsio/chcr_algo.c struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(tfm)); tfm 2335 drivers/crypto/chelsio/chcr_algo.c unsigned int dst_size = 0, temp, subtype = get_aead_subtype(tfm); tfm 2337 drivers/crypto/chelsio/chcr_algo.c unsigned int authsize = crypto_aead_authsize(tfm); tfm 2343 drivers/crypto/chelsio/chcr_algo.c struct adapter *adap = padap(a_ctx(tfm)->dev); tfm 2395 drivers/crypto/chelsio/chcr_algo.c FILL_SEC_CPL_OP_IVINSR(a_ctx(tfm)->tx_chan_id, 2, 1); tfm 2449 drivers/crypto/chelsio/chcr_algo.c create_wreq(a_ctx(tfm), chcr_req, &req->base, reqctx->imm, size, tfm 2466 drivers/crypto/chelsio/chcr_algo.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 2467 drivers/crypto/chelsio/chcr_algo.c unsigned int authsize = crypto_aead_authsize(tfm); tfm 2512 drivers/crypto/chelsio/chcr_algo.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 2513 drivers/crypto/chelsio/chcr_algo.c unsigned int authsize = crypto_aead_authsize(tfm); tfm 2565 drivers/crypto/chelsio/chcr_algo.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 2567 drivers/crypto/chelsio/chcr_algo.c unsigned int authsize = crypto_aead_authsize(tfm); tfm 2568 drivers/crypto/chelsio/chcr_algo.c struct chcr_context *ctx = a_ctx(tfm); tfm 2608 drivers/crypto/chelsio/chcr_algo.c struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(wrparam->req); tfm 2609 drivers/crypto/chelsio/chcr_algo.c struct chcr_context *ctx = c_ctx(tfm); tfm 2788 drivers/crypto/chelsio/chcr_algo.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 2789 drivers/crypto/chelsio/chcr_algo.c struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(tfm)); tfm 2815 drivers/crypto/chelsio/chcr_algo.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 2816 drivers/crypto/chelsio/chcr_algo.c struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(tfm)); tfm 2819 drivers/crypto/chelsio/chcr_algo.c unsigned int c_id = a_ctx(tfm)->tx_chan_id; tfm 2824 drivers/crypto/chelsio/chcr_algo.c if (get_aead_subtype(tfm) == CRYPTO_ALG_SUB_TYPE_AEAD_RFC4309) tfm 2834 drivers/crypto/chelsio/chcr_algo.c if (crypto_aead_authsize(tfm) != req->cryptlen) tfm 2835 drivers/crypto/chelsio/chcr_algo.c tag_offset = crypto_aead_authsize(tfm); tfm 2853 drivers/crypto/chelsio/chcr_algo.c crypto_aead_authsize(tfm)); tfm 2887 drivers/crypto/chelsio/chcr_algo.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 2888 drivers/crypto/chelsio/chcr_algo.c struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(tfm)); tfm 2897 drivers/crypto/chelsio/chcr_algo.c unsigned int authsize = crypto_aead_authsize(tfm); tfm 2902 drivers/crypto/chelsio/chcr_algo.c struct adapter *adap = padap(a_ctx(tfm)->dev); tfm 2904 drivers/crypto/chelsio/chcr_algo.c sub_type = get_aead_subtype(tfm); tfm 2968 drivers/crypto/chelsio/chcr_algo.c create_wreq(a_ctx(tfm), chcr_req, &req->base, reqctx->imm, 0, tfm 2984 drivers/crypto/chelsio/chcr_algo.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 2985 drivers/crypto/chelsio/chcr_algo.c struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(tfm)); tfm 2993 drivers/crypto/chelsio/chcr_algo.c unsigned int authsize = crypto_aead_authsize(tfm); tfm 2998 drivers/crypto/chelsio/chcr_algo.c struct adapter *adap = padap(a_ctx(tfm)->dev); tfm 3000 drivers/crypto/chelsio/chcr_algo.c if (get_aead_subtype(tfm) == CRYPTO_ALG_SUB_TYPE_AEAD_RFC4106) tfm 3040 drivers/crypto/chelsio/chcr_algo.c a_ctx(tfm)->tx_chan_id, 2, 1); tfm 3067 drivers/crypto/chelsio/chcr_algo.c if (get_aead_subtype(tfm) == tfm 3083 drivers/crypto/chelsio/chcr_algo.c create_wreq(a_ctx(tfm), chcr_req, &req->base, reqctx->imm, size, tfm 3095 drivers/crypto/chelsio/chcr_algo.c static int chcr_aead_cra_init(struct crypto_aead *tfm) tfm 3097 drivers/crypto/chelsio/chcr_algo.c struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(tfm)); tfm 3098 drivers/crypto/chelsio/chcr_algo.c struct aead_alg *alg = crypto_aead_alg(tfm); tfm 3105 drivers/crypto/chelsio/chcr_algo.c crypto_aead_set_reqsize(tfm, max(sizeof(struct chcr_aead_reqctx), tfm 3108 drivers/crypto/chelsio/chcr_algo.c return chcr_device_init(a_ctx(tfm)); tfm 3111 drivers/crypto/chelsio/chcr_algo.c static void chcr_aead_cra_exit(struct crypto_aead *tfm) tfm 3113 drivers/crypto/chelsio/chcr_algo.c struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(tfm)); tfm 3118 drivers/crypto/chelsio/chcr_algo.c static int chcr_authenc_null_setauthsize(struct crypto_aead *tfm, tfm 3121 drivers/crypto/chelsio/chcr_algo.c struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(tfm)); tfm 3127 drivers/crypto/chelsio/chcr_algo.c static int chcr_authenc_setauthsize(struct crypto_aead *tfm, tfm 3130 drivers/crypto/chelsio/chcr_algo.c struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(tfm)); tfm 3131 drivers/crypto/chelsio/chcr_algo.c u32 maxauth = crypto_aead_maxauthsize(tfm); tfm 3166 drivers/crypto/chelsio/chcr_algo.c static int chcr_gcm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) tfm 3168 drivers/crypto/chelsio/chcr_algo.c struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(tfm)); tfm 3202 drivers/crypto/chelsio/chcr_algo.c static int chcr_4106_4309_setauthsize(struct crypto_aead *tfm, tfm 3205 drivers/crypto/chelsio/chcr_algo.c struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(tfm)); tfm 3226 drivers/crypto/chelsio/chcr_algo.c static int chcr_ccm_setauthsize(struct crypto_aead *tfm, tfm 3229 drivers/crypto/chelsio/chcr_algo.c struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(tfm)); tfm 3481 drivers/crypto/chelsio/chcr_algo.c shash->tfm = base_hash; tfm 3607 drivers/crypto/chelsio/chcr_algo.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 3614 drivers/crypto/chelsio/chcr_algo.c cdev = a_ctx(tfm)->dev; tfm 3627 drivers/crypto/chelsio/chcr_algo.c u_ctx = ULD_CTX(a_ctx(tfm)); tfm 3629 drivers/crypto/chelsio/chcr_algo.c a_ctx(tfm)->tx_qidx)) { tfm 3638 drivers/crypto/chelsio/chcr_algo.c skb = create_wr_fn(req, u_ctx->lldi.rxq_ids[a_ctx(tfm)->rx_qidx], size); tfm 3646 drivers/crypto/chelsio/chcr_algo.c set_wr_txq(skb, CPL_PRIORITY_DATA, a_ctx(tfm)->tx_qidx); tfm 3653 drivers/crypto/chelsio/chcr_algo.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 3659 drivers/crypto/chelsio/chcr_algo.c switch (get_aead_subtype(tfm)) { tfm 3675 drivers/crypto/chelsio/chcr_algo.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 3676 drivers/crypto/chelsio/chcr_algo.c struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(tfm)); tfm 3681 drivers/crypto/chelsio/chcr_algo.c size = crypto_aead_maxauthsize(tfm); tfm 3688 drivers/crypto/chelsio/chcr_algo.c switch (get_aead_subtype(tfm)) { tfm 158 drivers/crypto/chelsio/chcr_crypto.h static inline struct chcr_context *a_ctx(struct crypto_aead *tfm) tfm 160 drivers/crypto/chelsio/chcr_crypto.h return crypto_aead_ctx(tfm); tfm 163 drivers/crypto/chelsio/chcr_crypto.h static inline struct chcr_context *c_ctx(struct crypto_ablkcipher *tfm) tfm 165 drivers/crypto/chelsio/chcr_crypto.h return crypto_ablkcipher_ctx(tfm); tfm 168 drivers/crypto/chelsio/chcr_crypto.h static inline struct chcr_context *h_ctx(struct crypto_ahash *tfm) tfm 170 drivers/crypto/chelsio/chcr_crypto.h return crypto_tfm_ctx(crypto_ahash_tfm(tfm)); tfm 194 drivers/crypto/exynos-rng.c static int exynos_rng_generate(struct crypto_rng *tfm, tfm 198 drivers/crypto/exynos-rng.c struct exynos_rng_ctx *ctx = crypto_rng_ctx(tfm); tfm 225 drivers/crypto/exynos-rng.c static int exynos_rng_seed(struct crypto_rng *tfm, const u8 *seed, tfm 228 drivers/crypto/exynos-rng.c struct exynos_rng_ctx *ctx = crypto_rng_ctx(tfm); tfm 245 drivers/crypto/exynos-rng.c static int exynos_rng_kcapi_init(struct crypto_tfm *tfm) tfm 247 drivers/crypto/exynos-rng.c struct exynos_rng_ctx *ctx = crypto_tfm_ctx(tfm); tfm 109 drivers/crypto/geode-aes.c static int geode_setkey_cip(struct crypto_tfm *tfm, const u8 *key, tfm 112 drivers/crypto/geode-aes.c struct geode_aes_tfm_ctx *tctx = crypto_tfm_ctx(tfm); tfm 124 drivers/crypto/geode-aes.c tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; tfm 133 drivers/crypto/geode-aes.c (tfm->crt_flags & CRYPTO_TFM_REQ_MASK); tfm 137 drivers/crypto/geode-aes.c tfm->crt_flags &= ~CRYPTO_TFM_RES_MASK; tfm 138 drivers/crypto/geode-aes.c tfm->crt_flags |= (tctx->fallback.cip->base.crt_flags & tfm 144 drivers/crypto/geode-aes.c static int geode_setkey_skcipher(struct crypto_skcipher *tfm, const u8 *key, tfm 147 drivers/crypto/geode-aes.c struct geode_aes_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); tfm 159 drivers/crypto/geode-aes.c crypto_skcipher_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 169 drivers/crypto/geode-aes.c crypto_skcipher_get_flags(tfm) & tfm 172 drivers/crypto/geode-aes.c crypto_skcipher_set_flags(tfm, tfm 179 drivers/crypto/geode-aes.c geode_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) tfm 181 drivers/crypto/geode-aes.c const struct geode_aes_tfm_ctx *tctx = crypto_tfm_ctx(tfm); tfm 194 drivers/crypto/geode-aes.c geode_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) tfm 196 drivers/crypto/geode-aes.c const struct geode_aes_tfm_ctx *tctx = crypto_tfm_ctx(tfm); tfm 207 drivers/crypto/geode-aes.c static int fallback_init_cip(struct crypto_tfm *tfm) tfm 209 drivers/crypto/geode-aes.c const char *name = crypto_tfm_alg_name(tfm); tfm 210 drivers/crypto/geode-aes.c struct geode_aes_tfm_ctx *tctx = crypto_tfm_ctx(tfm); tfm 223 drivers/crypto/geode-aes.c static void fallback_exit_cip(struct crypto_tfm *tfm) tfm 225 drivers/crypto/geode-aes.c struct geode_aes_tfm_ctx *tctx = crypto_tfm_ctx(tfm); tfm 253 drivers/crypto/geode-aes.c static int geode_init_skcipher(struct crypto_skcipher *tfm) tfm 255 drivers/crypto/geode-aes.c const char *name = crypto_tfm_alg_name(&tfm->base); tfm 256 drivers/crypto/geode-aes.c struct geode_aes_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); tfm 266 drivers/crypto/geode-aes.c crypto_skcipher_set_reqsize(tfm, sizeof(struct skcipher_request) + tfm 271 drivers/crypto/geode-aes.c static void geode_exit_skcipher(struct crypto_skcipher *tfm) tfm 273 drivers/crypto/geode-aes.c struct geode_aes_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); tfm 280 drivers/crypto/geode-aes.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 281 drivers/crypto/geode-aes.c const struct geode_aes_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); tfm 1523 drivers/crypto/hifn_795x.c struct hifn_context *ctx = crypto_tfm_ctx(req->base.tfm); tfm 1979 drivers/crypto/hifn_795x.c struct hifn_context *ctx = crypto_tfm_ctx(req->base.tfm); tfm 2000 drivers/crypto/hifn_795x.c struct hifn_context *ctx = crypto_tfm_ctx(req->base.tfm); tfm 2070 drivers/crypto/hifn_795x.c struct hifn_context *ctx = crypto_tfm_ctx(req->base.tfm); tfm 2369 drivers/crypto/hifn_795x.c static int hifn_cra_init(struct crypto_tfm *tfm) tfm 2371 drivers/crypto/hifn_795x.c struct crypto_alg *alg = tfm->__crt_alg; tfm 2373 drivers/crypto/hifn_795x.c struct hifn_context *ctx = crypto_tfm_ctx(tfm); tfm 2376 drivers/crypto/hifn_795x.c tfm->crt_ablkcipher.reqsize = sizeof(struct hifn_request_context); tfm 147 drivers/crypto/hisilicon/sec/sec_algs.c struct crypto_tfm *tfm = crypto_skcipher_tfm(atfm); tfm 148 drivers/crypto/hisilicon/sec/sec_algs.c struct sec_alg_tfm_ctx *ctx = crypto_tfm_ctx(tfm); tfm 226 drivers/crypto/hisilicon/sec/sec_algs.c static int sec_alg_skcipher_setkey(struct crypto_skcipher *tfm, tfm 230 drivers/crypto/hisilicon/sec/sec_algs.c struct sec_alg_tfm_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 247 drivers/crypto/hisilicon/sec/sec_algs.c sec_alg_skcipher_init_context(tfm, key, keylen, alg); tfm 252 drivers/crypto/hisilicon/sec/sec_algs.c static int sec_alg_skcipher_setkey_aes_ecb(struct crypto_skcipher *tfm, tfm 271 drivers/crypto/hisilicon/sec/sec_algs.c return sec_alg_skcipher_setkey(tfm, key, keylen, alg); tfm 274 drivers/crypto/hisilicon/sec/sec_algs.c static int sec_alg_skcipher_setkey_aes_cbc(struct crypto_skcipher *tfm, tfm 293 drivers/crypto/hisilicon/sec/sec_algs.c return sec_alg_skcipher_setkey(tfm, key, keylen, alg); tfm 296 drivers/crypto/hisilicon/sec/sec_algs.c static int sec_alg_skcipher_setkey_aes_ctr(struct crypto_skcipher *tfm, tfm 315 drivers/crypto/hisilicon/sec/sec_algs.c return sec_alg_skcipher_setkey(tfm, key, keylen, alg); tfm 318 drivers/crypto/hisilicon/sec/sec_algs.c static int sec_alg_skcipher_setkey_aes_xts(struct crypto_skcipher *tfm, tfm 324 drivers/crypto/hisilicon/sec/sec_algs.c ret = xts_verify_key(tfm, key, keylen); tfm 339 drivers/crypto/hisilicon/sec/sec_algs.c return sec_alg_skcipher_setkey(tfm, key, keylen, alg); tfm 342 drivers/crypto/hisilicon/sec/sec_algs.c static int sec_alg_skcipher_setkey_des_ecb(struct crypto_skcipher *tfm, tfm 345 drivers/crypto/hisilicon/sec/sec_algs.c return verify_skcipher_des_key(tfm, key) ?: tfm 346 drivers/crypto/hisilicon/sec/sec_algs.c sec_alg_skcipher_setkey(tfm, key, keylen, SEC_C_DES_ECB_64); tfm 349 drivers/crypto/hisilicon/sec/sec_algs.c static int sec_alg_skcipher_setkey_des_cbc(struct crypto_skcipher *tfm, tfm 352 drivers/crypto/hisilicon/sec/sec_algs.c return verify_skcipher_des_key(tfm, key) ?: tfm 353 drivers/crypto/hisilicon/sec/sec_algs.c sec_alg_skcipher_setkey(tfm, key, keylen, SEC_C_DES_CBC_64); tfm 356 drivers/crypto/hisilicon/sec/sec_algs.c static int sec_alg_skcipher_setkey_3des_ecb(struct crypto_skcipher *tfm, tfm 359 drivers/crypto/hisilicon/sec/sec_algs.c return verify_skcipher_des3_key(tfm, key) ?: tfm 360 drivers/crypto/hisilicon/sec/sec_algs.c sec_alg_skcipher_setkey(tfm, key, keylen, tfm 364 drivers/crypto/hisilicon/sec/sec_algs.c static int sec_alg_skcipher_setkey_3des_cbc(struct crypto_skcipher *tfm, tfm 367 drivers/crypto/hisilicon/sec/sec_algs.c return verify_skcipher_des3_key(tfm, key) ?: tfm 368 drivers/crypto/hisilicon/sec/sec_algs.c sec_alg_skcipher_setkey(tfm, key, keylen, tfm 710 drivers/crypto/hisilicon/sec/sec_algs.c struct crypto_tfm *tfm = crypto_skcipher_tfm(atfm); tfm 711 drivers/crypto/hisilicon/sec/sec_algs.c struct sec_alg_tfm_ctx *ctx = crypto_tfm_ctx(tfm); tfm 870 drivers/crypto/hisilicon/sec/sec_algs.c static int sec_alg_skcipher_init(struct crypto_skcipher *tfm) tfm 872 drivers/crypto/hisilicon/sec/sec_algs.c struct sec_alg_tfm_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 876 drivers/crypto/hisilicon/sec/sec_algs.c crypto_skcipher_set_reqsize(tfm, sizeof(struct sec_request)); tfm 888 drivers/crypto/hisilicon/sec/sec_algs.c static void sec_alg_skcipher_exit(struct crypto_skcipher *tfm) tfm 890 drivers/crypto/hisilicon/sec/sec_algs.c struct sec_alg_tfm_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 901 drivers/crypto/hisilicon/sec/sec_algs.c static int sec_alg_skcipher_init_with_queue(struct crypto_skcipher *tfm) tfm 903 drivers/crypto/hisilicon/sec/sec_algs.c struct sec_alg_tfm_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 906 drivers/crypto/hisilicon/sec/sec_algs.c ret = sec_alg_skcipher_init(tfm); tfm 913 drivers/crypto/hisilicon/sec/sec_algs.c sec_alg_skcipher_exit(tfm); tfm 921 drivers/crypto/hisilicon/sec/sec_algs.c static void sec_alg_skcipher_exit_with_queue(struct crypto_skcipher *tfm) tfm 923 drivers/crypto/hisilicon/sec/sec_algs.c struct sec_alg_tfm_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 926 drivers/crypto/hisilicon/sec/sec_algs.c sec_alg_skcipher_exit(tfm); tfm 352 drivers/crypto/hisilicon/zip/zip_crypto.c static int hisi_zip_acomp_init(struct crypto_acomp *tfm) tfm 354 drivers/crypto/hisilicon/zip/zip_crypto.c const char *alg_name = crypto_tfm_alg_name(&tfm->base); tfm 355 drivers/crypto/hisilicon/zip/zip_crypto.c struct hisi_zip_ctx *ctx = crypto_tfm_ctx(&tfm->base); tfm 381 drivers/crypto/hisilicon/zip/zip_crypto.c static void hisi_zip_acomp_exit(struct crypto_acomp *tfm) tfm 383 drivers/crypto/hisilicon/zip/zip_crypto.c struct hisi_zip_ctx *ctx = crypto_tfm_ctx(&tfm->base); tfm 513 drivers/crypto/hisilicon/zip/zip_crypto.c struct hisi_zip_ctx *ctx = crypto_tfm_ctx(acomp_req->base.tfm); tfm 537 drivers/crypto/hisilicon/zip/zip_crypto.c struct hisi_zip_ctx *ctx = crypto_tfm_ctx(acomp_req->base.tfm); tfm 483 drivers/crypto/img-hash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 485 drivers/crypto/img-hash.c struct img_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 548 drivers/crypto/img-hash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 549 drivers/crypto/img-hash.c struct img_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 563 drivers/crypto/img-hash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 564 drivers/crypto/img-hash.c struct img_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 577 drivers/crypto/img-hash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 578 drivers/crypto/img-hash.c struct img_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 593 drivers/crypto/img-hash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 594 drivers/crypto/img-hash.c struct img_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 606 drivers/crypto/img-hash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 607 drivers/crypto/img-hash.c struct img_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 618 drivers/crypto/img-hash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 619 drivers/crypto/img-hash.c struct img_hash_ctx *tctx = crypto_ahash_ctx(tfm); tfm 640 drivers/crypto/img-hash.c ctx->digsize = crypto_ahash_digestsize(tfm); tfm 672 drivers/crypto/img-hash.c static int img_hash_cra_init(struct crypto_tfm *tfm, const char *alg_name) tfm 674 drivers/crypto/img-hash.c struct img_hash_ctx *ctx = crypto_tfm_ctx(tfm); tfm 684 drivers/crypto/img-hash.c crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), tfm 695 drivers/crypto/img-hash.c static int img_hash_cra_md5_init(struct crypto_tfm *tfm) tfm 697 drivers/crypto/img-hash.c return img_hash_cra_init(tfm, "md5-generic"); tfm 700 drivers/crypto/img-hash.c static int img_hash_cra_sha1_init(struct crypto_tfm *tfm) tfm 702 drivers/crypto/img-hash.c return img_hash_cra_init(tfm, "sha1-generic"); tfm 705 drivers/crypto/img-hash.c static int img_hash_cra_sha224_init(struct crypto_tfm *tfm) tfm 707 drivers/crypto/img-hash.c return img_hash_cra_init(tfm, "sha224-generic"); tfm 710 drivers/crypto/img-hash.c static int img_hash_cra_sha256_init(struct crypto_tfm *tfm) tfm 712 drivers/crypto/img-hash.c return img_hash_cra_init(tfm, "sha256-generic"); tfm 715 drivers/crypto/img-hash.c static void img_hash_cra_exit(struct crypto_tfm *tfm) tfm 717 drivers/crypto/img-hash.c struct img_hash_ctx *tctx = crypto_tfm_ctx(tfm); tfm 796 drivers/crypto/inside-secure/safexcel.c ctx = crypto_tfm_ctx(req->tfm); tfm 984 drivers/crypto/inside-secure/safexcel.c ctx = crypto_tfm_ctx(req->tfm); tfm 273 drivers/crypto/inside-secure/safexcel_cipher.c struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); tfm 274 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 306 drivers/crypto/inside-secure/safexcel_cipher.c struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); tfm 307 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 557 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(base->tfm); tfm 778 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(base->tfm); tfm 859 drivers/crypto/inside-secure/safexcel_cipher.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 870 drivers/crypto/inside-secure/safexcel_cipher.c req->cryptlen + crypto_aead_authsize(tfm), tfm 880 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(base->tfm); tfm 898 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(req->base.tfm); tfm 930 drivers/crypto/inside-secure/safexcel_cipher.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 931 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(req->base.tfm); tfm 943 drivers/crypto/inside-secure/safexcel_cipher.c crypto_aead_authsize(tfm), req->iv, tfm 949 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_cipher_exit_inv(struct crypto_tfm *tfm, tfm 954 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 960 drivers/crypto/inside-secure/safexcel_cipher.c ctx = crypto_tfm_ctx(base->tfm); tfm 983 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_skcipher_exit_inv(struct crypto_tfm *tfm) tfm 993 drivers/crypto/inside-secure/safexcel_cipher.c skcipher_request_set_tfm(req, __crypto_skcipher_cast(tfm)); tfm 995 drivers/crypto/inside-secure/safexcel_cipher.c return safexcel_cipher_exit_inv(tfm, &req->base, sreq, &result); tfm 998 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_aead_exit_inv(struct crypto_tfm *tfm) tfm 1008 drivers/crypto/inside-secure/safexcel_cipher.c aead_request_set_tfm(req, __crypto_aead_cast(tfm)); tfm 1010 drivers/crypto/inside-secure/safexcel_cipher.c return safexcel_cipher_exit_inv(tfm, &req->base, sreq, &result); tfm 1017 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(base->tfm); tfm 1062 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_skcipher_cra_init(struct crypto_tfm *tfm) tfm 1064 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1066 drivers/crypto/inside-secure/safexcel_cipher.c container_of(tfm->__crt_alg, struct safexcel_alg_template, tfm 1069 drivers/crypto/inside-secure/safexcel_cipher.c crypto_skcipher_set_reqsize(__crypto_skcipher_cast(tfm), tfm 1079 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_cipher_cra_exit(struct crypto_tfm *tfm) tfm 1081 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1093 drivers/crypto/inside-secure/safexcel_cipher.c static void safexcel_skcipher_cra_exit(struct crypto_tfm *tfm) tfm 1095 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1099 drivers/crypto/inside-secure/safexcel_cipher.c if (safexcel_cipher_cra_exit(tfm)) tfm 1103 drivers/crypto/inside-secure/safexcel_cipher.c ret = safexcel_skcipher_exit_inv(tfm); tfm 1113 drivers/crypto/inside-secure/safexcel_cipher.c static void safexcel_aead_cra_exit(struct crypto_tfm *tfm) tfm 1115 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1119 drivers/crypto/inside-secure/safexcel_cipher.c if (safexcel_cipher_cra_exit(tfm)) tfm 1123 drivers/crypto/inside-secure/safexcel_cipher.c ret = safexcel_aead_exit_inv(tfm); tfm 1133 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_skcipher_aes_ecb_cra_init(struct crypto_tfm *tfm) tfm 1135 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1137 drivers/crypto/inside-secure/safexcel_cipher.c safexcel_skcipher_cra_init(tfm); tfm 1168 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_skcipher_aes_cbc_cra_init(struct crypto_tfm *tfm) tfm 1170 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1172 drivers/crypto/inside-secure/safexcel_cipher.c safexcel_skcipher_cra_init(tfm); tfm 1204 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_skcipher_aes_cfb_cra_init(struct crypto_tfm *tfm) tfm 1206 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1208 drivers/crypto/inside-secure/safexcel_cipher.c safexcel_skcipher_cra_init(tfm); tfm 1240 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_skcipher_aes_ofb_cra_init(struct crypto_tfm *tfm) tfm 1242 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1244 drivers/crypto/inside-secure/safexcel_cipher.c safexcel_skcipher_cra_init(tfm); tfm 1279 drivers/crypto/inside-secure/safexcel_cipher.c struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); tfm 1280 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1314 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_skcipher_aes_ctr_cra_init(struct crypto_tfm *tfm) tfm 1316 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1318 drivers/crypto/inside-secure/safexcel_cipher.c safexcel_skcipher_cra_init(tfm); tfm 1372 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_skcipher_des_cbc_cra_init(struct crypto_tfm *tfm) tfm 1374 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1376 drivers/crypto/inside-secure/safexcel_cipher.c safexcel_skcipher_cra_init(tfm); tfm 1408 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_skcipher_des_ecb_cra_init(struct crypto_tfm *tfm) tfm 1410 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1412 drivers/crypto/inside-secure/safexcel_cipher.c safexcel_skcipher_cra_init(tfm); tfm 1466 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_skcipher_des3_cbc_cra_init(struct crypto_tfm *tfm) tfm 1468 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1470 drivers/crypto/inside-secure/safexcel_cipher.c safexcel_skcipher_cra_init(tfm); tfm 1502 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_skcipher_des3_ecb_cra_init(struct crypto_tfm *tfm) tfm 1504 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1506 drivers/crypto/inside-secure/safexcel_cipher.c safexcel_skcipher_cra_init(tfm); tfm 1551 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_aead_cra_init(struct crypto_tfm *tfm) tfm 1553 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1555 drivers/crypto/inside-secure/safexcel_cipher.c container_of(tfm->__crt_alg, struct safexcel_alg_template, tfm 1558 drivers/crypto/inside-secure/safexcel_cipher.c crypto_aead_set_reqsize(__crypto_aead_cast(tfm), tfm 1571 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_aead_sha1_cra_init(struct crypto_tfm *tfm) tfm 1573 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1575 drivers/crypto/inside-secure/safexcel_cipher.c safexcel_aead_cra_init(tfm); tfm 1606 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_aead_sha256_cra_init(struct crypto_tfm *tfm) tfm 1608 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1610 drivers/crypto/inside-secure/safexcel_cipher.c safexcel_aead_cra_init(tfm); tfm 1641 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_aead_sha224_cra_init(struct crypto_tfm *tfm) tfm 1643 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1645 drivers/crypto/inside-secure/safexcel_cipher.c safexcel_aead_cra_init(tfm); tfm 1676 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_aead_sha512_cra_init(struct crypto_tfm *tfm) tfm 1678 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1680 drivers/crypto/inside-secure/safexcel_cipher.c safexcel_aead_cra_init(tfm); tfm 1711 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_aead_sha384_cra_init(struct crypto_tfm *tfm) tfm 1713 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1715 drivers/crypto/inside-secure/safexcel_cipher.c safexcel_aead_cra_init(tfm); tfm 1746 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_aead_sha1_des3_cra_init(struct crypto_tfm *tfm) tfm 1748 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1750 drivers/crypto/inside-secure/safexcel_cipher.c safexcel_aead_sha1_cra_init(tfm); tfm 1780 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_aead_sha1_ctr_cra_init(struct crypto_tfm *tfm) tfm 1782 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1784 drivers/crypto/inside-secure/safexcel_cipher.c safexcel_aead_sha1_cra_init(tfm); tfm 1814 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_aead_sha256_ctr_cra_init(struct crypto_tfm *tfm) tfm 1816 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1818 drivers/crypto/inside-secure/safexcel_cipher.c safexcel_aead_sha256_cra_init(tfm); tfm 1848 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_aead_sha224_ctr_cra_init(struct crypto_tfm *tfm) tfm 1850 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1852 drivers/crypto/inside-secure/safexcel_cipher.c safexcel_aead_sha224_cra_init(tfm); tfm 1882 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_aead_sha512_ctr_cra_init(struct crypto_tfm *tfm) tfm 1884 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1886 drivers/crypto/inside-secure/safexcel_cipher.c safexcel_aead_sha512_cra_init(tfm); tfm 1916 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_aead_sha384_ctr_cra_init(struct crypto_tfm *tfm) tfm 1918 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1920 drivers/crypto/inside-secure/safexcel_cipher.c safexcel_aead_sha384_cra_init(tfm); tfm 1953 drivers/crypto/inside-secure/safexcel_cipher.c struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); tfm 1954 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 2012 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_skcipher_aes_xts_cra_init(struct crypto_tfm *tfm) tfm 2014 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 2016 drivers/crypto/inside-secure/safexcel_cipher.c safexcel_skcipher_cra_init(tfm); tfm 2069 drivers/crypto/inside-secure/safexcel_cipher.c struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); tfm 2070 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 2127 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_aead_gcm_cra_init(struct crypto_tfm *tfm) tfm 2129 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 2131 drivers/crypto/inside-secure/safexcel_cipher.c safexcel_aead_cra_init(tfm); tfm 2144 drivers/crypto/inside-secure/safexcel_cipher.c static void safexcel_aead_gcm_cra_exit(struct crypto_tfm *tfm) tfm 2146 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 2149 drivers/crypto/inside-secure/safexcel_cipher.c safexcel_aead_cra_exit(tfm); tfm 2152 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_aead_gcm_setauthsize(struct crypto_aead *tfm, tfm 2187 drivers/crypto/inside-secure/safexcel_cipher.c struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); tfm 2188 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 2229 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_aead_ccm_cra_init(struct crypto_tfm *tfm) tfm 2231 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 2233 drivers/crypto/inside-secure/safexcel_cipher.c safexcel_aead_cra_init(tfm); tfm 2241 drivers/crypto/inside-secure/safexcel_cipher.c static int safexcel_aead_ccm_setauthsize(struct crypto_aead *tfm, tfm 515 drivers/crypto/inside-secure/safexcel_hash.c static int safexcel_ahash_exit_inv(struct crypto_tfm *tfm) tfm 517 drivers/crypto/inside-secure/safexcel_hash.c struct safexcel_ahash_ctx *ctx = crypto_tfm_ctx(tfm); tfm 531 drivers/crypto/inside-secure/safexcel_hash.c ahash_request_set_tfm(req, __crypto_ahash_cast(tfm)); tfm 532 drivers/crypto/inside-secure/safexcel_hash.c ctx = crypto_tfm_ctx(req->base.tfm); tfm 785 drivers/crypto/inside-secure/safexcel_hash.c static int safexcel_ahash_cra_init(struct crypto_tfm *tfm) tfm 787 drivers/crypto/inside-secure/safexcel_hash.c struct safexcel_ahash_ctx *ctx = crypto_tfm_ctx(tfm); tfm 789 drivers/crypto/inside-secure/safexcel_hash.c container_of(__crypto_ahash_alg(tfm->__crt_alg), tfm 796 drivers/crypto/inside-secure/safexcel_hash.c crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), tfm 826 drivers/crypto/inside-secure/safexcel_hash.c static void safexcel_ahash_cra_exit(struct crypto_tfm *tfm) tfm 828 drivers/crypto/inside-secure/safexcel_hash.c struct safexcel_ahash_ctx *ctx = crypto_tfm_ctx(tfm); tfm 837 drivers/crypto/inside-secure/safexcel_hash.c ret = safexcel_ahash_exit_inv(tfm); tfm 1010 drivers/crypto/inside-secure/safexcel_hash.c struct crypto_ahash *tfm; tfm 1015 drivers/crypto/inside-secure/safexcel_hash.c tfm = crypto_alloc_ahash(alg, 0, 0); tfm 1016 drivers/crypto/inside-secure/safexcel_hash.c if (IS_ERR(tfm)) tfm 1017 drivers/crypto/inside-secure/safexcel_hash.c return PTR_ERR(tfm); tfm 1019 drivers/crypto/inside-secure/safexcel_hash.c areq = ahash_request_alloc(tfm, GFP_KERNEL); tfm 1025 drivers/crypto/inside-secure/safexcel_hash.c crypto_ahash_clear_flags(tfm, ~0); tfm 1026 drivers/crypto/inside-secure/safexcel_hash.c blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); tfm 1051 drivers/crypto/inside-secure/safexcel_hash.c crypto_free_ahash(tfm); tfm 1056 drivers/crypto/inside-secure/safexcel_hash.c static int safexcel_hmac_alg_setkey(struct crypto_ahash *tfm, const u8 *key, tfm 1060 drivers/crypto/inside-secure/safexcel_hash.c struct safexcel_ahash_ctx *ctx = crypto_tfm_ctx(crypto_ahash_tfm(tfm)); tfm 1080 drivers/crypto/inside-secure/safexcel_hash.c static int safexcel_hmac_sha1_setkey(struct crypto_ahash *tfm, const u8 *key, tfm 1083 drivers/crypto/inside-secure/safexcel_hash.c return safexcel_hmac_alg_setkey(tfm, key, keylen, "safexcel-sha1", tfm 1228 drivers/crypto/inside-secure/safexcel_hash.c static int safexcel_hmac_sha224_setkey(struct crypto_ahash *tfm, const u8 *key, tfm 1231 drivers/crypto/inside-secure/safexcel_hash.c return safexcel_hmac_alg_setkey(tfm, key, keylen, "safexcel-sha224", tfm 1298 drivers/crypto/inside-secure/safexcel_hash.c static int safexcel_hmac_sha256_setkey(struct crypto_ahash *tfm, const u8 *key, tfm 1301 drivers/crypto/inside-secure/safexcel_hash.c return safexcel_hmac_alg_setkey(tfm, key, keylen, "safexcel-sha256", tfm 1478 drivers/crypto/inside-secure/safexcel_hash.c static int safexcel_hmac_sha512_setkey(struct crypto_ahash *tfm, const u8 *key, tfm 1481 drivers/crypto/inside-secure/safexcel_hash.c return safexcel_hmac_alg_setkey(tfm, key, keylen, "safexcel-sha512", tfm 1548 drivers/crypto/inside-secure/safexcel_hash.c static int safexcel_hmac_sha384_setkey(struct crypto_ahash *tfm, const u8 *key, tfm 1551 drivers/crypto/inside-secure/safexcel_hash.c return safexcel_hmac_alg_setkey(tfm, key, keylen, "safexcel-sha384", tfm 1696 drivers/crypto/inside-secure/safexcel_hash.c static int safexcel_hmac_md5_setkey(struct crypto_ahash *tfm, const u8 *key, tfm 1699 drivers/crypto/inside-secure/safexcel_hash.c return safexcel_hmac_alg_setkey(tfm, key, keylen, "safexcel-md5", tfm 142 drivers/crypto/ixp4xx_crypto.c struct crypto_tfm *tfm; tfm 240 drivers/crypto/ixp4xx_crypto.c static inline u32 cipher_cfg_enc(struct crypto_tfm *tfm) tfm 242 drivers/crypto/ixp4xx_crypto.c return container_of(tfm->__crt_alg, struct ixp_alg,crypto)->cfg_enc; tfm 245 drivers/crypto/ixp4xx_crypto.c static inline u32 cipher_cfg_dec(struct crypto_tfm *tfm) tfm 247 drivers/crypto/ixp4xx_crypto.c return container_of(tfm->__crt_alg, struct ixp_alg,crypto)->cfg_dec; tfm 250 drivers/crypto/ixp4xx_crypto.c static inline const struct ix_hash_algo *ix_hash(struct crypto_tfm *tfm) tfm 252 drivers/crypto/ixp4xx_crypto.c return container_of(tfm->__crt_alg, struct ixp_alg, crypto)->hash; tfm 345 drivers/crypto/ixp4xx_crypto.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 346 drivers/crypto/ixp4xx_crypto.c int authsize = crypto_aead_authsize(tfm); tfm 392 drivers/crypto/ixp4xx_crypto.c ctx = crypto_tfm_ctx(crypt->data.tfm); tfm 400 drivers/crypto/ixp4xx_crypto.c ctx = crypto_tfm_ctx(crypt->data.tfm); tfm 558 drivers/crypto/ixp4xx_crypto.c static int init_tfm(struct crypto_tfm *tfm) tfm 560 drivers/crypto/ixp4xx_crypto.c struct ixp_ctx *ctx = crypto_tfm_ctx(tfm); tfm 574 drivers/crypto/ixp4xx_crypto.c static int init_tfm_ablk(struct crypto_tfm *tfm) tfm 576 drivers/crypto/ixp4xx_crypto.c tfm->crt_ablkcipher.reqsize = sizeof(struct ablk_ctx); tfm 577 drivers/crypto/ixp4xx_crypto.c return init_tfm(tfm); tfm 580 drivers/crypto/ixp4xx_crypto.c static int init_tfm_aead(struct crypto_aead *tfm) tfm 582 drivers/crypto/ixp4xx_crypto.c crypto_aead_set_reqsize(tfm, sizeof(struct aead_ctx)); tfm 583 drivers/crypto/ixp4xx_crypto.c return init_tfm(crypto_aead_tfm(tfm)); tfm 586 drivers/crypto/ixp4xx_crypto.c static void exit_tfm(struct crypto_tfm *tfm) tfm 588 drivers/crypto/ixp4xx_crypto.c struct ixp_ctx *ctx = crypto_tfm_ctx(tfm); tfm 593 drivers/crypto/ixp4xx_crypto.c static void exit_tfm_aead(struct crypto_aead *tfm) tfm 595 drivers/crypto/ixp4xx_crypto.c exit_tfm(crypto_aead_tfm(tfm)); tfm 598 drivers/crypto/ixp4xx_crypto.c static int register_chain_var(struct crypto_tfm *tfm, u8 xpad, u32 target, tfm 601 drivers/crypto/ixp4xx_crypto.c struct ixp_ctx *ctx = crypto_tfm_ctx(tfm); tfm 630 drivers/crypto/ixp4xx_crypto.c crypt->data.tfm = tfm; tfm 654 drivers/crypto/ixp4xx_crypto.c static int setup_auth(struct crypto_tfm *tfm, int encrypt, unsigned authsize, tfm 662 drivers/crypto/ixp4xx_crypto.c struct ixp_ctx *ctx = crypto_tfm_ctx(tfm); tfm 667 drivers/crypto/ixp4xx_crypto.c algo = ix_hash(tfm); tfm 693 drivers/crypto/ixp4xx_crypto.c ret = register_chain_var(tfm, HMAC_OPAD_VALUE, otarget, tfm 697 drivers/crypto/ixp4xx_crypto.c return register_chain_var(tfm, HMAC_IPAD_VALUE, itarget, tfm 701 drivers/crypto/ixp4xx_crypto.c static int gen_rev_aes_key(struct crypto_tfm *tfm) tfm 704 drivers/crypto/ixp4xx_crypto.c struct ixp_ctx *ctx = crypto_tfm_ctx(tfm); tfm 713 drivers/crypto/ixp4xx_crypto.c crypt->data.tfm = tfm; tfm 729 drivers/crypto/ixp4xx_crypto.c static int setup_cipher(struct crypto_tfm *tfm, int encrypt, tfm 736 drivers/crypto/ixp4xx_crypto.c struct ixp_ctx *ctx = crypto_tfm_ctx(tfm); tfm 737 drivers/crypto/ixp4xx_crypto.c u32 *flags = &tfm->crt_flags; tfm 743 drivers/crypto/ixp4xx_crypto.c cipher_cfg = cipher_cfg_enc(tfm); tfm 746 drivers/crypto/ixp4xx_crypto.c cipher_cfg = cipher_cfg_dec(tfm); tfm 759 drivers/crypto/ixp4xx_crypto.c crypto_des_verify_key(tfm, key); tfm 775 drivers/crypto/ixp4xx_crypto.c return gen_rev_aes_key(tfm); tfm 812 drivers/crypto/ixp4xx_crypto.c static int ablk_setkey(struct crypto_ablkcipher *tfm, const u8 *key, tfm 815 drivers/crypto/ixp4xx_crypto.c struct ixp_ctx *ctx = crypto_ablkcipher_ctx(tfm); tfm 816 drivers/crypto/ixp4xx_crypto.c u32 *flags = &tfm->base.crt_flags; tfm 828 drivers/crypto/ixp4xx_crypto.c ret = setup_cipher(&tfm->base, 0, key, key_len); tfm 831 drivers/crypto/ixp4xx_crypto.c ret = setup_cipher(&tfm->base, 1, key, key_len); tfm 848 drivers/crypto/ixp4xx_crypto.c static int ablk_des3_setkey(struct crypto_ablkcipher *tfm, const u8 *key, tfm 851 drivers/crypto/ixp4xx_crypto.c return verify_ablkcipher_des3_key(tfm, key) ?: tfm 852 drivers/crypto/ixp4xx_crypto.c ablk_setkey(tfm, key, key_len); tfm 855 drivers/crypto/ixp4xx_crypto.c static int ablk_rfc3686_setkey(struct crypto_ablkcipher *tfm, const u8 *key, tfm 858 drivers/crypto/ixp4xx_crypto.c struct ixp_ctx *ctx = crypto_ablkcipher_ctx(tfm); tfm 868 drivers/crypto/ixp4xx_crypto.c return ablk_setkey(tfm, key, key_len); tfm 873 drivers/crypto/ixp4xx_crypto.c struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); tfm 874 drivers/crypto/ixp4xx_crypto.c struct ixp_ctx *ctx = crypto_ablkcipher_ctx(tfm); tfm 875 drivers/crypto/ixp4xx_crypto.c unsigned ivsize = crypto_ablkcipher_ivsize(tfm); tfm 956 drivers/crypto/ixp4xx_crypto.c struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); tfm 957 drivers/crypto/ixp4xx_crypto.c struct ixp_ctx *ctx = crypto_ablkcipher_ctx(tfm); tfm 979 drivers/crypto/ixp4xx_crypto.c struct crypto_aead *tfm = crypto_aead_reqtfm(req); tfm 980 drivers/crypto/ixp4xx_crypto.c struct ixp_ctx *ctx = crypto_aead_ctx(tfm); tfm 981 drivers/crypto/ixp4xx_crypto.c unsigned ivsize = crypto_aead_ivsize(tfm); tfm 982 drivers/crypto/ixp4xx_crypto.c unsigned authsize = crypto_aead_authsize(tfm); tfm 1090 drivers/crypto/ixp4xx_crypto.c static int aead_setup(struct crypto_aead *tfm, unsigned int authsize) tfm 1092 drivers/crypto/ixp4xx_crypto.c struct ixp_ctx *ctx = crypto_aead_ctx(tfm); tfm 1093 drivers/crypto/ixp4xx_crypto.c u32 *flags = &tfm->base.crt_flags; tfm 1094 drivers/crypto/ixp4xx_crypto.c unsigned digest_len = crypto_aead_maxauthsize(tfm); tfm 1105 drivers/crypto/ixp4xx_crypto.c ret = setup_cipher(&tfm->base, 0, ctx->enckey, ctx->enckey_len); tfm 1108 drivers/crypto/ixp4xx_crypto.c ret = setup_cipher(&tfm->base, 1, ctx->enckey, ctx->enckey_len); tfm 1111 drivers/crypto/ixp4xx_crypto.c ret = setup_auth(&tfm->base, 0, authsize, ctx->authkey, tfm 1115 drivers/crypto/ixp4xx_crypto.c ret = setup_auth(&tfm->base, 1, authsize, ctx->authkey, tfm 1134 drivers/crypto/ixp4xx_crypto.c static int aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) tfm 1136 drivers/crypto/ixp4xx_crypto.c int max = crypto_aead_maxauthsize(tfm) >> 2; tfm 1140 drivers/crypto/ixp4xx_crypto.c return aead_setup(tfm, authsize); tfm 1143 drivers/crypto/ixp4xx_crypto.c static int aead_setkey(struct crypto_aead *tfm, const u8 *key, tfm 1146 drivers/crypto/ixp4xx_crypto.c struct ixp_ctx *ctx = crypto_aead_ctx(tfm); tfm 1164 drivers/crypto/ixp4xx_crypto.c return aead_setup(tfm, crypto_aead_authsize(tfm)); tfm 1166 drivers/crypto/ixp4xx_crypto.c crypto_aead_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 1171 drivers/crypto/ixp4xx_crypto.c static int des3_aead_setkey(struct crypto_aead *tfm, const u8 *key, tfm 1174 drivers/crypto/ixp4xx_crypto.c struct ixp_ctx *ctx = crypto_aead_ctx(tfm); tfm 1186 drivers/crypto/ixp4xx_crypto.c err = verify_aead_des3_key(tfm, keys.enckey, keys.enckeylen); tfm 1196 drivers/crypto/ixp4xx_crypto.c return aead_setup(tfm, crypto_aead_authsize(tfm)); tfm 71 drivers/crypto/marvell/cesa.c ctx = crypto_tfm_ctx(req->tfm); tfm 82 drivers/crypto/marvell/cesa.c ctx = crypto_tfm_ctx(req->tfm); tfm 147 drivers/crypto/marvell/cesa.c ctx = crypto_tfm_ctx(req->tfm); tfm 161 drivers/crypto/marvell/cesa.c ctx = crypto_tfm_ctx(req->tfm); tfm 228 drivers/crypto/marvell/cipher.c static void mv_cesa_skcipher_cra_exit(struct crypto_tfm *tfm) tfm 230 drivers/crypto/marvell/cipher.c void *ctx = crypto_tfm_ctx(tfm); tfm 232 drivers/crypto/marvell/cipher.c memzero_explicit(ctx, tfm->__crt_alg->cra_ctxsize); tfm 235 drivers/crypto/marvell/cipher.c static int mv_cesa_skcipher_cra_init(struct crypto_tfm *tfm) tfm 237 drivers/crypto/marvell/cipher.c struct mv_cesa_ctx *ctx = crypto_tfm_ctx(tfm); tfm 241 drivers/crypto/marvell/cipher.c crypto_skcipher_set_reqsize(__crypto_skcipher_cast(tfm), tfm 250 drivers/crypto/marvell/cipher.c struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher); tfm 251 drivers/crypto/marvell/cipher.c struct mv_cesa_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 414 drivers/crypto/marvell/cipher.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 415 drivers/crypto/marvell/cipher.c unsigned int blksize = crypto_skcipher_blocksize(tfm); tfm 468 drivers/crypto/marvell/cipher.c struct mv_cesa_des_ctx *ctx = crypto_tfm_ctx(req->base.tfm); tfm 573 drivers/crypto/marvell/cipher.c struct mv_cesa_des3_ctx *ctx = crypto_tfm_ctx(req->base.tfm); tfm 684 drivers/crypto/marvell/cipher.c struct mv_cesa_aes_ctx *ctx = crypto_tfm_ctx(req->base.tfm); tfm 426 drivers/crypto/marvell/hash.c static inline int mv_cesa_ahash_cra_init(struct crypto_tfm *tfm) tfm 428 drivers/crypto/marvell/hash.c struct mv_cesa_hash_ctx *ctx = crypto_tfm_ctx(tfm); tfm 432 drivers/crypto/marvell/hash.c crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), tfm 1175 drivers/crypto/marvell/hash.c struct crypto_ahash *tfm; tfm 1181 drivers/crypto/marvell/hash.c tfm = crypto_alloc_ahash(hash_alg_name, 0, 0); tfm 1182 drivers/crypto/marvell/hash.c if (IS_ERR(tfm)) tfm 1183 drivers/crypto/marvell/hash.c return PTR_ERR(tfm); tfm 1185 drivers/crypto/marvell/hash.c req = ahash_request_alloc(tfm, GFP_KERNEL); tfm 1191 drivers/crypto/marvell/hash.c crypto_ahash_clear_flags(tfm, ~0); tfm 1193 drivers/crypto/marvell/hash.c blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); tfm 1218 drivers/crypto/marvell/hash.c crypto_free_ahash(tfm); tfm 1223 drivers/crypto/marvell/hash.c static int mv_cesa_ahmac_cra_init(struct crypto_tfm *tfm) tfm 1225 drivers/crypto/marvell/hash.c struct mv_cesa_hmac_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1229 drivers/crypto/marvell/hash.c crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), tfm 1236 drivers/crypto/marvell/hash.c struct mv_cesa_hmac_ctx *ctx = crypto_tfm_ctx(req->base.tfm); tfm 1247 drivers/crypto/marvell/hash.c static int mv_cesa_ahmac_md5_setkey(struct crypto_ahash *tfm, const u8 *key, tfm 1250 drivers/crypto/marvell/hash.c struct mv_cesa_hmac_ctx *ctx = crypto_tfm_ctx(crypto_ahash_tfm(tfm)); tfm 1306 drivers/crypto/marvell/hash.c struct mv_cesa_hmac_ctx *ctx = crypto_tfm_ctx(req->base.tfm); tfm 1317 drivers/crypto/marvell/hash.c static int mv_cesa_ahmac_sha1_setkey(struct crypto_ahash *tfm, const u8 *key, tfm 1320 drivers/crypto/marvell/hash.c struct mv_cesa_hmac_ctx *ctx = crypto_tfm_ctx(crypto_ahash_tfm(tfm)); tfm 1374 drivers/crypto/marvell/hash.c static int mv_cesa_ahmac_sha256_setkey(struct crypto_ahash *tfm, const u8 *key, tfm 1377 drivers/crypto/marvell/hash.c struct mv_cesa_hmac_ctx *ctx = crypto_tfm_ctx(crypto_ahash_tfm(tfm)); tfm 1396 drivers/crypto/marvell/hash.c struct mv_cesa_hmac_ctx *ctx = crypto_tfm_ctx(req->base.tfm); tfm 160 drivers/crypto/marvell/tdma.c ctx = crypto_tfm_ctx(req->tfm); tfm 97 drivers/crypto/mediatek/mtk-aes.c __le32 tfm[2]; tfm 296 drivers/crypto/mediatek/mtk-aes.c cmd->tfm = cpu_to_le32(aes->ctx->tfm_dma); tfm 426 drivers/crypto/mediatek/mtk-aes.c info->tfm[0] = AES_TFM_SIZE(ctx->keylen) | ctx->keymode; tfm 428 drivers/crypto/mediatek/mtk-aes.c info->tfm[0] |= AES_TFM_BASIC_OUT; tfm 430 drivers/crypto/mediatek/mtk-aes.c info->tfm[0] |= AES_TFM_BASIC_IN; tfm 434 drivers/crypto/mediatek/mtk-aes.c info->tfm[1] = AES_TFM_CBC; tfm 437 drivers/crypto/mediatek/mtk-aes.c info->tfm[1] = AES_TFM_ECB; tfm 440 drivers/crypto/mediatek/mtk-aes.c info->tfm[1] = AES_TFM_CTR_LOAD; tfm 443 drivers/crypto/mediatek/mtk-aes.c info->tfm[1] = AES_TFM_OFB; tfm 446 drivers/crypto/mediatek/mtk-aes.c info->tfm[1] = AES_TFM_CFB128; tfm 456 drivers/crypto/mediatek/mtk-aes.c info->tfm[0] += AES_TFM_SIZE(SIZE_IN_WORDS(AES_BLOCK_SIZE)); tfm 457 drivers/crypto/mediatek/mtk-aes.c info->tfm[1] |= AES_TFM_FULL_IV; tfm 537 drivers/crypto/mediatek/mtk-aes.c ctx = crypto_tfm_ctx(areq->tfm); tfm 637 drivers/crypto/mediatek/mtk-aes.c static int mtk_aes_setkey(struct crypto_ablkcipher *tfm, tfm 640 drivers/crypto/mediatek/mtk-aes.c struct mtk_aes_base_ctx *ctx = crypto_ablkcipher_ctx(tfm); tfm 654 drivers/crypto/mediatek/mtk-aes.c crypto_ablkcipher_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 732 drivers/crypto/mediatek/mtk-aes.c static int mtk_aes_cra_init(struct crypto_tfm *tfm) tfm 734 drivers/crypto/mediatek/mtk-aes.c struct mtk_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 736 drivers/crypto/mediatek/mtk-aes.c tfm->crt_ablkcipher.reqsize = sizeof(struct mtk_aes_reqctx); tfm 741 drivers/crypto/mediatek/mtk-aes.c static int mtk_aes_ctr_cra_init(struct crypto_tfm *tfm) tfm 743 drivers/crypto/mediatek/mtk-aes.c struct mtk_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 745 drivers/crypto/mediatek/mtk-aes.c tfm->crt_ablkcipher.reqsize = sizeof(struct mtk_aes_reqctx); tfm 897 drivers/crypto/mediatek/mtk-aes.c info->tfm[0] = AES_TFM_GCM_OUT; tfm 901 drivers/crypto/mediatek/mtk-aes.c info->tfm[0] = AES_TFM_GCM_IN; tfm 905 drivers/crypto/mediatek/mtk-aes.c info->tfm[0] |= AES_TFM_GHASH_DIGEST | AES_TFM_GHASH | AES_TFM_SIZE( tfm 908 drivers/crypto/mediatek/mtk-aes.c info->tfm[1] = AES_TFM_CTR_INIT | AES_TFM_IV_CTR_MODE | AES_TFM_3IV | tfm 66 drivers/crypto/mediatek/mtk-platform.h __le32 tfm; tfm 70 drivers/crypto/mediatek/mtk-sha.c __le32 tfm[2]; tfm 283 drivers/crypto/mediatek/mtk-sha.c info->tfm[0] = SHA_TFM_HASH | SHA_TFM_SIZE(SIZE_IN_WORDS(ctx->ds)); tfm 287 drivers/crypto/mediatek/mtk-sha.c info->tfm[0] |= SHA_TFM_SHA1; tfm 290 drivers/crypto/mediatek/mtk-sha.c info->tfm[0] |= SHA_TFM_SHA224; tfm 293 drivers/crypto/mediatek/mtk-sha.c info->tfm[0] |= SHA_TFM_SHA256; tfm 296 drivers/crypto/mediatek/mtk-sha.c info->tfm[0] |= SHA_TFM_SHA384; tfm 299 drivers/crypto/mediatek/mtk-sha.c info->tfm[0] |= SHA_TFM_SHA512; tfm 307 drivers/crypto/mediatek/mtk-sha.c info->tfm[1] = SHA_TFM_HASH_STORE; tfm 308 drivers/crypto/mediatek/mtk-sha.c info->ctrl[0] = info->tfm[0] | SHA_TFM_CONTINUE | SHA_TFM_START; tfm 309 drivers/crypto/mediatek/mtk-sha.c info->ctrl[1] = info->tfm[1]; tfm 358 drivers/crypto/mediatek/mtk-sha.c struct mtk_sha_ctx *tctx = crypto_tfm_ctx(req->base.tfm); tfm 364 drivers/crypto/mediatek/mtk-sha.c shash->tfm = bctx->shash; tfm 374 drivers/crypto/mediatek/mtk-sha.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 375 drivers/crypto/mediatek/mtk-sha.c struct mtk_sha_ctx *tctx = crypto_ahash_ctx(tfm); tfm 379 drivers/crypto/mediatek/mtk-sha.c ctx->ds = crypto_ahash_digestsize(tfm); tfm 443 drivers/crypto/mediatek/mtk-sha.c cmd->tfm = cpu_to_le32(ctx->tfm_dma); tfm 706 drivers/crypto/mediatek/mtk-sha.c struct mtk_sha_ctx *tctx = crypto_tfm_ctx(req->base.tfm); tfm 799 drivers/crypto/mediatek/mtk-sha.c static int mtk_sha_setkey(struct crypto_ahash *tfm, const u8 *key, tfm 802 drivers/crypto/mediatek/mtk-sha.c struct mtk_sha_ctx *tctx = crypto_ahash_ctx(tfm); tfm 810 drivers/crypto/mediatek/mtk-sha.c shash->tfm = bctx->shash; tfm 848 drivers/crypto/mediatek/mtk-sha.c static int mtk_sha_cra_init_alg(struct crypto_tfm *tfm, tfm 851 drivers/crypto/mediatek/mtk-sha.c struct mtk_sha_ctx *tctx = crypto_tfm_ctx(tfm); tfm 858 drivers/crypto/mediatek/mtk-sha.c crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), tfm 877 drivers/crypto/mediatek/mtk-sha.c static int mtk_sha_cra_init(struct crypto_tfm *tfm) tfm 879 drivers/crypto/mediatek/mtk-sha.c return mtk_sha_cra_init_alg(tfm, NULL); tfm 882 drivers/crypto/mediatek/mtk-sha.c static int mtk_sha_cra_sha1_init(struct crypto_tfm *tfm) tfm 884 drivers/crypto/mediatek/mtk-sha.c return mtk_sha_cra_init_alg(tfm, "sha1"); tfm 887 drivers/crypto/mediatek/mtk-sha.c static int mtk_sha_cra_sha224_init(struct crypto_tfm *tfm) tfm 889 drivers/crypto/mediatek/mtk-sha.c return mtk_sha_cra_init_alg(tfm, "sha224"); tfm 892 drivers/crypto/mediatek/mtk-sha.c static int mtk_sha_cra_sha256_init(struct crypto_tfm *tfm) tfm 894 drivers/crypto/mediatek/mtk-sha.c return mtk_sha_cra_init_alg(tfm, "sha256"); tfm 897 drivers/crypto/mediatek/mtk-sha.c static int mtk_sha_cra_sha384_init(struct crypto_tfm *tfm) tfm 899 drivers/crypto/mediatek/mtk-sha.c return mtk_sha_cra_init_alg(tfm, "sha384"); tfm 902 drivers/crypto/mediatek/mtk-sha.c static int mtk_sha_cra_sha512_init(struct crypto_tfm *tfm) tfm 904 drivers/crypto/mediatek/mtk-sha.c return mtk_sha_cra_init_alg(tfm, "sha512"); tfm 907 drivers/crypto/mediatek/mtk-sha.c static void mtk_sha_cra_exit(struct crypto_tfm *tfm) tfm 909 drivers/crypto/mediatek/mtk-sha.c struct mtk_sha_ctx *tctx = crypto_tfm_ctx(tfm); tfm 279 drivers/crypto/mxs-dcp.c struct dcp_async_ctx *actx = crypto_tfm_ctx(arq->tfm); tfm 428 drivers/crypto/mxs-dcp.c struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); tfm 429 drivers/crypto/mxs-dcp.c struct dcp_async_ctx *ctx = crypto_ablkcipher_ctx(tfm); tfm 452 drivers/crypto/mxs-dcp.c struct dcp_async_ctx *actx = crypto_tfm_ctx(arq->tfm); tfm 492 drivers/crypto/mxs-dcp.c static int mxs_dcp_aes_setkey(struct crypto_ablkcipher *tfm, const u8 *key, tfm 495 drivers/crypto/mxs-dcp.c struct dcp_async_ctx *actx = crypto_ablkcipher_ctx(tfm); tfm 516 drivers/crypto/mxs-dcp.c tfm->base.crt_flags & CRYPTO_TFM_REQ_MASK); tfm 522 drivers/crypto/mxs-dcp.c tfm->base.crt_flags &= ~CRYPTO_TFM_RES_MASK; tfm 523 drivers/crypto/mxs-dcp.c tfm->base.crt_flags |= crypto_sync_skcipher_get_flags(actx->fallback) & tfm 529 drivers/crypto/mxs-dcp.c static int mxs_dcp_aes_fallback_init(struct crypto_tfm *tfm) tfm 531 drivers/crypto/mxs-dcp.c const char *name = crypto_tfm_alg_name(tfm); tfm 532 drivers/crypto/mxs-dcp.c struct dcp_async_ctx *actx = crypto_tfm_ctx(tfm); tfm 540 drivers/crypto/mxs-dcp.c tfm->crt_ablkcipher.reqsize = sizeof(struct dcp_aes_req_ctx); tfm 544 drivers/crypto/mxs-dcp.c static void mxs_dcp_aes_fallback_exit(struct crypto_tfm *tfm) tfm 546 drivers/crypto/mxs-dcp.c struct dcp_async_ctx *actx = crypto_tfm_ctx(tfm); tfm 559 drivers/crypto/mxs-dcp.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 560 drivers/crypto/mxs-dcp.c struct dcp_async_ctx *actx = crypto_ahash_ctx(tfm); tfm 587 drivers/crypto/mxs-dcp.c struct hash_alg_common *halg = crypto_hash_alg_common(tfm); tfm 621 drivers/crypto/mxs-dcp.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 622 drivers/crypto/mxs-dcp.c struct dcp_async_ctx *actx = crypto_ahash_ctx(tfm); tfm 624 drivers/crypto/mxs-dcp.c struct hash_alg_common *halg = crypto_hash_alg_common(tfm); tfm 726 drivers/crypto/mxs-dcp.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 727 drivers/crypto/mxs-dcp.c struct dcp_async_ctx *actx = crypto_ahash_ctx(tfm); tfm 729 drivers/crypto/mxs-dcp.c struct hash_alg_common *halg = crypto_hash_alg_common(tfm); tfm 756 drivers/crypto/mxs-dcp.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 757 drivers/crypto/mxs-dcp.c struct dcp_async_ctx *actx = crypto_ahash_ctx(tfm); tfm 818 drivers/crypto/mxs-dcp.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 819 drivers/crypto/mxs-dcp.c struct dcp_async_ctx *actx = crypto_ahash_ctx(tfm); tfm 833 drivers/crypto/mxs-dcp.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 834 drivers/crypto/mxs-dcp.c struct dcp_async_ctx *actx_state = crypto_ahash_ctx(tfm); tfm 843 drivers/crypto/mxs-dcp.c static int dcp_sha_cra_init(struct crypto_tfm *tfm) tfm 845 drivers/crypto/mxs-dcp.c crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), tfm 850 drivers/crypto/mxs-dcp.c static void dcp_sha_cra_exit(struct crypto_tfm *tfm) tfm 259 drivers/crypto/n2_core.c static inline struct n2_ahash_alg *n2_ahash_alg(struct crypto_tfm *tfm) tfm 261 drivers/crypto/n2_core.c struct crypto_alg *alg = tfm->__crt_alg; tfm 274 drivers/crypto/n2_core.c static inline struct n2_hmac_alg *n2_hmac_alg(struct crypto_tfm *tfm) tfm 276 drivers/crypto/n2_core.c struct crypto_alg *alg = tfm->__crt_alg; tfm 312 drivers/crypto/n2_core.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 313 drivers/crypto/n2_core.c struct n2_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 324 drivers/crypto/n2_core.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 325 drivers/crypto/n2_core.c struct n2_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 338 drivers/crypto/n2_core.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 339 drivers/crypto/n2_core.c struct n2_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 351 drivers/crypto/n2_core.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 352 drivers/crypto/n2_core.c struct n2_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 373 drivers/crypto/n2_core.c static int n2_hash_cra_init(struct crypto_tfm *tfm) tfm 375 drivers/crypto/n2_core.c const char *fallback_driver_name = crypto_tfm_alg_name(tfm); tfm 376 drivers/crypto/n2_core.c struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); tfm 400 drivers/crypto/n2_core.c static void n2_hash_cra_exit(struct crypto_tfm *tfm) tfm 402 drivers/crypto/n2_core.c struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); tfm 408 drivers/crypto/n2_core.c static int n2_hmac_cra_init(struct crypto_tfm *tfm) tfm 410 drivers/crypto/n2_core.c const char *fallback_driver_name = crypto_tfm_alg_name(tfm); tfm 411 drivers/crypto/n2_core.c struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); tfm 413 drivers/crypto/n2_core.c struct n2_hmac_alg *n2alg = n2_hmac_alg(tfm); tfm 449 drivers/crypto/n2_core.c static void n2_hmac_cra_exit(struct crypto_tfm *tfm) tfm 451 drivers/crypto/n2_core.c struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); tfm 458 drivers/crypto/n2_core.c static int n2_hmac_async_setkey(struct crypto_ahash *tfm, const u8 *key, tfm 461 drivers/crypto/n2_core.c struct n2_hmac_ctx *ctx = crypto_ahash_ctx(tfm); tfm 472 drivers/crypto/n2_core.c shash->tfm = child_shash; tfm 525 drivers/crypto/n2_core.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 538 drivers/crypto/n2_core.c struct n2_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 611 drivers/crypto/n2_core.c struct n2_ahash_alg *n2alg = n2_ahash_alg(req->base.tfm); tfm 629 drivers/crypto/n2_core.c struct n2_hmac_alg *n2alg = n2_hmac_alg(req->base.tfm); tfm 631 drivers/crypto/n2_core.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 632 drivers/crypto/n2_core.c struct n2_hmac_ctx *ctx = crypto_ahash_ctx(tfm); tfm 639 drivers/crypto/n2_core.c struct n2_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 717 drivers/crypto/n2_core.c static inline struct n2_cipher_alg *n2_cipher_alg(struct crypto_tfm *tfm) tfm 719 drivers/crypto/n2_core.c struct crypto_alg *alg = tfm->__crt_alg; tfm 731 drivers/crypto/n2_core.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); tfm 732 drivers/crypto/n2_core.c struct n2_cipher_context *ctx = crypto_tfm_ctx(tfm); tfm 733 drivers/crypto/n2_core.c struct n2_cipher_alg *n2alg = n2_cipher_alg(tfm); tfm 760 drivers/crypto/n2_core.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); tfm 761 drivers/crypto/n2_core.c struct n2_cipher_context *ctx = crypto_tfm_ctx(tfm); tfm 762 drivers/crypto/n2_core.c struct n2_cipher_alg *n2alg = n2_cipher_alg(tfm); tfm 779 drivers/crypto/n2_core.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); tfm 780 drivers/crypto/n2_core.c struct n2_cipher_context *ctx = crypto_tfm_ctx(tfm); tfm 781 drivers/crypto/n2_core.c struct n2_cipher_alg *n2alg = n2_cipher_alg(tfm); tfm 798 drivers/crypto/n2_core.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); tfm 799 drivers/crypto/n2_core.c struct n2_cipher_context *ctx = crypto_tfm_ctx(tfm); tfm 800 drivers/crypto/n2_core.c struct n2_cipher_alg *n2alg = n2_cipher_alg(tfm); tfm 833 drivers/crypto/n2_core.c static int __n2_crypt_chunk(struct crypto_tfm *tfm, struct n2_crypto_chunk *cp, tfm 836 drivers/crypto/n2_core.c struct n2_cipher_context *ctx = crypto_tfm_ctx(tfm); tfm 981 drivers/crypto/n2_core.c struct crypto_tfm *tfm = req->base.tfm; tfm 998 drivers/crypto/n2_core.c err = __n2_crypt_chunk(tfm, c, qp, encrypt); tfm 1033 drivers/crypto/n2_core.c struct crypto_tfm *tfm = req->base.tfm; tfm 1057 drivers/crypto/n2_core.c err = __n2_crypt_chunk(tfm, c, qp, true); tfm 1087 drivers/crypto/n2_core.c err = __n2_crypt_chunk(tfm, c, qp, false); tfm 1368 drivers/crypto/n2_core.c static int n2_cipher_cra_init(struct crypto_tfm *tfm) tfm 1370 drivers/crypto/n2_core.c tfm->crt_ablkcipher.reqsize = sizeof(struct n2_request_context); tfm 986 drivers/crypto/nx/nx-842-powernv.c static int nx842_powernv_crypto_init(struct crypto_tfm *tfm) tfm 988 drivers/crypto/nx/nx-842-powernv.c return nx842_crypto_init(tfm, &nx842_powernv_driver); tfm 954 drivers/crypto/nx/nx-842-pseries.c static int nx842_pseries_crypto_init(struct crypto_tfm *tfm) tfm 956 drivers/crypto/nx/nx-842-pseries.c return nx842_crypto_init(tfm, &nx842_pseries_driver); tfm 104 drivers/crypto/nx/nx-842.c int nx842_crypto_init(struct crypto_tfm *tfm, struct nx842_driver *driver) tfm 106 drivers/crypto/nx/nx-842.c struct nx842_crypto_ctx *ctx = crypto_tfm_ctx(tfm); tfm 124 drivers/crypto/nx/nx-842.c void nx842_crypto_exit(struct crypto_tfm *tfm) tfm 126 drivers/crypto/nx/nx-842.c struct nx842_crypto_ctx *ctx = crypto_tfm_ctx(tfm); tfm 249 drivers/crypto/nx/nx-842.c int nx842_crypto_compress(struct crypto_tfm *tfm, tfm 253 drivers/crypto/nx/nx-842.c struct nx842_crypto_ctx *ctx = crypto_tfm_ctx(tfm); tfm 432 drivers/crypto/nx/nx-842.c int nx842_crypto_decompress(struct crypto_tfm *tfm, tfm 436 drivers/crypto/nx/nx-842.c struct nx842_crypto_ctx *ctx = crypto_tfm_ctx(tfm); tfm 180 drivers/crypto/nx/nx-842.h int nx842_crypto_init(struct crypto_tfm *tfm, struct nx842_driver *driver); tfm 181 drivers/crypto/nx/nx-842.h void nx842_crypto_exit(struct crypto_tfm *tfm); tfm 182 drivers/crypto/nx/nx-842.h int nx842_crypto_compress(struct crypto_tfm *tfm, tfm 185 drivers/crypto/nx/nx-842.h int nx842_crypto_decompress(struct crypto_tfm *tfm, tfm 21 drivers/crypto/nx/nx-aes-cbc.c static int cbc_aes_nx_set_key(struct crypto_tfm *tfm, tfm 25 drivers/crypto/nx/nx-aes-cbc.c struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(tfm); tfm 59 drivers/crypto/nx/nx-aes-cbc.c struct nx_crypto_ctx *nx_ctx = crypto_blkcipher_ctx(desc->tfm); tfm 23 drivers/crypto/nx/nx-aes-ccm.c static int ccm_aes_nx_set_key(struct crypto_aead *tfm, tfm 27 drivers/crypto/nx/nx-aes-ccm.c struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(&tfm->base); tfm 53 drivers/crypto/nx/nx-aes-ccm.c static int ccm4309_aes_nx_set_key(struct crypto_aead *tfm, tfm 57 drivers/crypto/nx/nx-aes-ccm.c struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(&tfm->base); tfm 66 drivers/crypto/nx/nx-aes-ccm.c return ccm_aes_nx_set_key(tfm, in_key, key_len); tfm 69 drivers/crypto/nx/nx-aes-ccm.c static int ccm_aes_nx_setauthsize(struct crypto_aead *tfm, tfm 88 drivers/crypto/nx/nx-aes-ccm.c static int ccm4309_aes_nx_setauthsize(struct crypto_aead *tfm, tfm 333 drivers/crypto/nx/nx-aes-ccm.c struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(req->base.tfm); tfm 411 drivers/crypto/nx/nx-aes-ccm.c struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(req->base.tfm); tfm 482 drivers/crypto/nx/nx-aes-ccm.c struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(req->base.tfm); tfm 512 drivers/crypto/nx/nx-aes-ccm.c struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(req->base.tfm); tfm 22 drivers/crypto/nx/nx-aes-ctr.c static int ctr_aes_nx_set_key(struct crypto_tfm *tfm, tfm 26 drivers/crypto/nx/nx-aes-ctr.c struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(tfm); tfm 54 drivers/crypto/nx/nx-aes-ctr.c static int ctr3686_aes_nx_set_key(struct crypto_tfm *tfm, tfm 58 drivers/crypto/nx/nx-aes-ctr.c struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(tfm); tfm 69 drivers/crypto/nx/nx-aes-ctr.c return ctr_aes_nx_set_key(tfm, in_key, key_len); tfm 77 drivers/crypto/nx/nx-aes-ctr.c struct nx_crypto_ctx *nx_ctx = crypto_blkcipher_ctx(desc->tfm); tfm 121 drivers/crypto/nx/nx-aes-ctr.c struct nx_crypto_ctx *nx_ctx = crypto_blkcipher_ctx(desc->tfm); tfm 21 drivers/crypto/nx/nx-aes-ecb.c static int ecb_aes_nx_set_key(struct crypto_tfm *tfm, tfm 25 drivers/crypto/nx/nx-aes-ecb.c struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(tfm); tfm 59 drivers/crypto/nx/nx-aes-ecb.c struct nx_crypto_ctx *nx_ctx = crypto_blkcipher_ctx(desc->tfm); tfm 23 drivers/crypto/nx/nx-aes-gcm.c static int gcm_aes_nx_set_key(struct crypto_aead *tfm, tfm 27 drivers/crypto/nx/nx-aes-gcm.c struct nx_crypto_ctx *nx_ctx = crypto_aead_ctx(tfm); tfm 62 drivers/crypto/nx/nx-aes-gcm.c static int gcm4106_aes_nx_set_key(struct crypto_aead *tfm, tfm 66 drivers/crypto/nx/nx-aes-gcm.c struct nx_crypto_ctx *nx_ctx = crypto_aead_ctx(tfm); tfm 75 drivers/crypto/nx/nx-aes-gcm.c rc = gcm_aes_nx_set_key(tfm, in_key, key_len); tfm 84 drivers/crypto/nx/nx-aes-gcm.c static int gcm4106_aes_nx_setauthsize(struct crypto_aead *tfm, tfm 61 drivers/crypto/nx/nx-aes-xcbc.c struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(&desc->tfm->base); tfm 138 drivers/crypto/nx/nx-aes-xcbc.c static int nx_crypto_ctx_aes_xcbc_init2(struct crypto_tfm *tfm) tfm 140 drivers/crypto/nx/nx-aes-xcbc.c struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(tfm); tfm 144 drivers/crypto/nx/nx-aes-xcbc.c err = nx_crypto_ctx_aes_xcbc_init(tfm); tfm 170 drivers/crypto/nx/nx-aes-xcbc.c struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(&desc->tfm->base); tfm 295 drivers/crypto/nx/nx-aes-xcbc.c struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(&desc->tfm->base); tfm 20 drivers/crypto/nx/nx-sha256.c static int nx_crypto_ctx_sha256_init(struct crypto_tfm *tfm) tfm 22 drivers/crypto/nx/nx-sha256.c struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(tfm); tfm 25 drivers/crypto/nx/nx-sha256.c err = nx_crypto_ctx_sha_init(tfm); tfm 60 drivers/crypto/nx/nx-sha256.c struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(&desc->tfm->base); tfm 179 drivers/crypto/nx/nx-sha256.c struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(&desc->tfm->base); tfm 19 drivers/crypto/nx/nx-sha512.c static int nx_crypto_ctx_sha512_init(struct crypto_tfm *tfm) tfm 21 drivers/crypto/nx/nx-sha512.c struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(tfm); tfm 24 drivers/crypto/nx/nx-sha512.c err = nx_crypto_ctx_sha_init(tfm); tfm 60 drivers/crypto/nx/nx-sha512.c struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(&desc->tfm->base); tfm 182 drivers/crypto/nx/nx-sha512.c struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(&desc->tfm->base); tfm 693 drivers/crypto/nx/nx.c int nx_crypto_ctx_aes_ccm_init(struct crypto_aead *tfm) tfm 695 drivers/crypto/nx/nx.c crypto_aead_set_reqsize(tfm, sizeof(struct nx_ccm_rctx)); tfm 696 drivers/crypto/nx/nx.c return nx_crypto_ctx_init(crypto_aead_ctx(tfm), NX_FC_AES, tfm 700 drivers/crypto/nx/nx.c int nx_crypto_ctx_aes_gcm_init(struct crypto_aead *tfm) tfm 702 drivers/crypto/nx/nx.c crypto_aead_set_reqsize(tfm, sizeof(struct nx_gcm_rctx)); tfm 703 drivers/crypto/nx/nx.c return nx_crypto_ctx_init(crypto_aead_ctx(tfm), NX_FC_AES, tfm 707 drivers/crypto/nx/nx.c int nx_crypto_ctx_aes_ctr_init(struct crypto_tfm *tfm) tfm 709 drivers/crypto/nx/nx.c return nx_crypto_ctx_init(crypto_tfm_ctx(tfm), NX_FC_AES, tfm 713 drivers/crypto/nx/nx.c int nx_crypto_ctx_aes_cbc_init(struct crypto_tfm *tfm) tfm 715 drivers/crypto/nx/nx.c return nx_crypto_ctx_init(crypto_tfm_ctx(tfm), NX_FC_AES, tfm 719 drivers/crypto/nx/nx.c int nx_crypto_ctx_aes_ecb_init(struct crypto_tfm *tfm) tfm 721 drivers/crypto/nx/nx.c return nx_crypto_ctx_init(crypto_tfm_ctx(tfm), NX_FC_AES, tfm 725 drivers/crypto/nx/nx.c int nx_crypto_ctx_sha_init(struct crypto_tfm *tfm) tfm 727 drivers/crypto/nx/nx.c return nx_crypto_ctx_init(crypto_tfm_ctx(tfm), NX_FC_SHA, NX_MODE_SHA); tfm 730 drivers/crypto/nx/nx.c int nx_crypto_ctx_aes_xcbc_init(struct crypto_tfm *tfm) tfm 732 drivers/crypto/nx/nx.c return nx_crypto_ctx_init(crypto_tfm_ctx(tfm), NX_FC_AES, tfm 744 drivers/crypto/nx/nx.c void nx_crypto_ctx_exit(struct crypto_tfm *tfm) tfm 746 drivers/crypto/nx/nx.c struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(tfm); tfm 755 drivers/crypto/nx/nx.c void nx_crypto_ctx_aead_exit(struct crypto_aead *tfm) tfm 757 drivers/crypto/nx/nx.c struct nx_crypto_ctx *nx_ctx = crypto_aead_ctx(tfm); tfm 145 drivers/crypto/nx/nx.h int nx_crypto_ctx_aes_ccm_init(struct crypto_aead *tfm); tfm 146 drivers/crypto/nx/nx.h int nx_crypto_ctx_aes_gcm_init(struct crypto_aead *tfm); tfm 147 drivers/crypto/nx/nx.h int nx_crypto_ctx_aes_xcbc_init(struct crypto_tfm *tfm); tfm 148 drivers/crypto/nx/nx.h int nx_crypto_ctx_aes_ctr_init(struct crypto_tfm *tfm); tfm 149 drivers/crypto/nx/nx.h int nx_crypto_ctx_aes_cbc_init(struct crypto_tfm *tfm); tfm 150 drivers/crypto/nx/nx.h int nx_crypto_ctx_aes_ecb_init(struct crypto_tfm *tfm); tfm 151 drivers/crypto/nx/nx.h int nx_crypto_ctx_sha_init(struct crypto_tfm *tfm); tfm 152 drivers/crypto/nx/nx.h void nx_crypto_ctx_exit(struct crypto_tfm *tfm); tfm 153 drivers/crypto/nx/nx.h void nx_crypto_ctx_aead_exit(struct crypto_aead *tfm); tfm 372 drivers/crypto/omap-aes-gcm.c int omap_aes_gcm_setkey(struct crypto_aead *tfm, const u8 *key, tfm 375 drivers/crypto/omap-aes-gcm.c struct omap_aes_ctx *ctx = crypto_aead_ctx(tfm); tfm 387 drivers/crypto/omap-aes-gcm.c int omap_aes_4106gcm_setkey(struct crypto_aead *tfm, const u8 *key, tfm 390 drivers/crypto/omap-aes-gcm.c struct omap_aes_ctx *ctx = crypto_aead_ctx(tfm); tfm 548 drivers/crypto/omap-aes.c static int omap_aes_setkey(struct crypto_ablkcipher *tfm, const u8 *key, tfm 551 drivers/crypto/omap-aes.c struct omap_aes_ctx *ctx = crypto_ablkcipher_ctx(tfm); tfm 564 drivers/crypto/omap-aes.c crypto_sync_skcipher_set_flags(ctx->fallback, tfm->base.crt_flags & tfm 609 drivers/crypto/omap-aes.c static int omap_aes_cra_init(struct crypto_tfm *tfm) tfm 611 drivers/crypto/omap-aes.c const char *name = crypto_tfm_alg_name(tfm); tfm 612 drivers/crypto/omap-aes.c struct omap_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 621 drivers/crypto/omap-aes.c tfm->crt_ablkcipher.reqsize = sizeof(struct omap_aes_reqctx); tfm 630 drivers/crypto/omap-aes.c static int omap_aes_gcm_cra_init(struct crypto_aead *tfm) tfm 633 drivers/crypto/omap-aes.c struct omap_aes_ctx *ctx = crypto_aead_ctx(tfm); tfm 650 drivers/crypto/omap-aes.c tfm->reqsize = sizeof(struct omap_aes_reqctx); tfm 660 drivers/crypto/omap-aes.c static void omap_aes_cra_exit(struct crypto_tfm *tfm) tfm 662 drivers/crypto/omap-aes.c struct omap_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 670 drivers/crypto/omap-aes.c static void omap_aes_gcm_cra_exit(struct crypto_aead *tfm) tfm 672 drivers/crypto/omap-aes.c struct omap_aes_ctx *ctx = crypto_aead_ctx(tfm); tfm 674 drivers/crypto/omap-aes.c omap_aes_cra_exit(crypto_aead_tfm(tfm)); tfm 199 drivers/crypto/omap-aes.h int omap_aes_gcm_setkey(struct crypto_aead *tfm, const u8 *key, tfm 201 drivers/crypto/omap-aes.h int omap_aes_4106gcm_setkey(struct crypto_aead *tfm, const u8 *key, tfm 376 drivers/crypto/omap-des.c static int omap_des_crypt_dma(struct crypto_tfm *tfm, tfm 380 drivers/crypto/omap-des.c struct omap_des_ctx *ctx = crypto_tfm_ctx(tfm); tfm 459 drivers/crypto/omap-des.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm( tfm 481 drivers/crypto/omap-des.c err = omap_des_crypt_dma(tfm, dd->in_sg, dd->out_sg, dd->in_sg_len, tfm 710 drivers/crypto/omap-des.c static int omap_des_cra_init(struct crypto_tfm *tfm) tfm 712 drivers/crypto/omap-des.c struct omap_des_ctx *ctx = crypto_tfm_ctx(tfm); tfm 716 drivers/crypto/omap-des.c tfm->crt_ablkcipher.reqsize = sizeof(struct omap_des_reqctx); tfm 725 drivers/crypto/omap-des.c static void omap_des_cra_exit(struct crypto_tfm *tfm) tfm 303 drivers/crypto/omap-sham.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(dd->req); tfm 304 drivers/crypto/omap-sham.c struct omap_sham_ctx *tctx = crypto_ahash_ctx(tfm); tfm 465 drivers/crypto/omap-sham.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(dd->req); tfm 466 drivers/crypto/omap-sham.c struct omap_sham_ctx *tctx = crypto_ahash_ctx(tfm); tfm 923 drivers/crypto/omap-sham.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 924 drivers/crypto/omap-sham.c struct omap_sham_ctx *tctx = crypto_ahash_ctx(tfm); tfm 946 drivers/crypto/omap-sham.c crypto_ahash_digestsize(tfm)); tfm 948 drivers/crypto/omap-sham.c switch (crypto_ahash_digestsize(tfm)) { tfm 1048 drivers/crypto/omap-sham.c struct omap_sham_ctx *tctx = crypto_tfm_ctx(req->base.tfm); tfm 1054 drivers/crypto/omap-sham.c shash->tfm = bctx->shash; tfm 1190 drivers/crypto/omap-sham.c struct omap_sham_ctx *tctx = crypto_tfm_ctx(req->base.tfm); tfm 1219 drivers/crypto/omap-sham.c static int omap_sham_shash_digest(struct crypto_shash *tfm, u32 flags, tfm 1222 drivers/crypto/omap-sham.c SHASH_DESC_ON_STACK(shash, tfm); tfm 1224 drivers/crypto/omap-sham.c shash->tfm = tfm; tfm 1231 drivers/crypto/omap-sham.c struct omap_sham_ctx *tctx = crypto_tfm_ctx(req->base.tfm); tfm 1298 drivers/crypto/omap-sham.c static int omap_sham_setkey(struct crypto_ahash *tfm, const u8 *key, tfm 1301 drivers/crypto/omap-sham.c struct omap_sham_ctx *tctx = crypto_ahash_ctx(tfm); tfm 1349 drivers/crypto/omap-sham.c static int omap_sham_cra_init_alg(struct crypto_tfm *tfm, const char *alg_base) tfm 1351 drivers/crypto/omap-sham.c struct omap_sham_ctx *tctx = crypto_tfm_ctx(tfm); tfm 1352 drivers/crypto/omap-sham.c const char *alg_name = crypto_tfm_alg_name(tfm); tfm 1363 drivers/crypto/omap-sham.c crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), tfm 1383 drivers/crypto/omap-sham.c static int omap_sham_cra_init(struct crypto_tfm *tfm) tfm 1385 drivers/crypto/omap-sham.c return omap_sham_cra_init_alg(tfm, NULL); tfm 1388 drivers/crypto/omap-sham.c static int omap_sham_cra_sha1_init(struct crypto_tfm *tfm) tfm 1390 drivers/crypto/omap-sham.c return omap_sham_cra_init_alg(tfm, "sha1"); tfm 1393 drivers/crypto/omap-sham.c static int omap_sham_cra_sha224_init(struct crypto_tfm *tfm) tfm 1395 drivers/crypto/omap-sham.c return omap_sham_cra_init_alg(tfm, "sha224"); tfm 1398 drivers/crypto/omap-sham.c static int omap_sham_cra_sha256_init(struct crypto_tfm *tfm) tfm 1400 drivers/crypto/omap-sham.c return omap_sham_cra_init_alg(tfm, "sha256"); tfm 1403 drivers/crypto/omap-sham.c static int omap_sham_cra_md5_init(struct crypto_tfm *tfm) tfm 1405 drivers/crypto/omap-sham.c return omap_sham_cra_init_alg(tfm, "md5"); tfm 1408 drivers/crypto/omap-sham.c static int omap_sham_cra_sha384_init(struct crypto_tfm *tfm) tfm 1410 drivers/crypto/omap-sham.c return omap_sham_cra_init_alg(tfm, "sha384"); tfm 1413 drivers/crypto/omap-sham.c static int omap_sham_cra_sha512_init(struct crypto_tfm *tfm) tfm 1415 drivers/crypto/omap-sham.c return omap_sham_cra_init_alg(tfm, "sha512"); tfm 1418 drivers/crypto/omap-sham.c static void omap_sham_cra_exit(struct crypto_tfm *tfm) tfm 1420 drivers/crypto/omap-sham.c struct omap_sham_ctx *tctx = crypto_tfm_ctx(tfm); tfm 95 drivers/crypto/padlock-aes.c static inline struct aes_ctx *aes_ctx(struct crypto_tfm *tfm) tfm 97 drivers/crypto/padlock-aes.c return aes_ctx_common(crypto_tfm_ctx(tfm)); tfm 100 drivers/crypto/padlock-aes.c static inline struct aes_ctx *blk_aes_ctx(struct crypto_blkcipher *tfm) tfm 102 drivers/crypto/padlock-aes.c return aes_ctx_common(crypto_blkcipher_ctx(tfm)); tfm 105 drivers/crypto/padlock-aes.c static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, tfm 108 drivers/crypto/padlock-aes.c struct aes_ctx *ctx = aes_ctx(tfm); tfm 110 drivers/crypto/padlock-aes.c u32 *flags = &tfm->crt_flags; tfm 303 drivers/crypto/padlock-aes.c static void padlock_aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) tfm 305 drivers/crypto/padlock-aes.c struct aes_ctx *ctx = aes_ctx(tfm); tfm 312 drivers/crypto/padlock-aes.c static void padlock_aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) tfm 314 drivers/crypto/padlock-aes.c struct aes_ctx *ctx = aes_ctx(tfm); tfm 345 drivers/crypto/padlock-aes.c struct aes_ctx *ctx = blk_aes_ctx(desc->tfm); tfm 371 drivers/crypto/padlock-aes.c struct aes_ctx *ctx = blk_aes_ctx(desc->tfm); tfm 418 drivers/crypto/padlock-aes.c struct aes_ctx *ctx = blk_aes_ctx(desc->tfm); tfm 446 drivers/crypto/padlock-aes.c struct aes_ctx *ctx = blk_aes_ctx(desc->tfm); tfm 34 drivers/crypto/padlock-sha.c struct padlock_sha_ctx *ctx = crypto_shash_ctx(desc->tfm); tfm 36 drivers/crypto/padlock-sha.c dctx->fallback.tfm = ctx->fallback; tfm 58 drivers/crypto/padlock-sha.c struct padlock_sha_ctx *ctx = crypto_shash_ctx(desc->tfm); tfm 60 drivers/crypto/padlock-sha.c dctx->fallback.tfm = ctx->fallback; tfm 193 drivers/crypto/padlock-sha.c static int padlock_cra_init(struct crypto_tfm *tfm) tfm 195 drivers/crypto/padlock-sha.c struct crypto_shash *hash = __crypto_shash_cast(tfm); tfm 196 drivers/crypto/padlock-sha.c const char *fallback_driver_name = crypto_tfm_alg_name(tfm); tfm 197 drivers/crypto/padlock-sha.c struct padlock_sha_ctx *ctx = crypto_tfm_ctx(tfm); tfm 219 drivers/crypto/padlock-sha.c static void padlock_cra_exit(struct crypto_tfm *tfm) tfm 221 drivers/crypto/padlock-sha.c struct padlock_sha_ctx *ctx = crypto_tfm_ctx(tfm); tfm 445 drivers/crypto/padlock-sha.c int statesize = crypto_shash_statesize(desc->tfm); tfm 455 drivers/crypto/padlock-sha.c int statesize = crypto_shash_statesize(desc->tfm); tfm 457 drivers/crypto/picoxcell_crypto.c static int spacc_aead_setkey(struct crypto_aead *tfm, const u8 *key, tfm 460 drivers/crypto/picoxcell_crypto.c struct spacc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 465 drivers/crypto/picoxcell_crypto.c crypto_aead_set_flags(ctx->sw_cipher, crypto_aead_get_flags(tfm) & tfm 468 drivers/crypto/picoxcell_crypto.c crypto_aead_clear_flags(tfm, CRYPTO_TFM_RES_MASK); tfm 469 drivers/crypto/picoxcell_crypto.c crypto_aead_set_flags(tfm, crypto_aead_get_flags(ctx->sw_cipher) & tfm 493 drivers/crypto/picoxcell_crypto.c crypto_aead_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 498 drivers/crypto/picoxcell_crypto.c static int spacc_aead_setauthsize(struct crypto_aead *tfm, tfm 501 drivers/crypto/picoxcell_crypto.c struct spacc_aead_ctx *ctx = crypto_tfm_ctx(crypto_aead_tfm(tfm)); tfm 696 drivers/crypto/picoxcell_crypto.c static int spacc_aead_cra_init(struct crypto_aead *tfm) tfm 698 drivers/crypto/picoxcell_crypto.c struct spacc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 699 drivers/crypto/picoxcell_crypto.c struct aead_alg *alg = crypto_aead_alg(tfm); tfm 713 drivers/crypto/picoxcell_crypto.c tfm, tfm 725 drivers/crypto/picoxcell_crypto.c static void spacc_aead_cra_exit(struct crypto_aead *tfm) tfm 727 drivers/crypto/picoxcell_crypto.c struct spacc_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 779 drivers/crypto/picoxcell_crypto.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); tfm 780 drivers/crypto/picoxcell_crypto.c struct spacc_ablk_ctx *ctx = crypto_tfm_ctx(tfm); tfm 809 drivers/crypto/picoxcell_crypto.c tfm->crt_flags &= ~CRYPTO_TFM_RES_MASK; tfm 810 drivers/crypto/picoxcell_crypto.c tfm->crt_flags |= tfm 828 drivers/crypto/picoxcell_crypto.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); tfm 829 drivers/crypto/picoxcell_crypto.c struct spacc_ablk_ctx *ctx = crypto_tfm_ctx(tfm); tfm 848 drivers/crypto/picoxcell_crypto.c struct crypto_tfm *tfm = req->req->tfm; tfm 849 drivers/crypto/picoxcell_crypto.c struct crypto_alg *alg = req->req->tfm->__crt_alg; tfm 852 drivers/crypto/picoxcell_crypto.c ctx = crypto_tfm_ctx(tfm); tfm 878 drivers/crypto/picoxcell_crypto.c struct crypto_tfm *tfm = req->req->tfm; tfm 879 drivers/crypto/picoxcell_crypto.c struct spacc_ablk_ctx *ctx = crypto_tfm_ctx(tfm); tfm 881 drivers/crypto/picoxcell_crypto.c struct crypto_alg *alg = req->req->tfm->__crt_alg; tfm 938 drivers/crypto/picoxcell_crypto.c struct crypto_alg *alg = req->base.tfm->__crt_alg; tfm 1012 drivers/crypto/picoxcell_crypto.c static int spacc_ablk_cra_init(struct crypto_tfm *tfm) tfm 1014 drivers/crypto/picoxcell_crypto.c struct spacc_ablk_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1015 drivers/crypto/picoxcell_crypto.c struct crypto_alg *alg = tfm->__crt_alg; tfm 1033 drivers/crypto/picoxcell_crypto.c tfm->crt_ablkcipher.reqsize = sizeof(struct spacc_req); tfm 1038 drivers/crypto/picoxcell_crypto.c static void spacc_ablk_cra_exit(struct crypto_tfm *tfm) tfm 1040 drivers/crypto/picoxcell_crypto.c struct spacc_ablk_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1048 drivers/crypto/picoxcell_crypto.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); tfm 1049 drivers/crypto/picoxcell_crypto.c struct spacc_alg *alg = to_spacc_alg(tfm->__crt_alg); tfm 1057 drivers/crypto/picoxcell_crypto.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); tfm 1058 drivers/crypto/picoxcell_crypto.c struct spacc_alg *alg = to_spacc_alg(tfm->__crt_alg); tfm 1137 drivers/crypto/picoxcell_crypto.c struct crypto_alg *alg = req->req->tfm->__crt_alg; tfm 133 drivers/crypto/qat/qat_common/qat_algs.c struct crypto_tfm *tfm; tfm 165 drivers/crypto/qat/qat_common/qat_algs.c shash->tfm = ctx->hash_tfm; tfm 551 drivers/crypto/qat/qat_common/qat_algs.c static int qat_alg_aead_init_sessions(struct crypto_aead *tfm, const u8 *key, tfm 563 drivers/crypto/qat/qat_common/qat_algs.c if (qat_alg_aead_init_enc_session(tfm, alg, &keys, mode)) tfm 566 drivers/crypto/qat/qat_common/qat_algs.c if (qat_alg_aead_init_dec_session(tfm, alg, &keys, mode)) tfm 572 drivers/crypto/qat/qat_common/qat_algs.c crypto_aead_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 594 drivers/crypto/qat/qat_common/qat_algs.c crypto_tfm_set_flags(ctx->tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 598 drivers/crypto/qat/qat_common/qat_algs.c static int qat_alg_aead_rekey(struct crypto_aead *tfm, const uint8_t *key, tfm 601 drivers/crypto/qat/qat_common/qat_algs.c struct qat_alg_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 608 drivers/crypto/qat/qat_common/qat_algs.c return qat_alg_aead_init_sessions(tfm, key, keylen, tfm 612 drivers/crypto/qat/qat_common/qat_algs.c static int qat_alg_aead_newkey(struct crypto_aead *tfm, const uint8_t *key, tfm 615 drivers/crypto/qat/qat_common/qat_algs.c struct qat_alg_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 641 drivers/crypto/qat/qat_common/qat_algs.c ret = qat_alg_aead_init_sessions(tfm, key, keylen, tfm 664 drivers/crypto/qat/qat_common/qat_algs.c static int qat_alg_aead_setkey(struct crypto_aead *tfm, const uint8_t *key, tfm 667 drivers/crypto/qat/qat_common/qat_algs.c struct qat_alg_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 670 drivers/crypto/qat/qat_common/qat_algs.c return qat_alg_aead_rekey(tfm, key, keylen); tfm 672 drivers/crypto/qat/qat_common/qat_algs.c return qat_alg_aead_newkey(tfm, key, keylen); tfm 868 drivers/crypto/qat/qat_common/qat_algs.c struct crypto_tfm *tfm = crypto_aead_tfm(aead_tfm); tfm 869 drivers/crypto/qat/qat_common/qat_algs.c struct qat_alg_aead_ctx *ctx = crypto_tfm_ctx(tfm); tfm 910 drivers/crypto/qat/qat_common/qat_algs.c struct crypto_tfm *tfm = crypto_aead_tfm(aead_tfm); tfm 911 drivers/crypto/qat/qat_common/qat_algs.c struct qat_alg_aead_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1015 drivers/crypto/qat/qat_common/qat_algs.c static int qat_alg_ablkcipher_setkey(struct crypto_ablkcipher *tfm, tfm 1019 drivers/crypto/qat/qat_common/qat_algs.c struct qat_alg_ablkcipher_ctx *ctx = crypto_ablkcipher_ctx(tfm); tfm 1027 drivers/crypto/qat/qat_common/qat_algs.c static int qat_alg_ablkcipher_cbc_setkey(struct crypto_ablkcipher *tfm, tfm 1030 drivers/crypto/qat/qat_common/qat_algs.c return qat_alg_ablkcipher_setkey(tfm, key, keylen, tfm 1034 drivers/crypto/qat/qat_common/qat_algs.c static int qat_alg_ablkcipher_ctr_setkey(struct crypto_ablkcipher *tfm, tfm 1037 drivers/crypto/qat/qat_common/qat_algs.c return qat_alg_ablkcipher_setkey(tfm, key, keylen, tfm 1041 drivers/crypto/qat/qat_common/qat_algs.c static int qat_alg_ablkcipher_xts_setkey(struct crypto_ablkcipher *tfm, tfm 1044 drivers/crypto/qat/qat_common/qat_algs.c return qat_alg_ablkcipher_setkey(tfm, key, keylen, tfm 1051 drivers/crypto/qat/qat_common/qat_algs.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm(atfm); tfm 1052 drivers/crypto/qat/qat_common/qat_algs.c struct qat_alg_ablkcipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1111 drivers/crypto/qat/qat_common/qat_algs.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm(atfm); tfm 1112 drivers/crypto/qat/qat_common/qat_algs.c struct qat_alg_ablkcipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1167 drivers/crypto/qat/qat_common/qat_algs.c static int qat_alg_aead_init(struct crypto_aead *tfm, tfm 1171 drivers/crypto/qat/qat_common/qat_algs.c struct qat_alg_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 1177 drivers/crypto/qat/qat_common/qat_algs.c crypto_aead_set_reqsize(tfm, sizeof(struct qat_crypto_request)); tfm 1181 drivers/crypto/qat/qat_common/qat_algs.c static int qat_alg_aead_sha1_init(struct crypto_aead *tfm) tfm 1183 drivers/crypto/qat/qat_common/qat_algs.c return qat_alg_aead_init(tfm, ICP_QAT_HW_AUTH_ALGO_SHA1, "sha1"); tfm 1186 drivers/crypto/qat/qat_common/qat_algs.c static int qat_alg_aead_sha256_init(struct crypto_aead *tfm) tfm 1188 drivers/crypto/qat/qat_common/qat_algs.c return qat_alg_aead_init(tfm, ICP_QAT_HW_AUTH_ALGO_SHA256, "sha256"); tfm 1191 drivers/crypto/qat/qat_common/qat_algs.c static int qat_alg_aead_sha512_init(struct crypto_aead *tfm) tfm 1193 drivers/crypto/qat/qat_common/qat_algs.c return qat_alg_aead_init(tfm, ICP_QAT_HW_AUTH_ALGO_SHA512, "sha512"); tfm 1196 drivers/crypto/qat/qat_common/qat_algs.c static void qat_alg_aead_exit(struct crypto_aead *tfm) tfm 1198 drivers/crypto/qat/qat_common/qat_algs.c struct qat_alg_aead_ctx *ctx = crypto_aead_ctx(tfm); tfm 1221 drivers/crypto/qat/qat_common/qat_algs.c static int qat_alg_ablkcipher_init(struct crypto_tfm *tfm) tfm 1223 drivers/crypto/qat/qat_common/qat_algs.c struct qat_alg_ablkcipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1225 drivers/crypto/qat/qat_common/qat_algs.c tfm->crt_ablkcipher.reqsize = sizeof(struct qat_crypto_request); tfm 1226 drivers/crypto/qat/qat_common/qat_algs.c ctx->tfm = tfm; tfm 1230 drivers/crypto/qat/qat_common/qat_algs.c static void qat_alg_ablkcipher_exit(struct crypto_tfm *tfm) tfm 1232 drivers/crypto/qat/qat_common/qat_algs.c struct qat_alg_ablkcipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 252 drivers/crypto/qat/qat_common/qat_asym_algs.c static inline struct qat_dh_ctx *qat_dh_get_params(struct crypto_kpp *tfm) tfm 254 drivers/crypto/qat/qat_common/qat_asym_algs.c return kpp_tfm_ctx(tfm); tfm 259 drivers/crypto/qat/qat_common/qat_asym_algs.c struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); tfm 260 drivers/crypto/qat/qat_common/qat_asym_algs.c struct qat_dh_ctx *ctx = kpp_tfm_ctx(tfm); tfm 488 drivers/crypto/qat/qat_common/qat_asym_algs.c static int qat_dh_set_secret(struct crypto_kpp *tfm, const void *buf, tfm 491 drivers/crypto/qat/qat_common/qat_asym_algs.c struct qat_dh_ctx *ctx = kpp_tfm_ctx(tfm); tfm 522 drivers/crypto/qat/qat_common/qat_asym_algs.c static unsigned int qat_dh_max_size(struct crypto_kpp *tfm) tfm 524 drivers/crypto/qat/qat_common/qat_asym_algs.c struct qat_dh_ctx *ctx = kpp_tfm_ctx(tfm); tfm 529 drivers/crypto/qat/qat_common/qat_asym_algs.c static int qat_dh_init_tfm(struct crypto_kpp *tfm) tfm 531 drivers/crypto/qat/qat_common/qat_asym_algs.c struct qat_dh_ctx *ctx = kpp_tfm_ctx(tfm); tfm 544 drivers/crypto/qat/qat_common/qat_asym_algs.c static void qat_dh_exit_tfm(struct crypto_kpp *tfm) tfm 546 drivers/crypto/qat/qat_common/qat_asym_algs.c struct qat_dh_ctx *ctx = kpp_tfm_ctx(tfm); tfm 688 drivers/crypto/qat/qat_common/qat_asym_algs.c struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); tfm 689 drivers/crypto/qat/qat_common/qat_asym_algs.c struct qat_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 822 drivers/crypto/qat/qat_common/qat_asym_algs.c struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); tfm 823 drivers/crypto/qat/qat_common/qat_asym_algs.c struct qat_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 1201 drivers/crypto/qat/qat_common/qat_asym_algs.c static int qat_rsa_setkey(struct crypto_akcipher *tfm, const void *key, tfm 1204 drivers/crypto/qat/qat_common/qat_asym_algs.c struct qat_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 1248 drivers/crypto/qat/qat_common/qat_asym_algs.c static int qat_rsa_setpubkey(struct crypto_akcipher *tfm, const void *key, tfm 1251 drivers/crypto/qat/qat_common/qat_asym_algs.c return qat_rsa_setkey(tfm, key, keylen, false); tfm 1254 drivers/crypto/qat/qat_common/qat_asym_algs.c static int qat_rsa_setprivkey(struct crypto_akcipher *tfm, const void *key, tfm 1257 drivers/crypto/qat/qat_common/qat_asym_algs.c return qat_rsa_setkey(tfm, key, keylen, true); tfm 1260 drivers/crypto/qat/qat_common/qat_asym_algs.c static unsigned int qat_rsa_max_size(struct crypto_akcipher *tfm) tfm 1262 drivers/crypto/qat/qat_common/qat_asym_algs.c struct qat_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 1267 drivers/crypto/qat/qat_common/qat_asym_algs.c static int qat_rsa_init_tfm(struct crypto_akcipher *tfm) tfm 1269 drivers/crypto/qat/qat_common/qat_asym_algs.c struct qat_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 1281 drivers/crypto/qat/qat_common/qat_asym_algs.c static void qat_rsa_exit_tfm(struct crypto_akcipher *tfm) tfm 1283 drivers/crypto/qat/qat_common/qat_asym_algs.c struct qat_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); tfm 22 drivers/crypto/qce/ablkcipher.c struct qce_alg_template *tmpl = to_cipher_tmpl(async_req->tfm); tfm 57 drivers/crypto/qce/ablkcipher.c struct qce_alg_template *tmpl = to_cipher_tmpl(async_req->tfm); tfm 155 drivers/crypto/qce/ablkcipher.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm(ablk); tfm 156 drivers/crypto/qce/ablkcipher.c struct qce_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 212 drivers/crypto/qce/ablkcipher.c struct crypto_tfm *tfm = tfm 214 drivers/crypto/qce/ablkcipher.c struct qce_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 216 drivers/crypto/qce/ablkcipher.c struct qce_alg_template *tmpl = to_cipher_tmpl(tfm); tfm 250 drivers/crypto/qce/ablkcipher.c static int qce_ablkcipher_init(struct crypto_tfm *tfm) tfm 252 drivers/crypto/qce/ablkcipher.c struct qce_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 255 drivers/crypto/qce/ablkcipher.c tfm->crt_ablkcipher.reqsize = sizeof(struct qce_cipher_reqctx); tfm 257 drivers/crypto/qce/ablkcipher.c ctx->fallback = crypto_alloc_sync_skcipher(crypto_tfm_alg_name(tfm), tfm 262 drivers/crypto/qce/ablkcipher.c static void qce_ablkcipher_exit(struct crypto_tfm *tfm) tfm 264 drivers/crypto/qce/ablkcipher.c struct qce_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 48 drivers/crypto/qce/cipher.h static inline struct qce_alg_template *to_cipher_tmpl(struct crypto_tfm *tfm) tfm 50 drivers/crypto/qce/cipher.h struct crypto_alg *alg = tfm->__crt_alg; tfm 226 drivers/crypto/qce/common.c struct crypto_ahash *ahash = __crypto_ahash_cast(async_req->tfm); tfm 228 drivers/crypto/qce/common.c struct qce_alg_template *tmpl = to_ahash_tmpl(async_req->tfm); tfm 231 drivers/crypto/qce/common.c unsigned int blocksize = crypto_tfm_alg_blocksize(async_req->tfm); tfm 312 drivers/crypto/qce/common.c struct qce_cipher_ctx *ctx = crypto_tfm_ctx(async_req->tfm); tfm 313 drivers/crypto/qce/common.c struct qce_alg_template *tmpl = to_cipher_tmpl(async_req->tfm); tfm 59 drivers/crypto/qce/core.c u32 type = crypto_tfm_alg_type(async_req->tfm); tfm 35 drivers/crypto/qce/sha.c struct qce_alg_template *tmpl = to_ahash_tmpl(async_req->tfm); tfm 72 drivers/crypto/qce/sha.c struct qce_sha_ctx *ctx = crypto_tfm_ctx(async_req->tfm); tfm 73 drivers/crypto/qce/sha.c struct qce_alg_template *tmpl = to_ahash_tmpl(async_req->tfm); tfm 127 drivers/crypto/qce/sha.c struct qce_alg_template *tmpl = to_ahash_tmpl(req->base.tfm); tfm 228 drivers/crypto/qce/sha.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 230 drivers/crypto/qce/sha.c struct qce_alg_template *tmpl = to_ahash_tmpl(req->base.tfm); tfm 238 drivers/crypto/qce/sha.c blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); tfm 305 drivers/crypto/qce/sha.c struct qce_alg_template *tmpl = to_ahash_tmpl(req->base.tfm); tfm 328 drivers/crypto/qce/sha.c struct qce_alg_template *tmpl = to_ahash_tmpl(req->base.tfm); tfm 344 drivers/crypto/qce/sha.c static int qce_ahash_hmac_setkey(struct crypto_ahash *tfm, const u8 *key, tfm 347 drivers/crypto/qce/sha.c unsigned int digestsize = crypto_ahash_digestsize(tfm); tfm 348 drivers/crypto/qce/sha.c struct qce_sha_ctx *ctx = crypto_tfm_ctx(&tfm->base); tfm 358 drivers/crypto/qce/sha.c blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); tfm 400 drivers/crypto/qce/sha.c crypto_ahash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 410 drivers/crypto/qce/sha.c static int qce_ahash_cra_init(struct crypto_tfm *tfm) tfm 412 drivers/crypto/qce/sha.c struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); tfm 413 drivers/crypto/qce/sha.c struct qce_sha_ctx *ctx = crypto_tfm_ctx(tfm); tfm 60 drivers/crypto/qce/sha.h static inline struct qce_alg_template *to_ahash_tmpl(struct crypto_tfm *tfm) tfm 62 drivers/crypto/qce/sha.h struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); tfm 70 drivers/crypto/qcom-rng.c static int qcom_rng_generate(struct crypto_rng *tfm, tfm 74 drivers/crypto/qcom-rng.c struct qcom_rng_ctx *ctx = crypto_rng_ctx(tfm); tfm 92 drivers/crypto/qcom-rng.c static int qcom_rng_seed(struct crypto_rng *tfm, const u8 *seed, tfm 127 drivers/crypto/qcom-rng.c static int qcom_rng_init(struct crypto_tfm *tfm) tfm 129 drivers/crypto/qcom-rng.c struct qcom_rng_ctx *ctx = crypto_tfm_ctx(tfm); tfm 33 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); tfm 34 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct rk_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 78 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); tfm 79 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct rk_cipher_ctx *ctx = crypto_ablkcipher_ctx(tfm); tfm 88 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); tfm 89 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct rk_cipher_ctx *ctx = crypto_ablkcipher_ctx(tfm); tfm 98 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); tfm 99 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct rk_cipher_ctx *ctx = crypto_ablkcipher_ctx(tfm); tfm 108 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); tfm 109 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct rk_cipher_ctx *ctx = crypto_ablkcipher_ctx(tfm); tfm 118 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); tfm 119 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct rk_cipher_ctx *ctx = crypto_ablkcipher_ctx(tfm); tfm 128 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); tfm 129 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct rk_cipher_ctx *ctx = crypto_ablkcipher_ctx(tfm); tfm 138 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); tfm 139 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct rk_cipher_ctx *ctx = crypto_ablkcipher_ctx(tfm); tfm 148 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); tfm 149 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct rk_cipher_ctx *ctx = crypto_ablkcipher_ctx(tfm); tfm 158 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); tfm 159 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct rk_cipher_ctx *ctx = crypto_ablkcipher_ctx(tfm); tfm 168 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); tfm 169 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct rk_cipher_ctx *ctx = crypto_ablkcipher_ctx(tfm); tfm 178 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); tfm 179 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct rk_cipher_ctx *ctx = crypto_ablkcipher_ctx(tfm); tfm 188 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); tfm 189 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct rk_cipher_ctx *ctx = crypto_ablkcipher_ctx(tfm); tfm 202 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); tfm 206 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c block = crypto_tfm_alg_blocksize(tfm); tfm 249 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); tfm 250 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct rk_cipher_ctx *ctx = crypto_ablkcipher_ctx(tfm); tfm 251 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c u32 ivsize = crypto_ablkcipher_ivsize(tfm); tfm 297 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); tfm 298 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct rk_cipher_ctx *ctx = crypto_ablkcipher_ctx(tfm); tfm 299 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c u32 ivsize = crypto_ablkcipher_ivsize(tfm); tfm 317 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); tfm 318 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct rk_cipher_ctx *ctx = crypto_ablkcipher_ctx(tfm); tfm 319 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c u32 ivsize = crypto_ablkcipher_ivsize(tfm); tfm 378 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c static int rk_ablk_cra_init(struct crypto_tfm *tfm) tfm 380 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct rk_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 381 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct crypto_alg *alg = tfm->__crt_alg; tfm 387 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c ctx->dev->align_size = crypto_tfm_alg_alignmask(tfm) + 1; tfm 396 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c static void rk_ablk_cra_exit(struct crypto_tfm *tfm) tfm 398 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct rk_cipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 20 drivers/crypto/rockchip/rk3288_crypto_ahash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 21 drivers/crypto/rockchip/rk3288_crypto_ahash.c int rk_digest_size = crypto_ahash_digestsize(tfm); tfm 82 drivers/crypto/rockchip/rk3288_crypto_ahash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 83 drivers/crypto/rockchip/rk3288_crypto_ahash.c struct rk_ahash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 95 drivers/crypto/rockchip/rk3288_crypto_ahash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 96 drivers/crypto/rockchip/rk3288_crypto_ahash.c struct rk_ahash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 110 drivers/crypto/rockchip/rk3288_crypto_ahash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 111 drivers/crypto/rockchip/rk3288_crypto_ahash.c struct rk_ahash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 124 drivers/crypto/rockchip/rk3288_crypto_ahash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 125 drivers/crypto/rockchip/rk3288_crypto_ahash.c struct rk_ahash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 141 drivers/crypto/rockchip/rk3288_crypto_ahash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 142 drivers/crypto/rockchip/rk3288_crypto_ahash.c struct rk_ahash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 154 drivers/crypto/rockchip/rk3288_crypto_ahash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 155 drivers/crypto/rockchip/rk3288_crypto_ahash.c struct rk_ahash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 166 drivers/crypto/rockchip/rk3288_crypto_ahash.c struct rk_ahash_ctx *tctx = crypto_tfm_ctx(req->base.tfm); tfm 196 drivers/crypto/rockchip/rk3288_crypto_ahash.c struct crypto_ahash *tfm; tfm 210 drivers/crypto/rockchip/rk3288_crypto_ahash.c tfm = crypto_ahash_reqtfm(req); tfm 211 drivers/crypto/rockchip/rk3288_crypto_ahash.c switch (crypto_ahash_digestsize(tfm)) { tfm 233 drivers/crypto/rockchip/rk3288_crypto_ahash.c struct crypto_ahash *tfm; tfm 261 drivers/crypto/rockchip/rk3288_crypto_ahash.c tfm = crypto_ahash_reqtfm(req); tfm 263 drivers/crypto/rockchip/rk3288_crypto_ahash.c crypto_ahash_digestsize(tfm)); tfm 272 drivers/crypto/rockchip/rk3288_crypto_ahash.c static int rk_cra_hash_init(struct crypto_tfm *tfm) tfm 274 drivers/crypto/rockchip/rk3288_crypto_ahash.c struct rk_ahash_ctx *tctx = crypto_tfm_ctx(tfm); tfm 276 drivers/crypto/rockchip/rk3288_crypto_ahash.c struct ahash_alg *alg = __crypto_ahash_alg(tfm->__crt_alg); tfm 278 drivers/crypto/rockchip/rk3288_crypto_ahash.c const char *alg_name = crypto_tfm_alg_name(tfm); tfm 299 drivers/crypto/rockchip/rk3288_crypto_ahash.c crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), tfm 306 drivers/crypto/rockchip/rk3288_crypto_ahash.c static void rk_cra_hash_exit(struct crypto_tfm *tfm) tfm 308 drivers/crypto/rockchip/rk3288_crypto_ahash.c struct rk_ahash_ctx *tctx = crypto_tfm_ctx(tfm); tfm 1490 drivers/crypto/s5p-sss.c struct s5p_hash_ctx *tctx = crypto_tfm_ctx(req->base.tfm); tfm 1531 drivers/crypto/s5p-sss.c static int s5p_hash_shash_digest(struct crypto_shash *tfm, u32 flags, tfm 1534 drivers/crypto/s5p-sss.c SHASH_DESC_ON_STACK(shash, tfm); tfm 1536 drivers/crypto/s5p-sss.c shash->tfm = tfm; tfm 1547 drivers/crypto/s5p-sss.c struct s5p_hash_ctx *tctx = crypto_tfm_ctx(req->base.tfm); tfm 1627 drivers/crypto/s5p-sss.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 1628 drivers/crypto/s5p-sss.c struct s5p_hash_ctx *tctx = crypto_ahash_ctx(tfm); tfm 1639 drivers/crypto/s5p-sss.c crypto_ahash_digestsize(tfm)); tfm 1641 drivers/crypto/s5p-sss.c switch (crypto_ahash_digestsize(tfm)) { tfm 1677 drivers/crypto/s5p-sss.c static int s5p_hash_cra_init_alg(struct crypto_tfm *tfm) tfm 1679 drivers/crypto/s5p-sss.c struct s5p_hash_ctx *tctx = crypto_tfm_ctx(tfm); tfm 1680 drivers/crypto/s5p-sss.c const char *alg_name = crypto_tfm_alg_name(tfm); tfm 1691 drivers/crypto/s5p-sss.c crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), tfm 1701 drivers/crypto/s5p-sss.c static int s5p_hash_cra_init(struct crypto_tfm *tfm) tfm 1703 drivers/crypto/s5p-sss.c return s5p_hash_cra_init_alg(tfm); tfm 1712 drivers/crypto/s5p-sss.c static void s5p_hash_cra_exit(struct crypto_tfm *tfm) tfm 1714 drivers/crypto/s5p-sss.c struct s5p_hash_ctx *tctx = crypto_tfm_ctx(tfm); tfm 1742 drivers/crypto/s5p-sss.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 1743 drivers/crypto/s5p-sss.c struct s5p_hash_ctx *tctx = crypto_ahash_ctx(tfm); tfm 2025 drivers/crypto/s5p-sss.c dev->ctx = crypto_tfm_ctx(dev->req->base.tfm); tfm 2054 drivers/crypto/s5p-sss.c struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); tfm 2056 drivers/crypto/s5p-sss.c struct s5p_aes_ctx *ctx = crypto_ablkcipher_ctx(tfm); tfm 2076 drivers/crypto/s5p-sss.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); tfm 2077 drivers/crypto/s5p-sss.c struct s5p_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 2115 drivers/crypto/s5p-sss.c static int s5p_aes_cra_init(struct crypto_tfm *tfm) tfm 2117 drivers/crypto/s5p-sss.c struct s5p_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 2120 drivers/crypto/s5p-sss.c tfm->crt_ablkcipher.reqsize = sizeof(struct s5p_aes_reqctx); tfm 600 drivers/crypto/sahara.c static int sahara_aes_setkey(struct crypto_ablkcipher *tfm, const u8 *key, tfm 603 drivers/crypto/sahara.c struct sahara_ctx *ctx = crypto_ablkcipher_ctx(tfm); tfm 622 drivers/crypto/sahara.c crypto_sync_skcipher_set_flags(ctx->fallback, tfm->base.crt_flags & tfm 627 drivers/crypto/sahara.c tfm->base.crt_flags &= ~CRYPTO_TFM_RES_MASK; tfm 628 drivers/crypto/sahara.c tfm->base.crt_flags |= crypto_sync_skcipher_get_flags(ctx->fallback) & tfm 747 drivers/crypto/sahara.c static int sahara_aes_cra_init(struct crypto_tfm *tfm) tfm 749 drivers/crypto/sahara.c const char *name = crypto_tfm_alg_name(tfm); tfm 750 drivers/crypto/sahara.c struct sahara_ctx *ctx = crypto_tfm_ctx(tfm); tfm 759 drivers/crypto/sahara.c tfm->crt_ablkcipher.reqsize = sizeof(struct sahara_aes_reqctx); tfm 764 drivers/crypto/sahara.c static void sahara_aes_cra_exit(struct crypto_tfm *tfm) tfm 766 drivers/crypto/sahara.c struct sahara_ctx *ctx = crypto_tfm_ctx(tfm); tfm 926 drivers/crypto/sahara.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 932 drivers/crypto/sahara.c block_size = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); tfm 1067 drivers/crypto/sahara.c if (crypto_tfm_alg_type(async_req->tfm) == tfm 1118 drivers/crypto/sahara.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 1123 drivers/crypto/sahara.c switch (crypto_ahash_digestsize(tfm)) { tfm 1183 drivers/crypto/sahara.c static int sahara_sha_cra_init(struct crypto_tfm *tfm) tfm 1185 drivers/crypto/sahara.c crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), tfm 65 drivers/crypto/stm32/stm32-crc32.c static int stm32_crc32_cra_init(struct crypto_tfm *tfm) tfm 67 drivers/crypto/stm32/stm32-crc32.c struct stm32_crc_ctx *mctx = crypto_tfm_ctx(tfm); tfm 74 drivers/crypto/stm32/stm32-crc32.c static int stm32_crc32c_cra_init(struct crypto_tfm *tfm) tfm 76 drivers/crypto/stm32/stm32-crc32.c struct stm32_crc_ctx *mctx = crypto_tfm_ctx(tfm); tfm 83 drivers/crypto/stm32/stm32-crc32.c static int stm32_crc_setkey(struct crypto_shash *tfm, const u8 *key, tfm 86 drivers/crypto/stm32/stm32-crc32.c struct stm32_crc_ctx *mctx = crypto_shash_ctx(tfm); tfm 89 drivers/crypto/stm32/stm32-crc32.c crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 100 drivers/crypto/stm32/stm32-crc32.c struct stm32_crc_ctx *mctx = crypto_shash_ctx(desc->tfm); tfm 185 drivers/crypto/stm32/stm32-crc32.c struct stm32_crc_ctx *mctx = crypto_shash_ctx(desc->tfm); tfm 688 drivers/crypto/stm32/stm32-cryp.c static int stm32_cryp_cra_init(struct crypto_tfm *tfm) tfm 690 drivers/crypto/stm32/stm32-cryp.c struct stm32_cryp_ctx *ctx = crypto_tfm_ctx(tfm); tfm 692 drivers/crypto/stm32/stm32-cryp.c tfm->crt_ablkcipher.reqsize = sizeof(struct stm32_cryp_reqctx); tfm 704 drivers/crypto/stm32/stm32-cryp.c static int stm32_cryp_aes_aead_init(struct crypto_aead *tfm) tfm 706 drivers/crypto/stm32/stm32-cryp.c struct stm32_cryp_ctx *ctx = crypto_aead_ctx(tfm); tfm 708 drivers/crypto/stm32/stm32-cryp.c tfm->reqsize = sizeof(struct stm32_cryp_reqctx); tfm 746 drivers/crypto/stm32/stm32-cryp.c static int stm32_cryp_setkey(struct crypto_ablkcipher *tfm, const u8 *key, tfm 749 drivers/crypto/stm32/stm32-cryp.c struct stm32_cryp_ctx *ctx = crypto_ablkcipher_ctx(tfm); tfm 757 drivers/crypto/stm32/stm32-cryp.c static int stm32_cryp_aes_setkey(struct crypto_ablkcipher *tfm, const u8 *key, tfm 764 drivers/crypto/stm32/stm32-cryp.c return stm32_cryp_setkey(tfm, key, keylen); tfm 767 drivers/crypto/stm32/stm32-cryp.c static int stm32_cryp_des_setkey(struct crypto_ablkcipher *tfm, const u8 *key, tfm 770 drivers/crypto/stm32/stm32-cryp.c return verify_ablkcipher_des_key(tfm, key) ?: tfm 771 drivers/crypto/stm32/stm32-cryp.c stm32_cryp_setkey(tfm, key, keylen); tfm 774 drivers/crypto/stm32/stm32-cryp.c static int stm32_cryp_tdes_setkey(struct crypto_ablkcipher *tfm, const u8 *key, tfm 777 drivers/crypto/stm32/stm32-cryp.c return verify_ablkcipher_des3_key(tfm, key) ?: tfm 778 drivers/crypto/stm32/stm32-cryp.c stm32_cryp_setkey(tfm, key, keylen); tfm 781 drivers/crypto/stm32/stm32-cryp.c static int stm32_cryp_aes_aead_setkey(struct crypto_aead *tfm, const u8 *key, tfm 784 drivers/crypto/stm32/stm32-cryp.c struct stm32_cryp_ctx *ctx = crypto_aead_ctx(tfm); tfm 796 drivers/crypto/stm32/stm32-cryp.c static int stm32_cryp_aes_gcm_setauthsize(struct crypto_aead *tfm, tfm 802 drivers/crypto/stm32/stm32-cryp.c static int stm32_cryp_aes_ccm_setauthsize(struct crypto_aead *tfm, tfm 225 drivers/crypto/stm32/stm32-hash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(hdev->req); tfm 226 drivers/crypto/stm32/stm32-hash.c struct stm32_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 253 drivers/crypto/stm32/stm32-hash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(hdev->req); tfm 254 drivers/crypto/stm32/stm32-hash.c struct stm32_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 479 drivers/crypto/stm32/stm32-hash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(hdev->req); tfm 480 drivers/crypto/stm32/stm32-hash.c struct stm32_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 681 drivers/crypto/stm32/stm32-hash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 682 drivers/crypto/stm32/stm32-hash.c struct stm32_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 690 drivers/crypto/stm32/stm32-hash.c rctx->digcnt = crypto_ahash_digestsize(tfm); tfm 887 drivers/crypto/stm32/stm32-hash.c struct stm32_hash_ctx *ctx = crypto_tfm_ctx(req->base.tfm); tfm 1019 drivers/crypto/stm32/stm32-hash.c static int stm32_hash_setkey(struct crypto_ahash *tfm, tfm 1022 drivers/crypto/stm32/stm32-hash.c struct stm32_hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 1034 drivers/crypto/stm32/stm32-hash.c static int stm32_hash_cra_init_algs(struct crypto_tfm *tfm, tfm 1037 drivers/crypto/stm32/stm32-hash.c struct stm32_hash_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1039 drivers/crypto/stm32/stm32-hash.c crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), tfm 1053 drivers/crypto/stm32/stm32-hash.c static int stm32_hash_cra_init(struct crypto_tfm *tfm) tfm 1055 drivers/crypto/stm32/stm32-hash.c return stm32_hash_cra_init_algs(tfm, NULL); tfm 1058 drivers/crypto/stm32/stm32-hash.c static int stm32_hash_cra_md5_init(struct crypto_tfm *tfm) tfm 1060 drivers/crypto/stm32/stm32-hash.c return stm32_hash_cra_init_algs(tfm, "md5"); tfm 1063 drivers/crypto/stm32/stm32-hash.c static int stm32_hash_cra_sha1_init(struct crypto_tfm *tfm) tfm 1065 drivers/crypto/stm32/stm32-hash.c return stm32_hash_cra_init_algs(tfm, "sha1"); tfm 1068 drivers/crypto/stm32/stm32-hash.c static int stm32_hash_cra_sha224_init(struct crypto_tfm *tfm) tfm 1070 drivers/crypto/stm32/stm32-hash.c return stm32_hash_cra_init_algs(tfm, "sha224"); tfm 1073 drivers/crypto/stm32/stm32-hash.c static int stm32_hash_cra_sha256_init(struct crypto_tfm *tfm) tfm 1075 drivers/crypto/stm32/stm32-hash.c return stm32_hash_cra_init_algs(tfm, "sha256"); tfm 17 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); tfm 18 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); tfm 20 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c unsigned int ivsize = crypto_skcipher_ivsize(tfm); tfm 122 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); tfm 123 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); tfm 145 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); tfm 146 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); tfm 151 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c unsigned int ivsize = crypto_skcipher_ivsize(tfm); tfm 153 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct skcipher_alg *alg = crypto_skcipher_alg(tfm); tfm 349 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); tfm 350 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); tfm 360 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); tfm 361 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); tfm 372 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); tfm 373 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); tfm 383 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); tfm 384 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); tfm 395 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); tfm 396 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); tfm 406 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); tfm 407 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); tfm 418 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); tfm 419 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); tfm 429 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); tfm 430 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); tfm 441 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); tfm 442 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); tfm 452 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); tfm 453 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); tfm 464 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); tfm 465 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); tfm 475 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); tfm 476 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); tfm 484 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c int sun4i_ss_cipher_init(struct crypto_tfm *tfm) tfm 486 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct sun4i_tfm_ctx *op = crypto_tfm_ctx(tfm); tfm 488 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c const char *name = crypto_tfm_alg_name(tfm); tfm 492 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c algt = container_of(tfm->__crt_alg, struct sun4i_ss_alg_template, tfm 496 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c crypto_skcipher_set_reqsize(__crypto_skcipher_cast(tfm), tfm 509 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c void sun4i_ss_cipher_exit(struct crypto_tfm *tfm) tfm 511 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct sun4i_tfm_ctx *op = crypto_tfm_ctx(tfm); tfm 516 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c int sun4i_ss_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, tfm 519 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); tfm 534 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c crypto_skcipher_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 541 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c crypto_sync_skcipher_set_flags(op->fallback_tfm, tfm->base.crt_flags & CRYPTO_TFM_REQ_MASK); tfm 547 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c int sun4i_ss_des_setkey(struct crypto_skcipher *tfm, const u8 *key, tfm 550 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); tfm 553 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c err = verify_skcipher_des_key(tfm, key); tfm 561 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c crypto_sync_skcipher_set_flags(op->fallback_tfm, tfm->base.crt_flags & CRYPTO_TFM_REQ_MASK); tfm 567 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c int sun4i_ss_des3_setkey(struct crypto_skcipher *tfm, const u8 *key, tfm 570 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); tfm 573 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c err = verify_skcipher_des3_key(tfm, key); tfm 581 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c crypto_sync_skcipher_set_flags(op->fallback_tfm, tfm->base.crt_flags & CRYPTO_TFM_REQ_MASK); tfm 17 drivers/crypto/sunxi-ss/sun4i-ss-hash.c int sun4i_hash_crainit(struct crypto_tfm *tfm) tfm 19 drivers/crypto/sunxi-ss/sun4i-ss-hash.c struct sun4i_tfm_ctx *op = crypto_tfm_ctx(tfm); tfm 20 drivers/crypto/sunxi-ss/sun4i-ss-hash.c struct ahash_alg *alg = __crypto_ahash_alg(tfm->__crt_alg); tfm 28 drivers/crypto/sunxi-ss/sun4i-ss-hash.c crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), tfm 37 drivers/crypto/sunxi-ss/sun4i-ss-hash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); tfm 38 drivers/crypto/sunxi-ss/sun4i-ss-hash.c struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); tfm 180 drivers/crypto/sunxi-ss/sun4i-ss-hash.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); tfm 181 drivers/crypto/sunxi-ss/sun4i-ss-hash.c struct sun4i_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm); tfm 190 drivers/crypto/sunxi-ss/sun4i-ss-hash.c __func__, crypto_tfm_alg_name(areq->base.tfm), tfm 370 drivers/crypto/sunxi-ss/sun4i-ss-hash.c for (i = 0; i < crypto_ahash_digestsize(tfm) / 4; i++) tfm 3 drivers/crypto/sunxi-ss/sun4i-ss-prng.c int sun4i_ss_prng_seed(struct crypto_rng *tfm, const u8 *seed, tfm 7 drivers/crypto/sunxi-ss/sun4i-ss-prng.c struct rng_alg *alg = crypto_rng_alg(tfm); tfm 15 drivers/crypto/sunxi-ss/sun4i-ss-prng.c int sun4i_ss_prng_generate(struct crypto_rng *tfm, const u8 *src, tfm 19 drivers/crypto/sunxi-ss/sun4i-ss-prng.c struct rng_alg *alg = crypto_rng_alg(tfm); tfm 179 drivers/crypto/sunxi-ss/sun4i-ss.h int sun4i_hash_crainit(struct crypto_tfm *tfm); tfm 205 drivers/crypto/sunxi-ss/sun4i-ss.h int sun4i_ss_cipher_init(struct crypto_tfm *tfm); tfm 206 drivers/crypto/sunxi-ss/sun4i-ss.h void sun4i_ss_cipher_exit(struct crypto_tfm *tfm); tfm 207 drivers/crypto/sunxi-ss/sun4i-ss.h int sun4i_ss_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, tfm 209 drivers/crypto/sunxi-ss/sun4i-ss.h int sun4i_ss_des_setkey(struct crypto_skcipher *tfm, const u8 *key, tfm 211 drivers/crypto/sunxi-ss/sun4i-ss.h int sun4i_ss_des3_setkey(struct crypto_skcipher *tfm, const u8 *key, tfm 213 drivers/crypto/sunxi-ss/sun4i-ss.h int sun4i_ss_prng_generate(struct crypto_rng *tfm, const u8 *src, tfm 215 drivers/crypto/sunxi-ss/sun4i-ss.h int sun4i_ss_prng_seed(struct crypto_rng *tfm, const u8 *seed, unsigned int slen); tfm 1790 drivers/crypto/talitos.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); tfm 1791 drivers/crypto/talitos.c struct talitos_ctx *ctx = crypto_ahash_ctx(tfm); tfm 1847 drivers/crypto/talitos.c crypto_ahash_digestsize(tfm), tfm 1913 drivers/crypto/talitos.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); tfm 1914 drivers/crypto/talitos.c struct talitos_ctx *ctx = crypto_ahash_ctx(tfm); tfm 1928 drivers/crypto/talitos.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); tfm 1929 drivers/crypto/talitos.c struct talitos_ctx *ctx = crypto_ahash_ctx(tfm); tfm 1940 drivers/crypto/talitos.c size = (crypto_ahash_digestsize(tfm) <= SHA256_DIGEST_SIZE) tfm 1981 drivers/crypto/talitos.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); tfm 1982 drivers/crypto/talitos.c struct talitos_ctx *ctx = crypto_ahash_ctx(tfm); tfm 1986 drivers/crypto/talitos.c crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); tfm 2133 drivers/crypto/talitos.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); tfm 2134 drivers/crypto/talitos.c struct talitos_ctx *ctx = crypto_ahash_ctx(tfm); tfm 2157 drivers/crypto/talitos.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); tfm 2158 drivers/crypto/talitos.c struct talitos_ctx *ctx = crypto_ahash_ctx(tfm); tfm 2165 drivers/crypto/talitos.c size = (crypto_ahash_digestsize(tfm) <= SHA256_DIGEST_SIZE) tfm 2184 drivers/crypto/talitos.c static int keyhash(struct crypto_ahash *tfm, const u8 *key, unsigned int keylen, tfm 2187 drivers/crypto/talitos.c struct talitos_ctx *ctx = crypto_tfm_ctx(crypto_ahash_tfm(tfm)); tfm 2196 drivers/crypto/talitos.c req = ahash_request_alloc(tfm, GFP_KERNEL); tfm 2215 drivers/crypto/talitos.c static int ahash_setkey(struct crypto_ahash *tfm, const u8 *key, tfm 2218 drivers/crypto/talitos.c struct talitos_ctx *ctx = crypto_tfm_ctx(crypto_ahash_tfm(tfm)); tfm 2221 drivers/crypto/talitos.c crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); tfm 2222 drivers/crypto/talitos.c unsigned int digestsize = crypto_ahash_digestsize(tfm); tfm 2231 drivers/crypto/talitos.c ret = keyhash(tfm, key, keylen, hash); tfm 2234 drivers/crypto/talitos.c crypto_ahash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 3035 drivers/crypto/talitos.c static int talitos_cra_init(struct crypto_tfm *tfm) tfm 3037 drivers/crypto/talitos.c struct crypto_alg *alg = tfm->__crt_alg; tfm 3039 drivers/crypto/talitos.c struct talitos_ctx *ctx = crypto_tfm_ctx(tfm); tfm 3052 drivers/crypto/talitos.c static int talitos_cra_init_aead(struct crypto_aead *tfm) tfm 3054 drivers/crypto/talitos.c struct aead_alg *alg = crypto_aead_alg(tfm); tfm 3056 drivers/crypto/talitos.c struct talitos_ctx *ctx = crypto_aead_ctx(tfm); tfm 3064 drivers/crypto/talitos.c static int talitos_cra_init_ahash(struct crypto_tfm *tfm) tfm 3066 drivers/crypto/talitos.c struct talitos_ctx *ctx = crypto_tfm_ctx(tfm); tfm 3068 drivers/crypto/talitos.c talitos_cra_init(tfm); tfm 3071 drivers/crypto/talitos.c crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), tfm 3077 drivers/crypto/talitos.c static void talitos_cra_exit(struct crypto_tfm *tfm) tfm 3079 drivers/crypto/talitos.c struct talitos_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1064 drivers/crypto/ux500/cryp/cryp_core.c static int cryp_cra_init(struct crypto_tfm *tfm) tfm 1066 drivers/crypto/ux500/cryp/cryp_core.c struct cryp_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1067 drivers/crypto/ux500/cryp/cryp_core.c struct crypto_alg *alg = tfm->__crt_alg; tfm 1073 drivers/crypto/ux500/cryp/cryp_core.c ctx->blocksize = crypto_tfm_alg_blocksize(tfm); tfm 551 drivers/crypto/ux500/hash/hash_core.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 552 drivers/crypto/ux500/hash/hash_core.c struct hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 856 drivers/crypto/ux500/hash/hash_core.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 857 drivers/crypto/ux500/hash/hash_core.c struct hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 963 drivers/crypto/ux500/hash/hash_core.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 964 drivers/crypto/ux500/hash/hash_core.c struct hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 1071 drivers/crypto/ux500/hash/hash_core.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 1072 drivers/crypto/ux500/hash/hash_core.c struct hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 1333 drivers/crypto/ux500/hash/hash_core.c static int hash_setkey(struct crypto_ahash *tfm, tfm 1337 drivers/crypto/ux500/hash/hash_core.c struct hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 1355 drivers/crypto/ux500/hash/hash_core.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 1356 drivers/crypto/ux500/hash/hash_core.c struct hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 1368 drivers/crypto/ux500/hash/hash_core.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 1369 drivers/crypto/ux500/hash/hash_core.c struct hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 1421 drivers/crypto/ux500/hash/hash_core.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 1422 drivers/crypto/ux500/hash/hash_core.c struct hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 1434 drivers/crypto/ux500/hash/hash_core.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 1435 drivers/crypto/ux500/hash/hash_core.c struct hash_ctx *ctx = crypto_ahash_ctx(tfm); tfm 1475 drivers/crypto/ux500/hash/hash_core.c static int hmac_sha1_setkey(struct crypto_ahash *tfm, tfm 1478 drivers/crypto/ux500/hash/hash_core.c return hash_setkey(tfm, key, keylen, HASH_ALGO_SHA1); tfm 1481 drivers/crypto/ux500/hash/hash_core.c static int hmac_sha256_setkey(struct crypto_ahash *tfm, tfm 1484 drivers/crypto/ux500/hash/hash_core.c return hash_setkey(tfm, key, keylen, HASH_ALGO_SHA256); tfm 1492 drivers/crypto/ux500/hash/hash_core.c static int hash_cra_init(struct crypto_tfm *tfm) tfm 1494 drivers/crypto/ux500/hash/hash_core.c struct hash_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1495 drivers/crypto/ux500/hash/hash_core.c struct crypto_alg *alg = tfm->__crt_alg; tfm 1502 drivers/crypto/ux500/hash/hash_core.c crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), tfm 22 drivers/crypto/virtio/virtio_crypto_algs.c struct crypto_tfm *tfm; tfm 295 drivers/crypto/virtio/virtio_crypto_algs.c crypto_tfm_set_flags(ctx->tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 300 drivers/crypto/virtio/virtio_crypto_algs.c static int virtio_crypto_ablkcipher_setkey(struct crypto_ablkcipher *tfm, tfm 304 drivers/crypto/virtio/virtio_crypto_algs.c struct virtio_crypto_ablkcipher_ctx *ctx = crypto_ablkcipher_ctx(tfm); tfm 346 drivers/crypto/virtio/virtio_crypto_algs.c struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); tfm 349 drivers/crypto/virtio/virtio_crypto_algs.c unsigned int ivsize = crypto_ablkcipher_ivsize(tfm); tfm 535 drivers/crypto/virtio/virtio_crypto_algs.c static int virtio_crypto_ablkcipher_init(struct crypto_tfm *tfm) tfm 537 drivers/crypto/virtio/virtio_crypto_algs.c struct virtio_crypto_ablkcipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 539 drivers/crypto/virtio/virtio_crypto_algs.c tfm->crt_ablkcipher.reqsize = sizeof(struct virtio_crypto_sym_request); tfm 540 drivers/crypto/virtio/virtio_crypto_algs.c ctx->tfm = tfm; tfm 548 drivers/crypto/virtio/virtio_crypto_algs.c static void virtio_crypto_ablkcipher_exit(struct crypto_tfm *tfm) tfm 550 drivers/crypto/virtio/virtio_crypto_algs.c struct virtio_crypto_ablkcipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 27 drivers/crypto/vmx/aes.c static int p8_aes_init(struct crypto_tfm *tfm) tfm 29 drivers/crypto/vmx/aes.c const char *alg = crypto_tfm_alg_name(tfm); tfm 31 drivers/crypto/vmx/aes.c struct p8_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 44 drivers/crypto/vmx/aes.c tfm)); tfm 50 drivers/crypto/vmx/aes.c static void p8_aes_exit(struct crypto_tfm *tfm) tfm 52 drivers/crypto/vmx/aes.c struct p8_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 60 drivers/crypto/vmx/aes.c static int p8_aes_setkey(struct crypto_tfm *tfm, const u8 *key, tfm 64 drivers/crypto/vmx/aes.c struct p8_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 80 drivers/crypto/vmx/aes.c static void p8_aes_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 82 drivers/crypto/vmx/aes.c struct p8_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 97 drivers/crypto/vmx/aes.c static void p8_aes_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) tfm 99 drivers/crypto/vmx/aes.c struct p8_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 24 drivers/crypto/vmx/aes_cbc.c static int p8_aes_cbc_init(struct crypto_skcipher *tfm) tfm 26 drivers/crypto/vmx/aes_cbc.c struct p8_aes_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 38 drivers/crypto/vmx/aes_cbc.c crypto_skcipher_set_reqsize(tfm, sizeof(struct skcipher_request) + tfm 44 drivers/crypto/vmx/aes_cbc.c static void p8_aes_cbc_exit(struct crypto_skcipher *tfm) tfm 46 drivers/crypto/vmx/aes_cbc.c struct p8_aes_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 51 drivers/crypto/vmx/aes_cbc.c static int p8_aes_cbc_setkey(struct crypto_skcipher *tfm, const u8 *key, tfm 54 drivers/crypto/vmx/aes_cbc.c struct p8_aes_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 73 drivers/crypto/vmx/aes_cbc.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 74 drivers/crypto/vmx/aes_cbc.c const struct p8_aes_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 23 drivers/crypto/vmx/aes_ctr.c static int p8_aes_ctr_init(struct crypto_skcipher *tfm) tfm 25 drivers/crypto/vmx/aes_ctr.c struct p8_aes_ctr_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 37 drivers/crypto/vmx/aes_ctr.c crypto_skcipher_set_reqsize(tfm, sizeof(struct skcipher_request) + tfm 43 drivers/crypto/vmx/aes_ctr.c static void p8_aes_ctr_exit(struct crypto_skcipher *tfm) tfm 45 drivers/crypto/vmx/aes_ctr.c struct p8_aes_ctr_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 50 drivers/crypto/vmx/aes_ctr.c static int p8_aes_ctr_setkey(struct crypto_skcipher *tfm, const u8 *key, tfm 53 drivers/crypto/vmx/aes_ctr.c struct p8_aes_ctr_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 92 drivers/crypto/vmx/aes_ctr.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 93 drivers/crypto/vmx/aes_ctr.c const struct p8_aes_ctr_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 26 drivers/crypto/vmx/aes_xts.c static int p8_aes_xts_init(struct crypto_skcipher *tfm) tfm 28 drivers/crypto/vmx/aes_xts.c struct p8_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 40 drivers/crypto/vmx/aes_xts.c crypto_skcipher_set_reqsize(tfm, sizeof(struct skcipher_request) + tfm 46 drivers/crypto/vmx/aes_xts.c static void p8_aes_xts_exit(struct crypto_skcipher *tfm) tfm 48 drivers/crypto/vmx/aes_xts.c struct p8_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 53 drivers/crypto/vmx/aes_xts.c static int p8_aes_xts_setkey(struct crypto_skcipher *tfm, const u8 *key, tfm 56 drivers/crypto/vmx/aes_xts.c struct p8_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 59 drivers/crypto/vmx/aes_xts.c ret = xts_verify_key(tfm, key, keylen); tfm 80 drivers/crypto/vmx/aes_xts.c struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 81 drivers/crypto/vmx/aes_xts.c const struct p8_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm); tfm 54 drivers/crypto/vmx/ghash.c static int p8_ghash_setkey(struct crypto_shash *tfm, const u8 *key, tfm 57 drivers/crypto/vmx/ghash.c struct p8_ghash_ctx *ctx = crypto_tfm_ctx(crypto_shash_tfm(tfm)); tfm 120 drivers/crypto/vmx/ghash.c struct p8_ghash_ctx *ctx = crypto_tfm_ctx(crypto_shash_tfm(desc->tfm)); tfm 155 drivers/crypto/vmx/ghash.c struct p8_ghash_ctx *ctx = crypto_tfm_ctx(crypto_shash_tfm(desc->tfm)); tfm 1315 drivers/infiniband/hw/i40iw/i40iw_utils.c struct crypto_shash *tfm; tfm 1318 drivers/infiniband/hw/i40iw/i40iw_utils.c tfm = crypto_alloc_shash("crc32c", 0, 0); tfm 1319 drivers/infiniband/hw/i40iw/i40iw_utils.c if (IS_ERR(tfm)) tfm 1322 drivers/infiniband/hw/i40iw/i40iw_utils.c tdesc = kzalloc(sizeof(*tdesc) + crypto_shash_descsize(tfm), tfm 1325 drivers/infiniband/hw/i40iw/i40iw_utils.c crypto_free_shash(tfm); tfm 1328 drivers/infiniband/hw/i40iw/i40iw_utils.c tdesc->tfm = tfm; tfm 1341 drivers/infiniband/hw/i40iw/i40iw_utils.c crypto_free_shash(desc->tfm); tfm 71 drivers/infiniband/sw/rxe/rxe.c if (rxe->tfm) tfm 72 drivers/infiniband/sw/rxe/rxe.c crypto_free_shash(rxe->tfm); tfm 76 drivers/infiniband/sw/rxe/rxe.h SHASH_DESC_ON_STACK(shash, rxe->tfm); tfm 78 drivers/infiniband/sw/rxe/rxe.h shash->tfm = rxe->tfm; tfm 1162 drivers/infiniband/sw/rxe/rxe_verbs.c struct crypto_shash *tfm; tfm 1215 drivers/infiniband/sw/rxe/rxe_verbs.c tfm = crypto_alloc_shash("crc32", 0, 0); tfm 1216 drivers/infiniband/sw/rxe/rxe_verbs.c if (IS_ERR(tfm)) { tfm 1218 drivers/infiniband/sw/rxe/rxe_verbs.c PTR_ERR(tfm)); tfm 1219 drivers/infiniband/sw/rxe/rxe_verbs.c return PTR_ERR(tfm); tfm 1221 drivers/infiniband/sw/rxe/rxe_verbs.c rxe->tfm = tfm; tfm 415 drivers/infiniband/sw/rxe/rxe_verbs.h struct crypto_shash *tfm; tfm 247 drivers/infiniband/sw/siw/siw_qp.c c_tx->mpa_crc_hd->tfm = siw_crypto_shash; tfm 248 drivers/infiniband/sw/siw/siw_qp.c c_rx->mpa_crc_hd->tfm = siw_crypto_shash; tfm 463 drivers/md/dm-crypt.c desc->tfm = lmk->hash_tfm; tfm 624 drivers/md/dm-crypt.c desc->tfm = tcw->crc32_tfm; tfm 706 drivers/md/dm-integrity.c desc->tfm = ic->journal_mac; tfm 1466 drivers/md/dm-integrity.c req->tfm = ic->internal_hash; tfm 132 drivers/md/dm-verity-target.c ahash_request_set_tfm(req, v->tfm); tfm 795 drivers/md/dm-verity-target.c if (v->tfm) tfm 796 drivers/md/dm-verity-target.c crypto_free_ahash(v->tfm); tfm 1054 drivers/md/dm-verity-target.c v->tfm = crypto_alloc_ahash(v->alg_name, 0, 0); tfm 1055 drivers/md/dm-verity-target.c if (IS_ERR(v->tfm)) { tfm 1057 drivers/md/dm-verity-target.c r = PTR_ERR(v->tfm); tfm 1058 drivers/md/dm-verity-target.c v->tfm = NULL; tfm 1068 drivers/md/dm-verity-target.c crypto_hash_alg_common(v->tfm)->base.cra_driver_name); tfm 1070 drivers/md/dm-verity-target.c v->digest_size = crypto_ahash_digestsize(v->tfm); tfm 1077 drivers/md/dm-verity-target.c crypto_ahash_reqsize(v->tfm); tfm 39 drivers/md/dm-verity.h struct crypto_ahash *tfm; tfm 146 drivers/misc/sgi-gru/grufault.c struct gru_tlb_fault_map *tfm; tfm 148 drivers/misc/sgi-gru/grufault.c tfm = get_tfm_for_cpu(gru, gru_cpu_fault_map_id()); tfm 149 drivers/misc/sgi-gru/grufault.c prefetchw(tfm); /* Helps on hardware, required for emulator */ tfm 151 drivers/misc/sgi-gru/grufault.c k = tfm->fault_bits[i]; tfm 153 drivers/misc/sgi-gru/grufault.c k = xchg(&tfm->fault_bits[i], 0UL); tfm 155 drivers/misc/sgi-gru/grufault.c k = tfm->done_bits[i]; tfm 157 drivers/misc/sgi-gru/grufault.c k = xchg(&tfm->done_bits[i], 0UL); tfm 165 drivers/misc/sgi-gru/grufault.c gru_flush_cache(tfm); tfm 70 drivers/misc/sgi-gru/grukdump.c struct gru_tlb_fault_map *tfm; tfm 77 drivers/misc/sgi-gru/grukdump.c tfm = get_tfm(gru->gs_gru_base_vaddr, i); tfm 78 drivers/misc/sgi-gru/grukdump.c if (gru_user_copy_handle(&ubuf, tfm)) tfm 88 drivers/net/macsec.c struct crypto_aead *tfm; tfm 343 drivers/net/macsec.c crypto_free_aead(sa->key.tfm); tfm 371 drivers/net/macsec.c crypto_free_aead(sa->key.tfm); tfm 616 drivers/net/macsec.c static struct aead_request *macsec_alloc_req(struct crypto_aead *tfm, tfm 625 drivers/net/macsec.c size = sizeof(struct aead_request) + crypto_aead_reqsize(tfm); tfm 641 drivers/net/macsec.c aead_request_set_tfm(req, tfm); tfm 733 drivers/net/macsec.c req = macsec_alloc_req(tx_sa->key.tfm, &iv, &sg, ret); tfm 947 drivers/net/macsec.c req = macsec_alloc_req(rx_sa->key.tfm, &iv, &sg, ret); tfm 1309 drivers/net/macsec.c struct crypto_aead *tfm; tfm 1313 drivers/net/macsec.c tfm = crypto_alloc_aead("gcm(aes)", 0, CRYPTO_ALG_ASYNC); tfm 1315 drivers/net/macsec.c if (IS_ERR(tfm)) tfm 1316 drivers/net/macsec.c return tfm; tfm 1318 drivers/net/macsec.c ret = crypto_aead_setkey(tfm, key, key_len); tfm 1322 drivers/net/macsec.c ret = crypto_aead_setauthsize(tfm, icv_len); tfm 1326 drivers/net/macsec.c return tfm; tfm 1328 drivers/net/macsec.c crypto_free_aead(tfm); tfm 1339 drivers/net/macsec.c rx_sa->key.tfm = macsec_alloc_tfm(sak, key_len, icv_len); tfm 1340 drivers/net/macsec.c if (IS_ERR(rx_sa->key.tfm)) { tfm 1342 drivers/net/macsec.c return PTR_ERR(rx_sa->key.tfm); tfm 1437 drivers/net/macsec.c tx_sa->key.tfm = macsec_alloc_tfm(sak, key_len, icv_len); tfm 1438 drivers/net/macsec.c if (IS_ERR(tx_sa->key.tfm)) { tfm 1440 drivers/net/macsec.c return PTR_ERR(tx_sa->key.tfm); tfm 198 drivers/net/ppp/ppp_mppe.c state->sha1->tfm = shash; tfm 224 drivers/net/ppp/ppp_mppe.c crypto_free_shash(state->sha1->tfm); tfm 240 drivers/net/ppp/ppp_mppe.c crypto_free_shash(state->sha1->tfm); tfm 1222 drivers/net/wireless/cisco/airo.c struct crypto_sync_skcipher *tfm; tfm 1297 drivers/net/wireless/cisco/airo.c struct crypto_sync_skcipher *tfm); tfm 1304 drivers/net/wireless/cisco/airo.c struct crypto_sync_skcipher *tfm) tfm 1323 drivers/net/wireless/cisco/airo.c emmh32_setseed(&cur->seed, key, key_len, tfm); tfm 1349 drivers/net/wireless/cisco/airo.c ai->tfm); tfm 1355 drivers/net/wireless/cisco/airo.c ai->tfm); tfm 1364 drivers/net/wireless/cisco/airo.c if (ai->tfm == NULL) tfm 1365 drivers/net/wireless/cisco/airo.c ai->tfm = crypto_alloc_sync_skcipher("ctr(aes)", 0, 0); tfm 1367 drivers/net/wireless/cisco/airo.c if (IS_ERR(ai->tfm)) { tfm 1369 drivers/net/wireless/cisco/airo.c ai->tfm = NULL; tfm 1634 drivers/net/wireless/cisco/airo.c struct crypto_sync_skcipher *tfm) tfm 1639 drivers/net/wireless/cisco/airo.c SYNC_SKCIPHER_REQUEST_ON_STACK(req, tfm); tfm 1644 drivers/net/wireless/cisco/airo.c crypto_sync_skcipher_setkey(tfm, pkey, 16); tfm 1649 drivers/net/wireless/cisco/airo.c skcipher_request_set_sync_tfm(req, tfm); tfm 2427 drivers/net/wireless/cisco/airo.c crypto_free_sync_skcipher(ai->tfm); tfm 2804 drivers/net/wireless/cisco/airo.c ai->tfm = NULL; tfm 67 drivers/net/wireless/intersil/orinoco/mic.c desc->tfm = tfm_michael; tfm 421 drivers/nfc/s3fwrn5/firmware.c struct crypto_shash *tfm; tfm 429 drivers/nfc/s3fwrn5/firmware.c tfm = crypto_alloc_shash("sha1", 0, 0); tfm 430 drivers/nfc/s3fwrn5/firmware.c if (IS_ERR(tfm)) { tfm 431 drivers/nfc/s3fwrn5/firmware.c ret = PTR_ERR(tfm); tfm 438 drivers/nfc/s3fwrn5/firmware.c SHASH_DESC_ON_STACK(desc, tfm); tfm 440 drivers/nfc/s3fwrn5/firmware.c desc->tfm = tfm; tfm 447 drivers/nfc/s3fwrn5/firmware.c crypto_free_shash(tfm); tfm 1080 drivers/nvme/host/tcp.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(queue->rcv_hash); tfm 1084 drivers/nvme/host/tcp.c crypto_free_ahash(tfm); tfm 1089 drivers/nvme/host/tcp.c struct crypto_ahash *tfm; tfm 1091 drivers/nvme/host/tcp.c tfm = crypto_alloc_ahash("crc32c", 0, CRYPTO_ALG_ASYNC); tfm 1092 drivers/nvme/host/tcp.c if (IS_ERR(tfm)) tfm 1093 drivers/nvme/host/tcp.c return PTR_ERR(tfm); tfm 1095 drivers/nvme/host/tcp.c queue->snd_hash = ahash_request_alloc(tfm, GFP_KERNEL); tfm 1100 drivers/nvme/host/tcp.c queue->rcv_hash = ahash_request_alloc(tfm, GFP_KERNEL); tfm 1109 drivers/nvme/host/tcp.c crypto_free_ahash(tfm); tfm 724 drivers/nvme/target/tcp.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(queue->rcv_hash); tfm 728 drivers/nvme/target/tcp.c crypto_free_ahash(tfm); tfm 733 drivers/nvme/target/tcp.c struct crypto_ahash *tfm; tfm 735 drivers/nvme/target/tcp.c tfm = crypto_alloc_ahash("crc32c", 0, CRYPTO_ALG_ASYNC); tfm 736 drivers/nvme/target/tcp.c if (IS_ERR(tfm)) tfm 737 drivers/nvme/target/tcp.c return PTR_ERR(tfm); tfm 739 drivers/nvme/target/tcp.c queue->snd_hash = ahash_request_alloc(tfm, GFP_KERNEL); tfm 744 drivers/nvme/target/tcp.c queue->rcv_hash = ahash_request_alloc(tfm, GFP_KERNEL); tfm 753 drivers/nvme/target/tcp.c crypto_free_ahash(tfm); tfm 551 drivers/scsi/iscsi_tcp.c struct crypto_ahash *tfm; tfm 561 drivers/scsi/iscsi_tcp.c tfm = crypto_alloc_ahash("crc32c", 0, CRYPTO_ALG_ASYNC); tfm 562 drivers/scsi/iscsi_tcp.c if (IS_ERR(tfm)) tfm 565 drivers/scsi/iscsi_tcp.c tcp_sw_conn->tx_hash = ahash_request_alloc(tfm, GFP_KERNEL); tfm 570 drivers/scsi/iscsi_tcp.c tcp_sw_conn->rx_hash = ahash_request_alloc(tfm, GFP_KERNEL); tfm 582 drivers/scsi/iscsi_tcp.c crypto_free_ahash(tfm); tfm 623 drivers/scsi/iscsi_tcp.c struct crypto_ahash *tfm; tfm 625 drivers/scsi/iscsi_tcp.c tfm = crypto_ahash_reqtfm(tcp_sw_conn->tx_hash); tfm 627 drivers/scsi/iscsi_tcp.c crypto_free_ahash(tfm); tfm 201 drivers/staging/ks7010/ks_hostif.c struct crypto_shash *tfm = NULL; tfm 205 drivers/staging/ks7010/ks_hostif.c tfm = crypto_alloc_shash("michael_mic", 0, 0); tfm 206 drivers/staging/ks7010/ks_hostif.c if (IS_ERR(tfm)) { tfm 207 drivers/staging/ks7010/ks_hostif.c ret = PTR_ERR(tfm); tfm 211 drivers/staging/ks7010/ks_hostif.c ret = crypto_shash_setkey(tfm, key, MICHAEL_MIC_KEY_LEN); tfm 215 drivers/staging/ks7010/ks_hostif.c desc = kmalloc(sizeof(*desc) + crypto_shash_descsize(tfm), GFP_KERNEL); tfm 221 drivers/staging/ks7010/ks_hostif.c desc->tfm = tfm; tfm 252 drivers/staging/ks7010/ks_hostif.c crypto_free_shash(tfm); tfm 43 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c struct crypto_aead *tfm; tfm 59 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c priv->tfm = crypto_alloc_aead("ccm(aes)", 0, CRYPTO_ALG_ASYNC); tfm 60 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c if (IS_ERR(priv->tfm)) { tfm 62 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c priv->tfm = NULL; tfm 69 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c if (priv->tfm) tfm 70 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c crypto_free_aead(priv->tfm); tfm 82 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c if (_priv && _priv->tfm) tfm 83 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c crypto_free_aead(_priv->tfm); tfm 196 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c req = aead_request_alloc(key->tfm, GFP_ATOMIC); tfm 280 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c req = aead_request_alloc(key->tfm, GFP_ATOMIC); tfm 321 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c struct crypto_aead *tfm = data->tfm; tfm 326 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c data->tfm = tfm; tfm 338 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c if (crypto_aead_setauthsize(data->tfm, CCMP_MIC_LEN) || tfm 339 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c crypto_aead_setkey(data->tfm, data->key, CCMP_TK_LEN)) tfm 505 drivers/staging/rtl8192e/rtllib_crypt_tkip.c desc->tfm = tfm_michael; tfm 659 drivers/staging/rtl8192e/rtllib_crypt_tkip.c struct crypto_shash *tfm = tkey->tx_tfm_michael; tfm 667 drivers/staging/rtl8192e/rtllib_crypt_tkip.c tkey->tx_tfm_michael = tfm; tfm 48 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c struct crypto_aead *tfm; tfm 64 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c priv->tfm = crypto_alloc_aead("ccm(aes)", 0, CRYPTO_ALG_ASYNC); tfm 65 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c if (IS_ERR(priv->tfm)) { tfm 67 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c priv->tfm = NULL; tfm 75 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c if (priv->tfm) tfm 76 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c crypto_free_aead(priv->tfm); tfm 87 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c if (_priv && _priv->tfm) tfm 88 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c crypto_free_aead(_priv->tfm); tfm 203 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c req = aead_request_alloc(key->tfm, GFP_ATOMIC); tfm 290 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c req = aead_request_alloc(key->tfm, GFP_ATOMIC); tfm 330 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c struct crypto_aead *tfm = data->tfm; tfm 346 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c if (crypto_aead_setauthsize(tfm, CCMP_MIC_LEN) || tfm 347 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c crypto_aead_setkey(tfm, data->key, CCMP_TK_LEN)) tfm 501 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c desc->tfm = tfm_michael; tfm 658 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c struct crypto_shash *tfm = tkey->tx_tfm_michael; tfm 666 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c tkey->tx_tfm_michael = tfm; tfm 212 drivers/staging/wusbcore/crypto.c desc->tfm = tfm_cbcmac; tfm 4238 drivers/target/iscsi/iscsi_target.c struct crypto_ahash *tfm; tfm 4240 drivers/target/iscsi/iscsi_target.c tfm = crypto_ahash_reqtfm(conn->conn_rx_hash); tfm 4242 drivers/target/iscsi/iscsi_target.c crypto_free_ahash(tfm); tfm 167 drivers/target/iscsi/iscsi_target_auth.c struct crypto_shash *tfm = NULL; tfm 233 drivers/target/iscsi/iscsi_target_auth.c tfm = crypto_alloc_shash("md5", 0, 0); tfm 234 drivers/target/iscsi/iscsi_target_auth.c if (IS_ERR(tfm)) { tfm 235 drivers/target/iscsi/iscsi_target_auth.c tfm = NULL; tfm 240 drivers/target/iscsi/iscsi_target_auth.c desc = kmalloc(sizeof(*desc) + crypto_shash_descsize(tfm), GFP_KERNEL); tfm 246 drivers/target/iscsi/iscsi_target_auth.c desc->tfm = tfm; tfm 404 drivers/target/iscsi/iscsi_target_auth.c if (tfm) tfm 405 drivers/target/iscsi/iscsi_target_auth.c crypto_free_shash(tfm); tfm 79 drivers/target/iscsi/iscsi_target_login.c struct crypto_ahash *tfm; tfm 86 drivers/target/iscsi/iscsi_target_login.c tfm = crypto_alloc_ahash("crc32c", 0, CRYPTO_ALG_ASYNC); tfm 87 drivers/target/iscsi/iscsi_target_login.c if (IS_ERR(tfm)) { tfm 92 drivers/target/iscsi/iscsi_target_login.c conn->conn_rx_hash = ahash_request_alloc(tfm, GFP_KERNEL); tfm 95 drivers/target/iscsi/iscsi_target_login.c crypto_free_ahash(tfm); tfm 100 drivers/target/iscsi/iscsi_target_login.c conn->conn_tx_hash = ahash_request_alloc(tfm, GFP_KERNEL); tfm 105 drivers/target/iscsi/iscsi_target_login.c crypto_free_ahash(tfm); tfm 1216 drivers/target/iscsi/iscsi_target_login.c struct crypto_ahash *tfm; tfm 1218 drivers/target/iscsi/iscsi_target_login.c tfm = crypto_ahash_reqtfm(conn->conn_rx_hash); tfm 1220 drivers/target/iscsi/iscsi_target_login.c crypto_free_ahash(tfm); tfm 648 drivers/thunderbolt/domain.c struct crypto_shash *tfm; tfm 665 drivers/thunderbolt/domain.c tfm = crypto_alloc_shash("hmac(sha256)", 0, 0); tfm 666 drivers/thunderbolt/domain.c if (IS_ERR(tfm)) tfm 667 drivers/thunderbolt/domain.c return PTR_ERR(tfm); tfm 669 drivers/thunderbolt/domain.c ret = crypto_shash_setkey(tfm, sw->key, TB_SWITCH_KEY_SIZE); tfm 673 drivers/thunderbolt/domain.c shash = kzalloc(sizeof(*shash) + crypto_shash_descsize(tfm), tfm 680 drivers/thunderbolt/domain.c shash->tfm = tfm; tfm 693 drivers/thunderbolt/domain.c crypto_free_shash(tfm); tfm 701 drivers/thunderbolt/domain.c crypto_free_shash(tfm); tfm 1726 fs/btrfs/check-integrity.c shash->tfm = fs_info->csum_shash; tfm 91 fs/btrfs/compression.c shash->tfm = fs_info->csum_shash; tfm 267 fs/btrfs/disk-io.c shash->tfm = fs_info->csum_shash; tfm 373 fs/btrfs/disk-io.c shash->tfm = fs_info->csum_shash; tfm 3499 fs/btrfs/disk-io.c shash->tfm = fs_info->csum_shash; tfm 471 fs/btrfs/file-item.c shash->tfm = fs_info->csum_shash; tfm 3378 fs/btrfs/inode.c shash->tfm = fs_info->csum_shash; tfm 1804 fs/btrfs/scrub.c shash->tfm = fs_info->csum_shash; tfm 1850 fs/btrfs/scrub.c shash->tfm = fs_info->csum_shash; tfm 1924 fs/btrfs/scrub.c shash->tfm = fs_info->csum_shash; tfm 962 fs/cifs/misc.c (*sdesc)->shash.tfm = *shash; tfm 3674 fs/cifs/smb2ops.c struct crypto_aead *tfm; tfm 3690 fs/cifs/smb2ops.c tfm = enc ? server->secmech.ccmaesencrypt : tfm 3692 fs/cifs/smb2ops.c rc = crypto_aead_setkey(tfm, key, SMB3_SIGN_KEY_SIZE); tfm 3698 fs/cifs/smb2ops.c rc = crypto_aead_setauthsize(tfm, SMB2_SIGNATURE_SIZE); tfm 3704 fs/cifs/smb2ops.c req = aead_request_alloc(tfm, GFP_KERNEL); tfm 3722 fs/cifs/smb2ops.c iv_len = crypto_aead_ivsize(tfm); tfm 738 fs/cifs/smb2transport.c struct crypto_aead *tfm; tfm 742 fs/cifs/smb2transport.c tfm = crypto_alloc_aead("gcm(aes)", 0, 0); tfm 744 fs/cifs/smb2transport.c tfm = crypto_alloc_aead("ccm(aes)", 0, 0); tfm 745 fs/cifs/smb2transport.c if (IS_ERR(tfm)) { tfm 748 fs/cifs/smb2transport.c return PTR_ERR(tfm); tfm 750 fs/cifs/smb2transport.c server->secmech.ccmaesencrypt = tfm; tfm 755 fs/cifs/smb2transport.c tfm = crypto_alloc_aead("gcm(aes)", 0, 0); tfm 757 fs/cifs/smb2transport.c tfm = crypto_alloc_aead("ccm(aes)", 0, 0); tfm 758 fs/cifs/smb2transport.c if (IS_ERR(tfm)) { tfm 763 fs/cifs/smb2transport.c return PTR_ERR(tfm); tfm 765 fs/cifs/smb2transport.c server->secmech.ccmaesdecrypt = tfm; tfm 162 fs/crypto/crypto.c struct crypto_skcipher *tfm = ci->ci_ctfm; tfm 172 fs/crypto/crypto.c req = skcipher_request_alloc(tfm, gfp_flags); tfm 43 fs/crypto/fname.c struct crypto_skcipher *tfm = ci->ci_ctfm; tfm 61 fs/crypto/fname.c req = skcipher_request_alloc(tfm, GFP_NOFS); tfm 96 fs/crypto/fname.c struct crypto_skcipher *tfm = ci->ci_ctfm; tfm 101 fs/crypto/fname.c req = skcipher_request_alloc(tfm, GFP_NOFS); tfm 54 fs/crypto/hkdf.c desc->tfm = hmac_tfm; tfm 130 fs/crypto/hkdf.c desc->tfm = hkdf->hmac_tfm; tfm 74 fs/crypto/keysetup.c struct crypto_skcipher *tfm; tfm 77 fs/crypto/keysetup.c tfm = crypto_alloc_skcipher(mode->cipher_str, 0, 0); tfm 78 fs/crypto/keysetup.c if (IS_ERR(tfm)) { tfm 79 fs/crypto/keysetup.c if (PTR_ERR(tfm) == -ENOENT) { tfm 86 fs/crypto/keysetup.c mode->cipher_str, PTR_ERR(tfm)); tfm 87 fs/crypto/keysetup.c return tfm; tfm 100 fs/crypto/keysetup.c crypto_skcipher_alg(tfm)->base.cra_driver_name); tfm 102 fs/crypto/keysetup.c crypto_skcipher_set_flags(tfm, CRYPTO_TFM_REQ_FORBID_WEAK_KEYS); tfm 103 fs/crypto/keysetup.c err = crypto_skcipher_setkey(tfm, raw_key, mode->keysize); tfm 107 fs/crypto/keysetup.c return tfm; tfm 110 fs/crypto/keysetup.c crypto_free_skcipher(tfm); tfm 116 fs/crypto/keysetup.c struct crypto_shash *tfm = READ_ONCE(essiv_hash_tfm); tfm 119 fs/crypto/keysetup.c if (unlikely(!tfm)) { tfm 122 fs/crypto/keysetup.c tfm = crypto_alloc_shash("sha256", 0, 0); tfm 123 fs/crypto/keysetup.c if (IS_ERR(tfm)) { tfm 124 fs/crypto/keysetup.c if (PTR_ERR(tfm) == -ENOENT) { tfm 131 fs/crypto/keysetup.c PTR_ERR(tfm)); tfm 132 fs/crypto/keysetup.c return PTR_ERR(tfm); tfm 134 fs/crypto/keysetup.c prev_tfm = cmpxchg(&essiv_hash_tfm, NULL, tfm); tfm 136 fs/crypto/keysetup.c crypto_free_shash(tfm); tfm 137 fs/crypto/keysetup.c tfm = prev_tfm; tfm 142 fs/crypto/keysetup.c SHASH_DESC_ON_STACK(desc, tfm); tfm 143 fs/crypto/keysetup.c desc->tfm = tfm; tfm 213 fs/crypto/keysetup.c struct crypto_skcipher *tfm, *prev_tfm; tfm 221 fs/crypto/keysetup.c tfm = READ_ONCE(mk->mk_mode_keys[mode_num]); tfm 222 fs/crypto/keysetup.c if (likely(tfm != NULL)) tfm 232 fs/crypto/keysetup.c tfm = fscrypt_allocate_skcipher(mode, mode_key, ci->ci_inode); tfm 234 fs/crypto/keysetup.c if (IS_ERR(tfm)) tfm 235 fs/crypto/keysetup.c return PTR_ERR(tfm); tfm 238 fs/crypto/keysetup.c prev_tfm = cmpxchg(&mk->mk_mode_keys[mode_num], NULL, tfm); tfm 240 fs/crypto/keysetup.c crypto_free_skcipher(tfm); tfm 241 fs/crypto/keysetup.c tfm = prev_tfm; tfm 244 fs/crypto/keysetup.c ci->ci_ctfm = tfm; tfm 55 fs/crypto/keysetup_v1.c struct crypto_skcipher *tfm = crypto_alloc_skcipher("ecb(aes)", 0, 0); tfm 57 fs/crypto/keysetup_v1.c if (IS_ERR(tfm)) { tfm 58 fs/crypto/keysetup_v1.c res = PTR_ERR(tfm); tfm 59 fs/crypto/keysetup_v1.c tfm = NULL; tfm 62 fs/crypto/keysetup_v1.c crypto_skcipher_set_flags(tfm, CRYPTO_TFM_REQ_FORBID_WEAK_KEYS); tfm 63 fs/crypto/keysetup_v1.c req = skcipher_request_alloc(tfm, GFP_NOFS); tfm 71 fs/crypto/keysetup_v1.c res = crypto_skcipher_setkey(tfm, nonce, FS_KEY_DERIVATION_NONCE_SIZE); tfm 82 fs/crypto/keysetup_v1.c crypto_free_skcipher(tfm); tfm 51 fs/ecryptfs/crypto.c static int ecryptfs_hash_digest(struct crypto_shash *tfm, tfm 54 fs/ecryptfs/crypto.c SHASH_DESC_ON_STACK(desc, tfm); tfm 57 fs/ecryptfs/crypto.c desc->tfm = tfm; tfm 77 fs/ecryptfs/crypto.c struct crypto_shash *tfm; tfm 80 fs/ecryptfs/crypto.c tfm = crypt_stat->hash_tfm; tfm 81 fs/ecryptfs/crypto.c rc = ecryptfs_hash_digest(tfm, src, len, dst); tfm 171 fs/ecryptfs/crypto.c struct crypto_shash *tfm; tfm 174 fs/ecryptfs/crypto.c tfm = crypto_alloc_shash(ECRYPTFS_DEFAULT_HASH, 0, 0); tfm 175 fs/ecryptfs/crypto.c if (IS_ERR(tfm)) { tfm 176 fs/ecryptfs/crypto.c rc = PTR_ERR(tfm); tfm 188 fs/ecryptfs/crypto.c crypt_stat->hash_tfm = tfm; tfm 204 fs/ecryptfs/crypto.c crypto_free_skcipher(crypt_stat->tfm); tfm 314 fs/ecryptfs/crypto.c if (!crypt_stat || !crypt_stat->tfm tfm 328 fs/ecryptfs/crypto.c req = skcipher_request_alloc(crypt_stat->tfm, GFP_NOFS); tfm 340 fs/ecryptfs/crypto.c rc = crypto_skcipher_setkey(crypt_stat->tfm, crypt_stat->key, tfm 584 fs/ecryptfs/crypto.c if (crypt_stat->tfm) { tfm 592 fs/ecryptfs/crypto.c crypt_stat->tfm = crypto_alloc_skcipher(full_alg_name, 0, 0); tfm 593 fs/ecryptfs/crypto.c if (IS_ERR(crypt_stat->tfm)) { tfm 594 fs/ecryptfs/crypto.c rc = PTR_ERR(crypt_stat->tfm); tfm 595 fs/ecryptfs/crypto.c crypt_stat->tfm = NULL; tfm 601 fs/ecryptfs/crypto.c crypto_skcipher_set_flags(crypt_stat->tfm, tfm 1714 fs/ecryptfs/crypto.c int ecryptfs_get_tfm_and_mutex_for_cipher_name(struct crypto_skcipher **tfm, tfm 1721 fs/ecryptfs/crypto.c (*tfm) = NULL; tfm 1733 fs/ecryptfs/crypto.c (*tfm) = key_tfm->key_tfm; tfm 2086 fs/ecryptfs/crypto.c struct crypto_skcipher *tfm; tfm 2096 fs/ecryptfs/crypto.c rc = ecryptfs_get_tfm_and_mutex_for_cipher_name(&tfm, &tfm_mutex, tfm 2104 fs/ecryptfs/crypto.c cipher_blocksize = crypto_skcipher_blocksize(tfm); tfm 239 fs/ecryptfs/ecryptfs_kernel.h struct crypto_skcipher *tfm; tfm 662 fs/ecryptfs/ecryptfs_kernel.h int ecryptfs_get_tfm_and_mutex_for_cipher_name(struct crypto_skcipher **tfm, tfm 757 fs/ecryptfs/keystore.c s->hash_desc->tfm = s->hash_tfm; tfm 1651 fs/ecryptfs/keystore.c struct crypto_skcipher *tfm; tfm 1663 fs/ecryptfs/keystore.c rc = ecryptfs_get_tfm_and_mutex_for_cipher_name(&tfm, &tfm_mutex, tfm 1694 fs/ecryptfs/keystore.c req = skcipher_request_alloc(tfm, GFP_KERNEL); tfm 1699 fs/ecryptfs/keystore.c crypto_skcipher_driver_name(tfm)); tfm 1707 fs/ecryptfs/keystore.c tfm, auth_tok->token.password.session_key_encryption_key, tfm 2189 fs/ecryptfs/keystore.c struct crypto_skcipher *tfm; tfm 2196 fs/ecryptfs/keystore.c rc = ecryptfs_get_tfm_and_mutex_for_cipher_name(&tfm, &tfm_mutex, tfm 2207 fs/ecryptfs/keystore.c crypto_skcipher_default_keysize(tfm)); tfm 2209 fs/ecryptfs/keystore.c crypto_skcipher_default_keysize(tfm); tfm 2279 fs/ecryptfs/keystore.c rc = crypto_skcipher_setkey(tfm, session_key_encryption_key, tfm 2288 fs/ecryptfs/keystore.c req = skcipher_request_alloc(tfm, GFP_KERNEL); tfm 2293 fs/ecryptfs/keystore.c "%s\n", crypto_skcipher_driver_name(tfm)); tfm 2102 fs/ext4/ext4.h desc.shash.tfm = sbi->s_chksum_driver; tfm 1465 fs/f2fs/f2fs.h desc.shash.tfm = sbi->s_chksum_driver; tfm 112 fs/nfsd/nfs4recover.c struct crypto_shash *tfm; tfm 117 fs/nfsd/nfs4recover.c tfm = crypto_alloc_shash("md5", 0, 0); tfm 118 fs/nfsd/nfs4recover.c if (IS_ERR(tfm)) { tfm 119 fs/nfsd/nfs4recover.c status = PTR_ERR(tfm); tfm 123 fs/nfsd/nfs4recover.c cksum.len = crypto_shash_digestsize(tfm); tfm 131 fs/nfsd/nfs4recover.c SHASH_DESC_ON_STACK(desc, tfm); tfm 133 fs/nfsd/nfs4recover.c desc->tfm = tfm; tfm 148 fs/nfsd/nfs4recover.c crypto_free_shash(tfm); tfm 1148 fs/nfsd/nfs4recover.c struct crypto_shash *tfm = cn->cn_tfm; tfm 1151 fs/nfsd/nfs4recover.c SHASH_DESC_ON_STACK(desc, tfm); tfm 1173 fs/nfsd/nfs4recover.c desc->tfm = tfm; tfm 1174 fs/nfsd/nfs4recover.c cksum.len = crypto_shash_digestsize(tfm); tfm 1343 fs/nfsd/nfs4recover.c struct crypto_shash *tfm = cn->cn_tfm; tfm 1346 fs/nfsd/nfs4recover.c SHASH_DESC_ON_STACK(desc, tfm); tfm 1384 fs/nfsd/nfs4recover.c desc->tfm = tfm; tfm 1385 fs/nfsd/nfs4recover.c cksum.len = crypto_shash_digestsize(tfm); tfm 1581 fs/nfsd/nfs4recover.c struct crypto_shash *tfm; tfm 1606 fs/nfsd/nfs4recover.c tfm = crypto_alloc_shash("sha256", 0, 0); tfm 1607 fs/nfsd/nfs4recover.c if (IS_ERR(tfm)) { tfm 1608 fs/nfsd/nfs4recover.c status = PTR_ERR(tfm); tfm 1611 fs/nfsd/nfs4recover.c nn->cld_net->cn_tfm = tfm; tfm 87 fs/pstore/platform.c static struct crypto_comp *tfm; tfm 278 fs/pstore/platform.c ret = crypto_comp_compress(tfm, in, inlen, out, &outlen); tfm 298 fs/pstore/platform.c if (!psinfo || tfm) tfm 329 fs/pstore/platform.c tfm = ctx; tfm 338 fs/pstore/platform.c if (IS_ENABLED(CONFIG_PSTORE_COMPRESS) && tfm) { tfm 339 fs/pstore/platform.c crypto_free_comp(tfm); tfm 340 fs/pstore/platform.c tfm = NULL; tfm 687 fs/pstore/platform.c ret = crypto_comp_decompress(tfm, record->buf, record->size, tfm 37 fs/ubifs/auth.c shash->tfm = c->hash_tfm; tfm 59 fs/ubifs/auth.c shash->tfm = c->hmac_tfm; tfm 88 fs/ubifs/auth.c hash_desc->tfm = c->hash_tfm; tfm 106 fs/ubifs/auth.c struct crypto_shash *tfm) tfm 114 fs/ubifs/auth.c desc = kmalloc(sizeof(*desc) + crypto_shash_descsize(tfm), GFP_KERNEL); tfm 118 fs/ubifs/auth.c desc->tfm = tfm; tfm 411 fs/ubifs/auth.c shash->tfm = c->hmac_tfm; tfm 494 fs/ubifs/auth.c state = kmalloc(crypto_shash_descsize(src->tfm), GFP_NOFS); tfm 531 fs/ubifs/auth.c shash->tfm = c->hmac_tfm; tfm 73 fs/ubifs/master.c shash->tfm = c->hash_tfm; tfm 566 fs/ubifs/replay.c hash_desc->tfm = c->hash_tfm; tfm 576 fs/ubifs/replay.c hmac_desc->tfm = c->hmac_tfm; tfm 130 fs/verity/enable.c req = ahash_request_alloc(params->hash_alg->tfm, GFP_KERNEL); tfm 36 fs/verity/fsverity_private.h struct crypto_ahash *tfm; /* hash tfm, allocated on demand */ tfm 43 fs/verity/hash_algs.c struct crypto_ahash *tfm; tfm 54 fs/verity/hash_algs.c tfm = READ_ONCE(alg->tfm); tfm 55 fs/verity/hash_algs.c if (likely(tfm != NULL)) tfm 61 fs/verity/hash_algs.c tfm = crypto_alloc_ahash(alg->name, 0, 0); tfm 62 fs/verity/hash_algs.c if (IS_ERR(tfm)) { tfm 63 fs/verity/hash_algs.c if (PTR_ERR(tfm) == -ENOENT) { tfm 71 fs/verity/hash_algs.c alg->name, PTR_ERR(tfm)); tfm 72 fs/verity/hash_algs.c return ERR_CAST(tfm); tfm 76 fs/verity/hash_algs.c if (WARN_ON(alg->digest_size != crypto_ahash_digestsize(tfm))) tfm 78 fs/verity/hash_algs.c if (WARN_ON(alg->block_size != crypto_ahash_blocksize(tfm))) tfm 82 fs/verity/hash_algs.c alg->name, crypto_ahash_driver_name(tfm)); tfm 85 fs/verity/hash_algs.c if (cmpxchg(&alg->tfm, NULL, tfm) != NULL) tfm 86 fs/verity/hash_algs.c crypto_free_ahash(tfm); tfm 91 fs/verity/hash_algs.c crypto_free_ahash(tfm); tfm 118 fs/verity/hash_algs.c hashstate = kmalloc(crypto_ahash_statesize(alg->tfm), GFP_KERNEL); tfm 122 fs/verity/hash_algs.c req = ahash_request_alloc(alg->tfm, GFP_KERNEL); tfm 240 fs/verity/hash_algs.c req = ahash_request_alloc(alg->tfm, GFP_KERNEL); tfm 194 fs/verity/verify.c req = ahash_request_alloc(vi->tree_params.hash_alg->tfm, GFP_NOFS); tfm 229 fs/verity/verify.c req = ahash_request_alloc(vi->tree_params.hash_alg->tfm, GFP_NOFS); tfm 80 include/crypto/acompress.h int (*init)(struct crypto_acomp *tfm); tfm 81 include/crypto/acompress.h void (*exit)(struct crypto_acomp *tfm); tfm 110 include/crypto/acompress.h static inline struct crypto_tfm *crypto_acomp_tfm(struct crypto_acomp *tfm) tfm 112 include/crypto/acompress.h return &tfm->base; tfm 120 include/crypto/acompress.h static inline struct crypto_acomp *__crypto_acomp_tfm(struct crypto_tfm *tfm) tfm 122 include/crypto/acompress.h return container_of(tfm, struct crypto_acomp, base); tfm 125 include/crypto/acompress.h static inline struct acomp_alg *crypto_acomp_alg(struct crypto_acomp *tfm) tfm 127 include/crypto/acompress.h return __crypto_acomp_alg(crypto_acomp_tfm(tfm)->__crt_alg); tfm 130 include/crypto/acompress.h static inline unsigned int crypto_acomp_reqsize(struct crypto_acomp *tfm) tfm 132 include/crypto/acompress.h return tfm->reqsize; tfm 136 include/crypto/acompress.h struct crypto_acomp *tfm) tfm 138 include/crypto/acompress.h req->base.tfm = crypto_acomp_tfm(tfm); tfm 143 include/crypto/acompress.h return __crypto_acomp_tfm(req->base.tfm); tfm 151 include/crypto/acompress.h static inline void crypto_free_acomp(struct crypto_acomp *tfm) tfm 153 include/crypto/acompress.h crypto_destroy_tfm(tfm, crypto_acomp_tfm(tfm)); tfm 172 include/crypto/acompress.h struct acomp_req *acomp_request_alloc(struct crypto_acomp *tfm); tfm 243 include/crypto/acompress.h struct crypto_acomp *tfm = crypto_acomp_reqtfm(req); tfm 244 include/crypto/acompress.h struct crypto_alg *alg = tfm->base.__crt_alg; tfm 249 include/crypto/acompress.h ret = tfm->compress(req); tfm 265 include/crypto/acompress.h struct crypto_acomp *tfm = crypto_acomp_reqtfm(req); tfm 266 include/crypto/acompress.h struct crypto_alg *alg = tfm->base.__crt_alg; tfm 271 include/crypto/acompress.h ret = tfm->decompress(req); tfm 131 include/crypto/aead.h int (*setkey)(struct crypto_aead *tfm, const u8 *key, tfm 133 include/crypto/aead.h int (*setauthsize)(struct crypto_aead *tfm, unsigned int authsize); tfm 136 include/crypto/aead.h int (*init)(struct crypto_aead *tfm); tfm 137 include/crypto/aead.h void (*exit)(struct crypto_aead *tfm); tfm 153 include/crypto/aead.h static inline struct crypto_aead *__crypto_aead_cast(struct crypto_tfm *tfm) tfm 155 include/crypto/aead.h return container_of(tfm, struct crypto_aead, base); tfm 174 include/crypto/aead.h static inline struct crypto_tfm *crypto_aead_tfm(struct crypto_aead *tfm) tfm 176 include/crypto/aead.h return &tfm->base; tfm 183 include/crypto/aead.h static inline void crypto_free_aead(struct crypto_aead *tfm) tfm 185 include/crypto/aead.h crypto_destroy_tfm(tfm, crypto_aead_tfm(tfm)); tfm 188 include/crypto/aead.h static inline struct aead_alg *crypto_aead_alg(struct crypto_aead *tfm) tfm 190 include/crypto/aead.h return container_of(crypto_aead_tfm(tfm)->__crt_alg, tfm 208 include/crypto/aead.h static inline unsigned int crypto_aead_ivsize(struct crypto_aead *tfm) tfm 210 include/crypto/aead.h return crypto_aead_alg_ivsize(crypto_aead_alg(tfm)); tfm 225 include/crypto/aead.h static inline unsigned int crypto_aead_authsize(struct crypto_aead *tfm) tfm 227 include/crypto/aead.h return tfm->authsize; tfm 240 include/crypto/aead.h static inline unsigned int crypto_aead_blocksize(struct crypto_aead *tfm) tfm 242 include/crypto/aead.h return crypto_tfm_alg_blocksize(crypto_aead_tfm(tfm)); tfm 245 include/crypto/aead.h static inline unsigned int crypto_aead_alignmask(struct crypto_aead *tfm) tfm 247 include/crypto/aead.h return crypto_tfm_alg_alignmask(crypto_aead_tfm(tfm)); tfm 250 include/crypto/aead.h static inline u32 crypto_aead_get_flags(struct crypto_aead *tfm) tfm 252 include/crypto/aead.h return crypto_tfm_get_flags(crypto_aead_tfm(tfm)); tfm 255 include/crypto/aead.h static inline void crypto_aead_set_flags(struct crypto_aead *tfm, u32 flags) tfm 257 include/crypto/aead.h crypto_tfm_set_flags(crypto_aead_tfm(tfm), flags); tfm 260 include/crypto/aead.h static inline void crypto_aead_clear_flags(struct crypto_aead *tfm, u32 flags) tfm 262 include/crypto/aead.h crypto_tfm_clear_flags(crypto_aead_tfm(tfm), flags); tfm 281 include/crypto/aead.h int crypto_aead_setkey(struct crypto_aead *tfm, tfm 294 include/crypto/aead.h int crypto_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize); tfm 298 include/crypto/aead.h return __crypto_aead_cast(req->base.tfm); tfm 363 include/crypto/aead.h static inline unsigned int crypto_aead_reqsize(struct crypto_aead *tfm) tfm 365 include/crypto/aead.h return tfm->reqsize; tfm 377 include/crypto/aead.h struct crypto_aead *tfm) tfm 379 include/crypto/aead.h req->base.tfm = crypto_aead_tfm(tfm); tfm 393 include/crypto/aead.h static inline struct aead_request *aead_request_alloc(struct crypto_aead *tfm, tfm 398 include/crypto/aead.h req = kmalloc(sizeof(*req) + crypto_aead_reqsize(tfm), gfp); tfm 401 include/crypto/aead.h aead_request_set_tfm(req, tfm); tfm 51 include/crypto/aes.h int crypto_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, tfm 97 include/crypto/akcipher.h int (*set_pub_key)(struct crypto_akcipher *tfm, const void *key, tfm 99 include/crypto/akcipher.h int (*set_priv_key)(struct crypto_akcipher *tfm, const void *key, tfm 101 include/crypto/akcipher.h unsigned int (*max_size)(struct crypto_akcipher *tfm); tfm 102 include/crypto/akcipher.h int (*init)(struct crypto_akcipher *tfm); tfm 103 include/crypto/akcipher.h void (*exit)(struct crypto_akcipher *tfm); tfm 134 include/crypto/akcipher.h struct crypto_akcipher *tfm) tfm 136 include/crypto/akcipher.h return &tfm->base; tfm 145 include/crypto/akcipher.h struct crypto_tfm *tfm) tfm 147 include/crypto/akcipher.h return container_of(tfm, struct crypto_akcipher, base); tfm 151 include/crypto/akcipher.h struct crypto_akcipher *tfm) tfm 153 include/crypto/akcipher.h return __crypto_akcipher_alg(crypto_akcipher_tfm(tfm)->__crt_alg); tfm 156 include/crypto/akcipher.h static inline unsigned int crypto_akcipher_reqsize(struct crypto_akcipher *tfm) tfm 158 include/crypto/akcipher.h return crypto_akcipher_alg(tfm)->reqsize; tfm 162 include/crypto/akcipher.h struct crypto_akcipher *tfm) tfm 164 include/crypto/akcipher.h req->base.tfm = crypto_akcipher_tfm(tfm); tfm 170 include/crypto/akcipher.h return __crypto_akcipher_tfm(req->base.tfm); tfm 178 include/crypto/akcipher.h static inline void crypto_free_akcipher(struct crypto_akcipher *tfm) tfm 180 include/crypto/akcipher.h crypto_destroy_tfm(tfm, crypto_akcipher_tfm(tfm)); tfm 192 include/crypto/akcipher.h struct crypto_akcipher *tfm, gfp_t gfp) tfm 196 include/crypto/akcipher.h req = kmalloc(sizeof(*req) + crypto_akcipher_reqsize(tfm), gfp); tfm 198 include/crypto/akcipher.h akcipher_request_set_tfm(req, tfm); tfm 268 include/crypto/akcipher.h static inline unsigned int crypto_akcipher_maxsize(struct crypto_akcipher *tfm) tfm 270 include/crypto/akcipher.h struct akcipher_alg *alg = crypto_akcipher_alg(tfm); tfm 272 include/crypto/akcipher.h return alg->max_size(tfm); tfm 287 include/crypto/akcipher.h struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); tfm 288 include/crypto/akcipher.h struct akcipher_alg *alg = crypto_akcipher_alg(tfm); tfm 289 include/crypto/akcipher.h struct crypto_alg *calg = tfm->base.__crt_alg; tfm 311 include/crypto/akcipher.h struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); tfm 312 include/crypto/akcipher.h struct akcipher_alg *alg = crypto_akcipher_alg(tfm); tfm 313 include/crypto/akcipher.h struct crypto_alg *calg = tfm->base.__crt_alg; tfm 335 include/crypto/akcipher.h struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); tfm 336 include/crypto/akcipher.h struct akcipher_alg *alg = crypto_akcipher_alg(tfm); tfm 337 include/crypto/akcipher.h struct crypto_alg *calg = tfm->base.__crt_alg; tfm 362 include/crypto/akcipher.h struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); tfm 363 include/crypto/akcipher.h struct akcipher_alg *alg = crypto_akcipher_alg(tfm); tfm 364 include/crypto/akcipher.h struct crypto_alg *calg = tfm->base.__crt_alg; tfm 386 include/crypto/akcipher.h static inline int crypto_akcipher_set_pub_key(struct crypto_akcipher *tfm, tfm 390 include/crypto/akcipher.h struct akcipher_alg *alg = crypto_akcipher_alg(tfm); tfm 392 include/crypto/akcipher.h return alg->set_pub_key(tfm, key, keylen); tfm 408 include/crypto/akcipher.h static inline int crypto_akcipher_set_priv_key(struct crypto_akcipher *tfm, tfm 412 include/crypto/akcipher.h struct akcipher_alg *alg = crypto_akcipher_alg(tfm); tfm 414 include/crypto/akcipher.h return alg->set_priv_key(tfm, key, keylen); tfm 34 include/crypto/algapi.h int (*init)(struct crypto_tfm *tfm, u32 type, u32 mask); tfm 35 include/crypto/algapi.h int (*init_tfm)(struct crypto_tfm *tfm); tfm 247 include/crypto/algapi.h struct crypto_aead *tfm, tfm 256 include/crypto/algapi.h static inline void *crypto_tfm_ctx_aligned(struct crypto_tfm *tfm) tfm 258 include/crypto/algapi.h return PTR_ALIGN(crypto_tfm_ctx(tfm), tfm 259 include/crypto/algapi.h crypto_tfm_alg_alignmask(tfm) + 1); tfm 263 include/crypto/algapi.h struct crypto_tfm *tfm) tfm 265 include/crypto/algapi.h return container_of(tfm->__crt_alg, struct crypto_instance, alg); tfm 274 include/crypto/algapi.h struct crypto_ablkcipher *tfm) tfm 276 include/crypto/algapi.h return &crypto_ablkcipher_tfm(tfm)->__crt_alg->cra_ablkcipher; tfm 279 include/crypto/algapi.h static inline void *crypto_ablkcipher_ctx(struct crypto_ablkcipher *tfm) tfm 281 include/crypto/algapi.h return crypto_tfm_ctx(&tfm->base); tfm 284 include/crypto/algapi.h static inline void *crypto_ablkcipher_ctx_aligned(struct crypto_ablkcipher *tfm) tfm 286 include/crypto/algapi.h return crypto_tfm_ctx_aligned(&tfm->base); tfm 298 include/crypto/algapi.h static inline void *crypto_blkcipher_ctx(struct crypto_blkcipher *tfm) tfm 300 include/crypto/algapi.h return crypto_tfm_ctx(&tfm->base); tfm 303 include/crypto/algapi.h static inline void *crypto_blkcipher_ctx_aligned(struct crypto_blkcipher *tfm) tfm 305 include/crypto/algapi.h return crypto_tfm_ctx_aligned(&tfm->base); tfm 317 include/crypto/algapi.h static inline struct cipher_alg *crypto_cipher_alg(struct crypto_cipher *tfm) tfm 319 include/crypto/algapi.h return &crypto_cipher_tfm(tfm)->__crt_alg->cra_cipher; tfm 21 include/crypto/blowfish.h int blowfish_setkey(struct crypto_tfm *tfm, const u8 *key, tfm 19 include/crypto/cast5.h int cast5_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen); tfm 20 include/crypto/cast6.h int cast6_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen); tfm 16 include/crypto/cbc.h struct skcipher_walk *walk, struct crypto_skcipher *tfm, tfm 19 include/crypto/cbc.h unsigned int bsize = crypto_skcipher_blocksize(tfm); tfm 27 include/crypto/cbc.h fn(tfm, iv, dst); tfm 38 include/crypto/cbc.h struct skcipher_walk *walk, struct crypto_skcipher *tfm, tfm 41 include/crypto/cbc.h unsigned int bsize = crypto_skcipher_blocksize(tfm); tfm 48 include/crypto/cbc.h fn(tfm, src, src); tfm 63 include/crypto/cbc.h struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 71 include/crypto/cbc.h err = crypto_cbc_encrypt_inplace(&walk, tfm, fn); tfm 73 include/crypto/cbc.h err = crypto_cbc_encrypt_segment(&walk, tfm, fn); tfm 81 include/crypto/cbc.h struct skcipher_walk *walk, struct crypto_skcipher *tfm, tfm 84 include/crypto/cbc.h unsigned int bsize = crypto_skcipher_blocksize(tfm); tfm 91 include/crypto/cbc.h fn(tfm, src, dst); tfm 105 include/crypto/cbc.h struct skcipher_walk *walk, struct crypto_skcipher *tfm, tfm 108 include/crypto/cbc.h unsigned int bsize = crypto_skcipher_blocksize(tfm); tfm 118 include/crypto/cbc.h fn(tfm, src, src); tfm 132 include/crypto/cbc.h struct skcipher_walk *walk, struct crypto_skcipher *tfm, tfm 136 include/crypto/cbc.h return crypto_cbc_decrypt_inplace(walk, tfm, fn); tfm 138 include/crypto/cbc.h return crypto_cbc_decrypt_segment(walk, tfm, fn); tfm 46 include/crypto/chacha.h int crypto_chacha20_setkey(struct crypto_skcipher *tfm, const u8 *key, tfm 48 include/crypto/chacha.h int crypto_chacha12_setkey(struct crypto_skcipher *tfm, const u8 *key, tfm 28 include/crypto/cryptd.h struct crypto_skcipher *cryptd_skcipher_child(struct cryptd_skcipher *tfm); tfm 30 include/crypto/cryptd.h bool cryptd_skcipher_queued(struct cryptd_skcipher *tfm); tfm 31 include/crypto/cryptd.h void cryptd_free_skcipher(struct cryptd_skcipher *tfm); tfm 38 include/crypto/cryptd.h struct crypto_ahash *tfm) tfm 40 include/crypto/cryptd.h return (struct cryptd_ahash *)tfm; tfm 46 include/crypto/cryptd.h struct crypto_shash *cryptd_ahash_child(struct cryptd_ahash *tfm); tfm 49 include/crypto/cryptd.h bool cryptd_ahash_queued(struct cryptd_ahash *tfm); tfm 50 include/crypto/cryptd.h void cryptd_free_ahash(struct cryptd_ahash *tfm); tfm 57 include/crypto/cryptd.h struct crypto_aead *tfm) tfm 59 include/crypto/cryptd.h return (struct cryptd_aead *)tfm; tfm 65 include/crypto/cryptd.h struct crypto_aead *cryptd_aead_child(struct cryptd_aead *tfm); tfm 67 include/crypto/cryptd.h bool cryptd_aead_queued(struct cryptd_aead *tfm); tfm 69 include/crypto/cryptd.h void cryptd_free_aead(struct cryptd_aead *tfm); tfm 24 include/crypto/ctr.h struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 25 include/crypto/ctr.h int blocksize = crypto_skcipher_chunksize(tfm); tfm 50 include/crypto/ctr.h fn(tfm, walk.iv, buf); tfm 136 include/crypto/hash.h int (*setkey)(struct crypto_ahash *tfm, const u8 *key, tfm 143 include/crypto/hash.h struct crypto_shash *tfm; tfm 190 include/crypto/hash.h int (*setkey)(struct crypto_shash *tfm, const u8 *key, tfm 211 include/crypto/hash.h int (*setkey)(struct crypto_ahash *tfm, const u8 *key, tfm 233 include/crypto/hash.h static inline struct crypto_ahash *__crypto_ahash_cast(struct crypto_tfm *tfm) tfm 235 include/crypto/hash.h return container_of(tfm, struct crypto_ahash, base); tfm 255 include/crypto/hash.h static inline struct crypto_tfm *crypto_ahash_tfm(struct crypto_ahash *tfm) tfm 257 include/crypto/hash.h return &tfm->base; tfm 264 include/crypto/hash.h static inline void crypto_free_ahash(struct crypto_ahash *tfm) tfm 266 include/crypto/hash.h crypto_destroy_tfm(tfm, crypto_ahash_tfm(tfm)); tfm 281 include/crypto/hash.h static inline const char *crypto_ahash_alg_name(struct crypto_ahash *tfm) tfm 283 include/crypto/hash.h return crypto_tfm_alg_name(crypto_ahash_tfm(tfm)); tfm 286 include/crypto/hash.h static inline const char *crypto_ahash_driver_name(struct crypto_ahash *tfm) tfm 288 include/crypto/hash.h return crypto_tfm_alg_driver_name(crypto_ahash_tfm(tfm)); tfm 292 include/crypto/hash.h struct crypto_ahash *tfm) tfm 294 include/crypto/hash.h return crypto_tfm_alg_alignmask(crypto_ahash_tfm(tfm)); tfm 306 include/crypto/hash.h static inline unsigned int crypto_ahash_blocksize(struct crypto_ahash *tfm) tfm 308 include/crypto/hash.h return crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); tfm 318 include/crypto/hash.h struct crypto_ahash *tfm) tfm 320 include/crypto/hash.h return __crypto_hash_alg_common(crypto_ahash_tfm(tfm)->__crt_alg); tfm 333 include/crypto/hash.h static inline unsigned int crypto_ahash_digestsize(struct crypto_ahash *tfm) tfm 335 include/crypto/hash.h return crypto_hash_alg_common(tfm)->digestsize; tfm 348 include/crypto/hash.h static inline unsigned int crypto_ahash_statesize(struct crypto_ahash *tfm) tfm 350 include/crypto/hash.h return crypto_hash_alg_common(tfm)->statesize; tfm 353 include/crypto/hash.h static inline u32 crypto_ahash_get_flags(struct crypto_ahash *tfm) tfm 355 include/crypto/hash.h return crypto_tfm_get_flags(crypto_ahash_tfm(tfm)); tfm 358 include/crypto/hash.h static inline void crypto_ahash_set_flags(struct crypto_ahash *tfm, u32 flags) tfm 360 include/crypto/hash.h crypto_tfm_set_flags(crypto_ahash_tfm(tfm), flags); tfm 363 include/crypto/hash.h static inline void crypto_ahash_clear_flags(struct crypto_ahash *tfm, u32 flags) tfm 365 include/crypto/hash.h crypto_tfm_clear_flags(crypto_ahash_tfm(tfm), flags); tfm 381 include/crypto/hash.h return __crypto_ahash_cast(req->base.tfm); tfm 390 include/crypto/hash.h static inline unsigned int crypto_ahash_reqsize(struct crypto_ahash *tfm) tfm 392 include/crypto/hash.h return tfm->reqsize; tfm 411 include/crypto/hash.h int crypto_ahash_setkey(struct crypto_ahash *tfm, const u8 *key, tfm 486 include/crypto/hash.h struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 488 include/crypto/hash.h if (crypto_ahash_get_flags(tfm) & CRYPTO_TFM_NEED_KEY) tfm 491 include/crypto/hash.h return tfm->import(req, in); tfm 507 include/crypto/hash.h struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 509 include/crypto/hash.h if (crypto_ahash_get_flags(tfm) & CRYPTO_TFM_NEED_KEY) tfm 512 include/crypto/hash.h return tfm->init(req); tfm 528 include/crypto/hash.h struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 529 include/crypto/hash.h struct crypto_alg *alg = tfm->base.__crt_alg; tfm 559 include/crypto/hash.h struct crypto_ahash *tfm) tfm 561 include/crypto/hash.h req->base.tfm = crypto_ahash_tfm(tfm); tfm 577 include/crypto/hash.h struct crypto_ahash *tfm, gfp_t gfp) tfm 582 include/crypto/hash.h crypto_ahash_reqsize(tfm), gfp); tfm 585 include/crypto/hash.h ahash_request_set_tfm(req, tfm); tfm 698 include/crypto/hash.h static inline struct crypto_tfm *crypto_shash_tfm(struct crypto_shash *tfm) tfm 700 include/crypto/hash.h return &tfm->base; tfm 707 include/crypto/hash.h static inline void crypto_free_shash(struct crypto_shash *tfm) tfm 709 include/crypto/hash.h crypto_destroy_tfm(tfm, crypto_shash_tfm(tfm)); tfm 712 include/crypto/hash.h static inline const char *crypto_shash_alg_name(struct crypto_shash *tfm) tfm 714 include/crypto/hash.h return crypto_tfm_alg_name(crypto_shash_tfm(tfm)); tfm 717 include/crypto/hash.h static inline const char *crypto_shash_driver_name(struct crypto_shash *tfm) tfm 719 include/crypto/hash.h return crypto_tfm_alg_driver_name(crypto_shash_tfm(tfm)); tfm 723 include/crypto/hash.h struct crypto_shash *tfm) tfm 725 include/crypto/hash.h return crypto_tfm_alg_alignmask(crypto_shash_tfm(tfm)); tfm 737 include/crypto/hash.h static inline unsigned int crypto_shash_blocksize(struct crypto_shash *tfm) tfm 739 include/crypto/hash.h return crypto_tfm_alg_blocksize(crypto_shash_tfm(tfm)); tfm 747 include/crypto/hash.h static inline struct shash_alg *crypto_shash_alg(struct crypto_shash *tfm) tfm 749 include/crypto/hash.h return __crypto_shash_alg(crypto_shash_tfm(tfm)->__crt_alg); tfm 761 include/crypto/hash.h static inline unsigned int crypto_shash_digestsize(struct crypto_shash *tfm) tfm 763 include/crypto/hash.h return crypto_shash_alg(tfm)->digestsize; tfm 766 include/crypto/hash.h static inline unsigned int crypto_shash_statesize(struct crypto_shash *tfm) tfm 768 include/crypto/hash.h return crypto_shash_alg(tfm)->statesize; tfm 771 include/crypto/hash.h static inline u32 crypto_shash_get_flags(struct crypto_shash *tfm) tfm 773 include/crypto/hash.h return crypto_tfm_get_flags(crypto_shash_tfm(tfm)); tfm 776 include/crypto/hash.h static inline void crypto_shash_set_flags(struct crypto_shash *tfm, u32 flags) tfm 778 include/crypto/hash.h crypto_tfm_set_flags(crypto_shash_tfm(tfm), flags); tfm 781 include/crypto/hash.h static inline void crypto_shash_clear_flags(struct crypto_shash *tfm, u32 flags) tfm 783 include/crypto/hash.h crypto_tfm_clear_flags(crypto_shash_tfm(tfm), flags); tfm 801 include/crypto/hash.h static inline unsigned int crypto_shash_descsize(struct crypto_shash *tfm) tfm 803 include/crypto/hash.h return tfm->descsize; tfm 824 include/crypto/hash.h int crypto_shash_setkey(struct crypto_shash *tfm, const u8 *key, tfm 859 include/crypto/hash.h return crypto_shash_alg(desc->tfm)->export(desc, out); tfm 876 include/crypto/hash.h struct crypto_shash *tfm = desc->tfm; tfm 878 include/crypto/hash.h if (crypto_shash_get_flags(tfm) & CRYPTO_TFM_NEED_KEY) tfm 881 include/crypto/hash.h return crypto_shash_alg(tfm)->import(desc, in); tfm 898 include/crypto/hash.h struct crypto_shash *tfm = desc->tfm; tfm 900 include/crypto/hash.h if (crypto_shash_get_flags(tfm) & CRYPTO_TFM_NEED_KEY) tfm 903 include/crypto/hash.h return crypto_shash_alg(tfm)->init(desc); tfm 958 include/crypto/hash.h sizeof(*desc) + crypto_shash_descsize(desc->tfm)); tfm 21 include/crypto/internal/acompress.h static inline void *acomp_tfm_ctx(struct crypto_acomp *tfm) tfm 23 include/crypto/internal/acompress.h return tfm->base.__crt_ctx; tfm 32 include/crypto/internal/acompress.h static inline const char *acomp_alg_name(struct crypto_acomp *tfm) tfm 34 include/crypto/internal/acompress.h return crypto_acomp_tfm(tfm)->__crt_alg->cra_name; tfm 37 include/crypto/internal/acompress.h static inline struct acomp_req *__acomp_request_alloc(struct crypto_acomp *tfm) tfm 41 include/crypto/internal/acompress.h req = kzalloc(sizeof(*req) + crypto_acomp_reqsize(tfm), GFP_KERNEL); tfm 43 include/crypto/internal/acompress.h acomp_request_set_tfm(req, tfm); tfm 37 include/crypto/internal/aead.h static inline void *crypto_aead_ctx(struct crypto_aead *tfm) tfm 39 include/crypto/internal/aead.h return crypto_tfm_ctx(&tfm->base); tfm 173 include/crypto/internal/aead.h static inline unsigned int crypto_aead_chunksize(struct crypto_aead *tfm) tfm 175 include/crypto/internal/aead.h return crypto_aead_alg_chunksize(crypto_aead_alg(tfm)); tfm 42 include/crypto/internal/akcipher.h static inline void *akcipher_tfm_ctx(struct crypto_akcipher *tfm) tfm 44 include/crypto/internal/akcipher.h return tfm->base.__crt_ctx; tfm 53 include/crypto/internal/akcipher.h static inline const char *akcipher_alg_name(struct crypto_akcipher *tfm) tfm 55 include/crypto/internal/akcipher.h return crypto_akcipher_tfm(tfm)->__crt_alg->cra_name; tfm 26 include/crypto/internal/des.h static inline int crypto_des_verify_key(struct crypto_tfm *tfm, const u8 *key) tfm 33 include/crypto/internal/des.h if (crypto_tfm_get_flags(tfm) & CRYPTO_TFM_REQ_FORBID_WEAK_KEYS) tfm 40 include/crypto/internal/des.h crypto_tfm_set_flags(tfm, CRYPTO_TFM_RES_WEAK_KEY); tfm 95 include/crypto/internal/des.h static inline int crypto_des3_ede_verify_key(struct crypto_tfm *tfm, tfm 101 include/crypto/internal/des.h crypto_tfm_get_flags(tfm) & tfm 104 include/crypto/internal/des.h crypto_tfm_set_flags(tfm, CRYPTO_TFM_RES_WEAK_KEY); tfm 108 include/crypto/internal/des.h static inline int verify_skcipher_des_key(struct crypto_skcipher *tfm, tfm 111 include/crypto/internal/des.h return crypto_des_verify_key(crypto_skcipher_tfm(tfm), key); tfm 114 include/crypto/internal/des.h static inline int verify_skcipher_des3_key(struct crypto_skcipher *tfm, tfm 117 include/crypto/internal/des.h return crypto_des3_ede_verify_key(crypto_skcipher_tfm(tfm), key); tfm 120 include/crypto/internal/des.h static inline int verify_ablkcipher_des_key(struct crypto_ablkcipher *tfm, tfm 123 include/crypto/internal/des.h return crypto_des_verify_key(crypto_ablkcipher_tfm(tfm), key); tfm 126 include/crypto/internal/des.h static inline int verify_ablkcipher_des3_key(struct crypto_ablkcipher *tfm, tfm 129 include/crypto/internal/des.h return crypto_des3_ede_verify_key(crypto_ablkcipher_tfm(tfm), key); tfm 132 include/crypto/internal/des.h static inline int verify_aead_des_key(struct crypto_aead *tfm, const u8 *key, tfm 136 include/crypto/internal/des.h crypto_aead_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 139 include/crypto/internal/des.h return crypto_des_verify_key(crypto_aead_tfm(tfm), key); tfm 142 include/crypto/internal/des.h static inline int verify_aead_des3_key(struct crypto_aead *tfm, const u8 *key, tfm 146 include/crypto/internal/des.h crypto_aead_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 149 include/crypto/internal/des.h return crypto_des3_ede_verify_key(crypto_aead_tfm(tfm), key); tfm 25 include/crypto/internal/geniv.h int aead_init_geniv(struct crypto_aead *tfm); tfm 26 include/crypto/internal/geniv.h void aead_exit_geniv(struct crypto_aead *tfm); tfm 80 include/crypto/internal/hash.h int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, tfm 124 include/crypto/internal/hash.h int crypto_init_shash_ops_async(struct crypto_tfm *tfm); tfm 126 include/crypto/internal/hash.h static inline void *crypto_ahash_ctx(struct crypto_ahash *tfm) tfm 128 include/crypto/internal/hash.h return crypto_tfm_ctx(crypto_ahash_tfm(tfm)); tfm 137 include/crypto/internal/hash.h static inline void crypto_ahash_set_reqsize(struct crypto_ahash *tfm, tfm 140 include/crypto/internal/hash.h tfm->reqsize = reqsize; tfm 199 include/crypto/internal/hash.h static inline void *crypto_shash_ctx(struct crypto_shash *tfm) tfm 201 include/crypto/internal/hash.h return crypto_tfm_ctx(&tfm->base); tfm 235 include/crypto/internal/hash.h static inline void *crypto_shash_ctx_aligned(struct crypto_shash *tfm) tfm 237 include/crypto/internal/hash.h return crypto_tfm_ctx_aligned(&tfm->base); tfm 240 include/crypto/internal/hash.h static inline struct crypto_shash *__crypto_shash_cast(struct crypto_tfm *tfm) tfm 242 include/crypto/internal/hash.h return container_of(tfm, struct crypto_shash, base); tfm 21 include/crypto/internal/kpp.h static inline void *kpp_tfm_ctx(struct crypto_kpp *tfm) tfm 23 include/crypto/internal/kpp.h return tfm->base.__crt_ctx; tfm 31 include/crypto/internal/kpp.h static inline const char *kpp_alg_name(struct crypto_kpp *tfm) tfm 33 include/crypto/internal/kpp.h return crypto_kpp_tfm(tfm)->__crt_alg->cra_name; tfm 29 include/crypto/internal/rng.h static inline void *crypto_rng_ctx(struct crypto_rng *tfm) tfm 31 include/crypto/internal/rng.h return crypto_tfm_ctx(&tfm->base); tfm 34 include/crypto/internal/rng.h static inline void crypto_rng_set_entropy(struct crypto_rng *tfm, tfm 37 include/crypto/internal/rng.h crypto_rng_alg(tfm)->set_ent(tfm, data, len); tfm 29 include/crypto/internal/scompress.h void *(*alloc_ctx)(struct crypto_scomp *tfm); tfm 30 include/crypto/internal/scompress.h void (*free_ctx)(struct crypto_scomp *tfm, void *ctx); tfm 31 include/crypto/internal/scompress.h int (*compress)(struct crypto_scomp *tfm, const u8 *src, tfm 34 include/crypto/internal/scompress.h int (*decompress)(struct crypto_scomp *tfm, const u8 *src, tfm 45 include/crypto/internal/scompress.h static inline struct crypto_scomp *__crypto_scomp_tfm(struct crypto_tfm *tfm) tfm 47 include/crypto/internal/scompress.h return container_of(tfm, struct crypto_scomp, base); tfm 50 include/crypto/internal/scompress.h static inline struct crypto_tfm *crypto_scomp_tfm(struct crypto_scomp *tfm) tfm 52 include/crypto/internal/scompress.h return &tfm->base; tfm 55 include/crypto/internal/scompress.h static inline void crypto_free_scomp(struct crypto_scomp *tfm) tfm 57 include/crypto/internal/scompress.h crypto_destroy_tfm(tfm, crypto_scomp_tfm(tfm)); tfm 60 include/crypto/internal/scompress.h static inline struct scomp_alg *crypto_scomp_alg(struct crypto_scomp *tfm) tfm 62 include/crypto/internal/scompress.h return __crypto_scomp_alg(crypto_scomp_tfm(tfm)->__crt_alg); tfm 65 include/crypto/internal/scompress.h static inline void *crypto_scomp_alloc_ctx(struct crypto_scomp *tfm) tfm 67 include/crypto/internal/scompress.h return crypto_scomp_alg(tfm)->alloc_ctx(tfm); tfm 70 include/crypto/internal/scompress.h static inline void crypto_scomp_free_ctx(struct crypto_scomp *tfm, tfm 73 include/crypto/internal/scompress.h return crypto_scomp_alg(tfm)->free_ctx(tfm, ctx); tfm 76 include/crypto/internal/scompress.h static inline int crypto_scomp_compress(struct crypto_scomp *tfm, tfm 80 include/crypto/internal/scompress.h return crypto_scomp_alg(tfm)->compress(tfm, src, slen, dst, dlen, ctx); tfm 83 include/crypto/internal/scompress.h static inline int crypto_scomp_decompress(struct crypto_scomp *tfm, tfm 88 include/crypto/internal/scompress.h return crypto_scomp_alg(tfm)->decompress(tfm, src, slen, dst, dlen, tfm 92 include/crypto/internal/scompress.h int crypto_init_scomp_ops_async(struct crypto_tfm *tfm); tfm 167 include/crypto/internal/skcipher.h static inline void *crypto_skcipher_ctx(struct crypto_skcipher *tfm) tfm 169 include/crypto/internal/skcipher.h return crypto_tfm_ctx(&tfm->base); tfm 233 include/crypto/internal/skcipher.h struct crypto_skcipher *tfm) tfm 235 include/crypto/internal/skcipher.h return crypto_skcipher_alg_walksize(crypto_skcipher_alg(tfm)); tfm 243 include/crypto/internal/skcipher.h skcipher_cipher_simple(struct crypto_skcipher *tfm) tfm 245 include/crypto/internal/skcipher.h struct skcipher_ctx_simple *ctx = crypto_skcipher_ctx(tfm); tfm 72 include/crypto/kpp.h int (*set_secret)(struct crypto_kpp *tfm, const void *buffer, tfm 77 include/crypto/kpp.h unsigned int (*max_size)(struct crypto_kpp *tfm); tfm 79 include/crypto/kpp.h int (*init)(struct crypto_kpp *tfm); tfm 80 include/crypto/kpp.h void (*exit)(struct crypto_kpp *tfm); tfm 107 include/crypto/kpp.h static inline struct crypto_tfm *crypto_kpp_tfm(struct crypto_kpp *tfm) tfm 109 include/crypto/kpp.h return &tfm->base; tfm 117 include/crypto/kpp.h static inline struct crypto_kpp *__crypto_kpp_tfm(struct crypto_tfm *tfm) tfm 119 include/crypto/kpp.h return container_of(tfm, struct crypto_kpp, base); tfm 122 include/crypto/kpp.h static inline struct kpp_alg *crypto_kpp_alg(struct crypto_kpp *tfm) tfm 124 include/crypto/kpp.h return __crypto_kpp_alg(crypto_kpp_tfm(tfm)->__crt_alg); tfm 127 include/crypto/kpp.h static inline unsigned int crypto_kpp_reqsize(struct crypto_kpp *tfm) tfm 129 include/crypto/kpp.h return crypto_kpp_alg(tfm)->reqsize; tfm 133 include/crypto/kpp.h struct crypto_kpp *tfm) tfm 135 include/crypto/kpp.h req->base.tfm = crypto_kpp_tfm(tfm); tfm 140 include/crypto/kpp.h return __crypto_kpp_tfm(req->base.tfm); tfm 143 include/crypto/kpp.h static inline u32 crypto_kpp_get_flags(struct crypto_kpp *tfm) tfm 145 include/crypto/kpp.h return crypto_tfm_get_flags(crypto_kpp_tfm(tfm)); tfm 148 include/crypto/kpp.h static inline void crypto_kpp_set_flags(struct crypto_kpp *tfm, u32 flags) tfm 150 include/crypto/kpp.h crypto_tfm_set_flags(crypto_kpp_tfm(tfm), flags); tfm 158 include/crypto/kpp.h static inline void crypto_free_kpp(struct crypto_kpp *tfm) tfm 160 include/crypto/kpp.h crypto_destroy_tfm(tfm, crypto_kpp_tfm(tfm)); tfm 171 include/crypto/kpp.h static inline struct kpp_request *kpp_request_alloc(struct crypto_kpp *tfm, tfm 176 include/crypto/kpp.h req = kmalloc(sizeof(*req) + crypto_kpp_reqsize(tfm), gfp); tfm 178 include/crypto/kpp.h kpp_request_set_tfm(req, tfm); tfm 281 include/crypto/kpp.h static inline int crypto_kpp_set_secret(struct crypto_kpp *tfm, tfm 284 include/crypto/kpp.h struct kpp_alg *alg = crypto_kpp_alg(tfm); tfm 285 include/crypto/kpp.h struct crypto_alg *calg = tfm->base.__crt_alg; tfm 289 include/crypto/kpp.h ret = alg->set_secret(tfm, buffer, len); tfm 309 include/crypto/kpp.h struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); tfm 310 include/crypto/kpp.h struct kpp_alg *alg = crypto_kpp_alg(tfm); tfm 311 include/crypto/kpp.h struct crypto_alg *calg = tfm->base.__crt_alg; tfm 332 include/crypto/kpp.h struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); tfm 333 include/crypto/kpp.h struct kpp_alg *alg = crypto_kpp_alg(tfm); tfm 334 include/crypto/kpp.h struct crypto_alg *calg = tfm->base.__crt_alg; tfm 353 include/crypto/kpp.h static inline unsigned int crypto_kpp_maxsize(struct crypto_kpp *tfm) tfm 355 include/crypto/kpp.h struct kpp_alg *alg = crypto_kpp_alg(tfm); tfm 357 include/crypto/kpp.h return alg->max_size(tfm); tfm 61 include/crypto/nhpoly1305.h int crypto_nhpoly1305_setkey(struct crypto_shash *tfm, tfm 42 include/crypto/rng.h int (*generate)(struct crypto_rng *tfm, tfm 45 include/crypto/rng.h int (*seed)(struct crypto_rng *tfm, const u8 *seed, unsigned int slen); tfm 46 include/crypto/rng.h void (*set_ent)(struct crypto_rng *tfm, const u8 *data, tfm 92 include/crypto/rng.h static inline struct crypto_tfm *crypto_rng_tfm(struct crypto_rng *tfm) tfm 94 include/crypto/rng.h return &tfm->base; tfm 105 include/crypto/rng.h static inline struct rng_alg *crypto_rng_alg(struct crypto_rng *tfm) tfm 107 include/crypto/rng.h return container_of(crypto_rng_tfm(tfm)->__crt_alg, tfm 115 include/crypto/rng.h static inline void crypto_free_rng(struct crypto_rng *tfm) tfm 117 include/crypto/rng.h crypto_destroy_tfm(tfm, crypto_rng_tfm(tfm)); tfm 134 include/crypto/rng.h static inline int crypto_rng_generate(struct crypto_rng *tfm, tfm 138 include/crypto/rng.h struct crypto_alg *alg = tfm->base.__crt_alg; tfm 142 include/crypto/rng.h ret = crypto_rng_alg(tfm)->generate(tfm, src, slen, dst, dlen); tfm 158 include/crypto/rng.h static inline int crypto_rng_get_bytes(struct crypto_rng *tfm, tfm 161 include/crypto/rng.h return crypto_rng_generate(tfm, NULL, 0, rdata, dlen); tfm 181 include/crypto/rng.h int crypto_rng_reset(struct crypto_rng *tfm, const u8 *seed, tfm 196 include/crypto/rng.h static inline int crypto_rng_seedsize(struct crypto_rng *tfm) tfm 198 include/crypto/rng.h return crypto_rng_alg(tfm)->seedsize; tfm 23 include/crypto/serpent.h int serpent_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen); tfm 98 include/crypto/sha256_base.h unsigned int digest_size = crypto_shash_digestsize(desc->tfm); tfm 121 include/crypto/sha512_base.h unsigned int digest_size = crypto_shash_digestsize(desc->tfm); tfm 38 include/crypto/skcipher.h int (*setkey)(struct crypto_skcipher *tfm, const u8 *key, tfm 112 include/crypto/skcipher.h int (*setkey)(struct crypto_skcipher *tfm, const u8 *key, tfm 116 include/crypto/skcipher.h int (*init)(struct crypto_skcipher *tfm); tfm 117 include/crypto/skcipher.h void (*exit)(struct crypto_skcipher *tfm); tfm 133 include/crypto/skcipher.h #define SYNC_SKCIPHER_REQUEST_ON_STACK(name, tfm) \ tfm 137 include/crypto/skcipher.h (typeof(tfm))1))) \ tfm 172 include/crypto/skcipher.h struct crypto_tfm *tfm) tfm 174 include/crypto/skcipher.h return container_of(tfm, struct crypto_skcipher, base); tfm 198 include/crypto/skcipher.h struct crypto_skcipher *tfm) tfm 200 include/crypto/skcipher.h return &tfm->base; tfm 207 include/crypto/skcipher.h static inline void crypto_free_skcipher(struct crypto_skcipher *tfm) tfm 209 include/crypto/skcipher.h crypto_destroy_tfm(tfm, crypto_skcipher_tfm(tfm)); tfm 212 include/crypto/skcipher.h static inline void crypto_free_sync_skcipher(struct crypto_sync_skcipher *tfm) tfm 214 include/crypto/skcipher.h crypto_free_skcipher(&tfm->base); tfm 247 include/crypto/skcipher.h struct crypto_skcipher *tfm) tfm 249 include/crypto/skcipher.h return crypto_tfm_alg_driver_name(crypto_skcipher_tfm(tfm)); tfm 253 include/crypto/skcipher.h struct crypto_skcipher *tfm) tfm 255 include/crypto/skcipher.h return container_of(crypto_skcipher_tfm(tfm)->__crt_alg, tfm 280 include/crypto/skcipher.h static inline unsigned int crypto_skcipher_ivsize(struct crypto_skcipher *tfm) tfm 282 include/crypto/skcipher.h return tfm->ivsize; tfm 286 include/crypto/skcipher.h struct crypto_sync_skcipher *tfm) tfm 288 include/crypto/skcipher.h return crypto_skcipher_ivsize(&tfm->base); tfm 302 include/crypto/skcipher.h struct crypto_skcipher *tfm) tfm 304 include/crypto/skcipher.h return crypto_tfm_alg_blocksize(crypto_skcipher_tfm(tfm)); tfm 332 include/crypto/skcipher.h struct crypto_skcipher *tfm) tfm 334 include/crypto/skcipher.h return crypto_skcipher_alg_chunksize(crypto_skcipher_alg(tfm)); tfm 338 include/crypto/skcipher.h struct crypto_sync_skcipher *tfm) tfm 340 include/crypto/skcipher.h return crypto_skcipher_blocksize(&tfm->base); tfm 344 include/crypto/skcipher.h struct crypto_skcipher *tfm) tfm 346 include/crypto/skcipher.h return crypto_tfm_alg_alignmask(crypto_skcipher_tfm(tfm)); tfm 349 include/crypto/skcipher.h static inline u32 crypto_skcipher_get_flags(struct crypto_skcipher *tfm) tfm 351 include/crypto/skcipher.h return crypto_tfm_get_flags(crypto_skcipher_tfm(tfm)); tfm 354 include/crypto/skcipher.h static inline void crypto_skcipher_set_flags(struct crypto_skcipher *tfm, tfm 357 include/crypto/skcipher.h crypto_tfm_set_flags(crypto_skcipher_tfm(tfm), flags); tfm 360 include/crypto/skcipher.h static inline void crypto_skcipher_clear_flags(struct crypto_skcipher *tfm, tfm 363 include/crypto/skcipher.h crypto_tfm_clear_flags(crypto_skcipher_tfm(tfm), flags); tfm 367 include/crypto/skcipher.h struct crypto_sync_skcipher *tfm) tfm 369 include/crypto/skcipher.h return crypto_skcipher_get_flags(&tfm->base); tfm 373 include/crypto/skcipher.h struct crypto_sync_skcipher *tfm, u32 flags) tfm 375 include/crypto/skcipher.h crypto_skcipher_set_flags(&tfm->base, flags); tfm 379 include/crypto/skcipher.h struct crypto_sync_skcipher *tfm, u32 flags) tfm 381 include/crypto/skcipher.h crypto_skcipher_clear_flags(&tfm->base, flags); tfm 400 include/crypto/skcipher.h static inline int crypto_skcipher_setkey(struct crypto_skcipher *tfm, tfm 403 include/crypto/skcipher.h return tfm->setkey(tfm, key, keylen); tfm 406 include/crypto/skcipher.h static inline int crypto_sync_skcipher_setkey(struct crypto_sync_skcipher *tfm, tfm 409 include/crypto/skcipher.h return crypto_skcipher_setkey(&tfm->base, key, keylen); tfm 413 include/crypto/skcipher.h struct crypto_skcipher *tfm) tfm 415 include/crypto/skcipher.h return tfm->keysize; tfm 430 include/crypto/skcipher.h return __crypto_skcipher_cast(req->base.tfm); tfm 436 include/crypto/skcipher.h struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 438 include/crypto/skcipher.h return container_of(tfm, struct crypto_sync_skcipher, base); tfm 484 include/crypto/skcipher.h static inline unsigned int crypto_skcipher_reqsize(struct crypto_skcipher *tfm) tfm 486 include/crypto/skcipher.h return tfm->reqsize; tfm 498 include/crypto/skcipher.h struct crypto_skcipher *tfm) tfm 500 include/crypto/skcipher.h req->base.tfm = crypto_skcipher_tfm(tfm); tfm 504 include/crypto/skcipher.h struct crypto_sync_skcipher *tfm) tfm 506 include/crypto/skcipher.h skcipher_request_set_tfm(req, &tfm->base); tfm 527 include/crypto/skcipher.h struct crypto_skcipher *tfm, gfp_t gfp) tfm 532 include/crypto/skcipher.h crypto_skcipher_reqsize(tfm), gfp); tfm 535 include/crypto/skcipher.h skcipher_request_set_tfm(req, tfm); tfm 551 include/crypto/skcipher.h struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); tfm 553 include/crypto/skcipher.h memzero_explicit(req, sizeof(*req) + crypto_skcipher_reqsize(tfm)); tfm 23 include/crypto/sm4.h int crypto_sm4_set_key(struct crypto_tfm *tfm, const u8 *in_key, tfm 28 include/crypto/sm4.h void crypto_sm4_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in); tfm 29 include/crypto/sm4.h void crypto_sm4_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in); tfm 23 include/crypto/twofish.h int twofish_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int key_len); tfm 13 include/crypto/xts.h static inline int xts_check_key(struct crypto_tfm *tfm, tfm 16 include/crypto/xts.h u32 *flags = &tfm->crt_flags; tfm 37 include/crypto/xts.h static inline int xts_verify_key(struct crypto_skcipher *tfm, tfm 45 include/crypto/xts.h crypto_skcipher_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 50 include/crypto/xts.h if ((fips_enabled || (crypto_skcipher_get_flags(tfm) & tfm 53 include/crypto/xts.h crypto_skcipher_set_flags(tfm, CRYPTO_TFM_RES_WEAK_KEY); tfm 161 include/linux/crypto.h struct crypto_tfm *tfm; tfm 180 include/linux/crypto.h struct crypto_blkcipher *tfm; tfm 233 include/linux/crypto.h int (*setkey)(struct crypto_ablkcipher *tfm, const u8 *key, tfm 255 include/linux/crypto.h int (*setkey)(struct crypto_tfm *tfm, const u8 *key, tfm 319 include/linux/crypto.h int (*cia_setkey)(struct crypto_tfm *tfm, const u8 *key, tfm 321 include/linux/crypto.h void (*cia_encrypt)(struct crypto_tfm *tfm, u8 *dst, const u8 *src); tfm 322 include/linux/crypto.h void (*cia_decrypt)(struct crypto_tfm *tfm, u8 *dst, const u8 *src); tfm 337 include/linux/crypto.h int (*coa_compress)(struct crypto_tfm *tfm, const u8 *src, tfm 339 include/linux/crypto.h int (*coa_decompress)(struct crypto_tfm *tfm, const u8 *src, tfm 574 include/linux/crypto.h int (*cra_init)(struct crypto_tfm *tfm); tfm 575 include/linux/crypto.h void (*cra_exit)(struct crypto_tfm *tfm); tfm 719 include/linux/crypto.h int (*setkey)(struct crypto_ablkcipher *tfm, const u8 *key, tfm 732 include/linux/crypto.h int (*setkey)(struct crypto_tfm *tfm, const u8 *key, tfm 741 include/linux/crypto.h int (*cit_setkey)(struct crypto_tfm *tfm, tfm 743 include/linux/crypto.h void (*cit_encrypt_one)(struct crypto_tfm *tfm, u8 *dst, const u8 *src); tfm 744 include/linux/crypto.h void (*cit_decrypt_one)(struct crypto_tfm *tfm, u8 *dst, const u8 *src); tfm 748 include/linux/crypto.h int (*cot_compress)(struct crypto_tfm *tfm, tfm 751 include/linux/crypto.h int (*cot_decompress)(struct crypto_tfm *tfm, tfm 772 include/linux/crypto.h void (*exit)(struct crypto_tfm *tfm); tfm 826 include/linux/crypto.h void crypto_destroy_tfm(void *mem, struct crypto_tfm *tfm); tfm 828 include/linux/crypto.h static inline void crypto_free_tfm(struct crypto_tfm *tfm) tfm 830 include/linux/crypto.h return crypto_destroy_tfm(tfm, tfm); tfm 838 include/linux/crypto.h static inline const char *crypto_tfm_alg_name(struct crypto_tfm *tfm) tfm 840 include/linux/crypto.h return tfm->__crt_alg->cra_name; tfm 843 include/linux/crypto.h static inline const char *crypto_tfm_alg_driver_name(struct crypto_tfm *tfm) tfm 845 include/linux/crypto.h return tfm->__crt_alg->cra_driver_name; tfm 848 include/linux/crypto.h static inline int crypto_tfm_alg_priority(struct crypto_tfm *tfm) tfm 850 include/linux/crypto.h return tfm->__crt_alg->cra_priority; tfm 853 include/linux/crypto.h static inline u32 crypto_tfm_alg_type(struct crypto_tfm *tfm) tfm 855 include/linux/crypto.h return tfm->__crt_alg->cra_flags & CRYPTO_ALG_TYPE_MASK; tfm 858 include/linux/crypto.h static inline unsigned int crypto_tfm_alg_blocksize(struct crypto_tfm *tfm) tfm 860 include/linux/crypto.h return tfm->__crt_alg->cra_blocksize; tfm 863 include/linux/crypto.h static inline unsigned int crypto_tfm_alg_alignmask(struct crypto_tfm *tfm) tfm 865 include/linux/crypto.h return tfm->__crt_alg->cra_alignmask; tfm 868 include/linux/crypto.h static inline u32 crypto_tfm_get_flags(struct crypto_tfm *tfm) tfm 870 include/linux/crypto.h return tfm->crt_flags; tfm 873 include/linux/crypto.h static inline void crypto_tfm_set_flags(struct crypto_tfm *tfm, u32 flags) tfm 875 include/linux/crypto.h tfm->crt_flags |= flags; tfm 878 include/linux/crypto.h static inline void crypto_tfm_clear_flags(struct crypto_tfm *tfm, u32 flags) tfm 880 include/linux/crypto.h tfm->crt_flags &= ~flags; tfm 883 include/linux/crypto.h static inline void *crypto_tfm_ctx(struct crypto_tfm *tfm) tfm 885 include/linux/crypto.h return tfm->__crt_ctx; tfm 890 include/linux/crypto.h struct crypto_tfm *tfm; tfm 891 include/linux/crypto.h return __alignof__(tfm->__crt_ctx); tfm 898 include/linux/crypto.h struct crypto_tfm *tfm) tfm 900 include/linux/crypto.h return (struct crypto_ablkcipher *)tfm; tfm 948 include/linux/crypto.h struct crypto_ablkcipher *tfm) tfm 950 include/linux/crypto.h return &tfm->base; tfm 957 include/linux/crypto.h static inline void crypto_free_ablkcipher(struct crypto_ablkcipher *tfm) tfm 959 include/linux/crypto.h crypto_free_tfm(crypto_ablkcipher_tfm(tfm)); tfm 980 include/linux/crypto.h struct crypto_ablkcipher *tfm) tfm 982 include/linux/crypto.h return &crypto_ablkcipher_tfm(tfm)->crt_ablkcipher; tfm 995 include/linux/crypto.h struct crypto_ablkcipher *tfm) tfm 997 include/linux/crypto.h return crypto_ablkcipher_crt(tfm)->ivsize; tfm 1011 include/linux/crypto.h struct crypto_ablkcipher *tfm) tfm 1013 include/linux/crypto.h return crypto_tfm_alg_blocksize(crypto_ablkcipher_tfm(tfm)); tfm 1017 include/linux/crypto.h struct crypto_ablkcipher *tfm) tfm 1019 include/linux/crypto.h return crypto_tfm_alg_alignmask(crypto_ablkcipher_tfm(tfm)); tfm 1022 include/linux/crypto.h static inline u32 crypto_ablkcipher_get_flags(struct crypto_ablkcipher *tfm) tfm 1024 include/linux/crypto.h return crypto_tfm_get_flags(crypto_ablkcipher_tfm(tfm)); tfm 1027 include/linux/crypto.h static inline void crypto_ablkcipher_set_flags(struct crypto_ablkcipher *tfm, tfm 1030 include/linux/crypto.h crypto_tfm_set_flags(crypto_ablkcipher_tfm(tfm), flags); tfm 1033 include/linux/crypto.h static inline void crypto_ablkcipher_clear_flags(struct crypto_ablkcipher *tfm, tfm 1036 include/linux/crypto.h crypto_tfm_clear_flags(crypto_ablkcipher_tfm(tfm), flags); tfm 1055 include/linux/crypto.h static inline int crypto_ablkcipher_setkey(struct crypto_ablkcipher *tfm, tfm 1058 include/linux/crypto.h struct ablkcipher_tfm *crt = crypto_ablkcipher_crt(tfm); tfm 1075 include/linux/crypto.h return __crypto_ablkcipher_cast(req->base.tfm); tfm 1146 include/linux/crypto.h struct crypto_ablkcipher *tfm) tfm 1148 include/linux/crypto.h return crypto_ablkcipher_crt(tfm)->reqsize; tfm 1160 include/linux/crypto.h struct ablkcipher_request *req, struct crypto_ablkcipher *tfm) tfm 1162 include/linux/crypto.h req->base.tfm = crypto_ablkcipher_tfm(crypto_ablkcipher_crt(tfm)->base); tfm 1183 include/linux/crypto.h struct crypto_ablkcipher *tfm, gfp_t gfp) tfm 1188 include/linux/crypto.h crypto_ablkcipher_reqsize(tfm), gfp); tfm 1191 include/linux/crypto.h ablkcipher_request_set_tfm(req, tfm); tfm 1297 include/linux/crypto.h struct crypto_tfm *tfm) tfm 1299 include/linux/crypto.h return (struct crypto_blkcipher *)tfm; tfm 1303 include/linux/crypto.h struct crypto_tfm *tfm) tfm 1305 include/linux/crypto.h BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_BLKCIPHER); tfm 1306 include/linux/crypto.h return __crypto_blkcipher_cast(tfm); tfm 1334 include/linux/crypto.h struct crypto_blkcipher *tfm) tfm 1336 include/linux/crypto.h return &tfm->base; tfm 1343 include/linux/crypto.h static inline void crypto_free_blkcipher(struct crypto_blkcipher *tfm) tfm 1345 include/linux/crypto.h crypto_free_tfm(crypto_blkcipher_tfm(tfm)); tfm 1373 include/linux/crypto.h static inline const char *crypto_blkcipher_name(struct crypto_blkcipher *tfm) tfm 1375 include/linux/crypto.h return crypto_tfm_alg_name(crypto_blkcipher_tfm(tfm)); tfm 1379 include/linux/crypto.h struct crypto_blkcipher *tfm) tfm 1381 include/linux/crypto.h return &crypto_blkcipher_tfm(tfm)->crt_blkcipher; tfm 1385 include/linux/crypto.h struct crypto_blkcipher *tfm) tfm 1387 include/linux/crypto.h return &crypto_blkcipher_tfm(tfm)->__crt_alg->cra_blkcipher; tfm 1399 include/linux/crypto.h static inline unsigned int crypto_blkcipher_ivsize(struct crypto_blkcipher *tfm) tfm 1401 include/linux/crypto.h return crypto_blkcipher_alg(tfm)->ivsize; tfm 1415 include/linux/crypto.h struct crypto_blkcipher *tfm) tfm 1417 include/linux/crypto.h return crypto_tfm_alg_blocksize(crypto_blkcipher_tfm(tfm)); tfm 1421 include/linux/crypto.h struct crypto_blkcipher *tfm) tfm 1423 include/linux/crypto.h return crypto_tfm_alg_alignmask(crypto_blkcipher_tfm(tfm)); tfm 1426 include/linux/crypto.h static inline u32 crypto_blkcipher_get_flags(struct crypto_blkcipher *tfm) tfm 1428 include/linux/crypto.h return crypto_tfm_get_flags(crypto_blkcipher_tfm(tfm)); tfm 1431 include/linux/crypto.h static inline void crypto_blkcipher_set_flags(struct crypto_blkcipher *tfm, tfm 1434 include/linux/crypto.h crypto_tfm_set_flags(crypto_blkcipher_tfm(tfm), flags); tfm 1437 include/linux/crypto.h static inline void crypto_blkcipher_clear_flags(struct crypto_blkcipher *tfm, tfm 1440 include/linux/crypto.h crypto_tfm_clear_flags(crypto_blkcipher_tfm(tfm), flags); tfm 1459 include/linux/crypto.h static inline int crypto_blkcipher_setkey(struct crypto_blkcipher *tfm, tfm 1462 include/linux/crypto.h return crypto_blkcipher_crt(tfm)->setkey(crypto_blkcipher_tfm(tfm), tfm 1489 include/linux/crypto.h desc->info = crypto_blkcipher_crt(desc->tfm)->iv; tfm 1490 include/linux/crypto.h return crypto_blkcipher_crt(desc->tfm)->encrypt(desc, dst, src, nbytes); tfm 1517 include/linux/crypto.h return crypto_blkcipher_crt(desc->tfm)->encrypt(desc, dst, src, nbytes); tfm 1542 include/linux/crypto.h desc->info = crypto_blkcipher_crt(desc->tfm)->iv; tfm 1543 include/linux/crypto.h return crypto_blkcipher_crt(desc->tfm)->decrypt(desc, dst, src, nbytes); tfm 1567 include/linux/crypto.h return crypto_blkcipher_crt(desc->tfm)->decrypt(desc, dst, src, nbytes); tfm 1579 include/linux/crypto.h static inline void crypto_blkcipher_set_iv(struct crypto_blkcipher *tfm, tfm 1582 include/linux/crypto.h memcpy(crypto_blkcipher_crt(tfm)->iv, src, len); tfm 1595 include/linux/crypto.h static inline void crypto_blkcipher_get_iv(struct crypto_blkcipher *tfm, tfm 1598 include/linux/crypto.h memcpy(dst, crypto_blkcipher_crt(tfm)->iv, len); tfm 1618 include/linux/crypto.h static inline struct crypto_cipher *__crypto_cipher_cast(struct crypto_tfm *tfm) tfm 1620 include/linux/crypto.h return (struct crypto_cipher *)tfm; tfm 1623 include/linux/crypto.h static inline struct crypto_cipher *crypto_cipher_cast(struct crypto_tfm *tfm) tfm 1625 include/linux/crypto.h BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_CIPHER); tfm 1626 include/linux/crypto.h return __crypto_cipher_cast(tfm); tfm 1653 include/linux/crypto.h static inline struct crypto_tfm *crypto_cipher_tfm(struct crypto_cipher *tfm) tfm 1655 include/linux/crypto.h return &tfm->base; tfm 1662 include/linux/crypto.h static inline void crypto_free_cipher(struct crypto_cipher *tfm) tfm 1664 include/linux/crypto.h crypto_free_tfm(crypto_cipher_tfm(tfm)); tfm 1686 include/linux/crypto.h static inline struct cipher_tfm *crypto_cipher_crt(struct crypto_cipher *tfm) tfm 1688 include/linux/crypto.h return &crypto_cipher_tfm(tfm)->crt_cipher; tfm 1701 include/linux/crypto.h static inline unsigned int crypto_cipher_blocksize(struct crypto_cipher *tfm) tfm 1703 include/linux/crypto.h return crypto_tfm_alg_blocksize(crypto_cipher_tfm(tfm)); tfm 1706 include/linux/crypto.h static inline unsigned int crypto_cipher_alignmask(struct crypto_cipher *tfm) tfm 1708 include/linux/crypto.h return crypto_tfm_alg_alignmask(crypto_cipher_tfm(tfm)); tfm 1711 include/linux/crypto.h static inline u32 crypto_cipher_get_flags(struct crypto_cipher *tfm) tfm 1713 include/linux/crypto.h return crypto_tfm_get_flags(crypto_cipher_tfm(tfm)); tfm 1716 include/linux/crypto.h static inline void crypto_cipher_set_flags(struct crypto_cipher *tfm, tfm 1719 include/linux/crypto.h crypto_tfm_set_flags(crypto_cipher_tfm(tfm), flags); tfm 1722 include/linux/crypto.h static inline void crypto_cipher_clear_flags(struct crypto_cipher *tfm, tfm 1725 include/linux/crypto.h crypto_tfm_clear_flags(crypto_cipher_tfm(tfm), flags); tfm 1744 include/linux/crypto.h static inline int crypto_cipher_setkey(struct crypto_cipher *tfm, tfm 1747 include/linux/crypto.h return crypto_cipher_crt(tfm)->cit_setkey(crypto_cipher_tfm(tfm), tfm 1760 include/linux/crypto.h static inline void crypto_cipher_encrypt_one(struct crypto_cipher *tfm, tfm 1763 include/linux/crypto.h crypto_cipher_crt(tfm)->cit_encrypt_one(crypto_cipher_tfm(tfm), tfm 1776 include/linux/crypto.h static inline void crypto_cipher_decrypt_one(struct crypto_cipher *tfm, tfm 1779 include/linux/crypto.h crypto_cipher_crt(tfm)->cit_decrypt_one(crypto_cipher_tfm(tfm), tfm 1783 include/linux/crypto.h static inline struct crypto_comp *__crypto_comp_cast(struct crypto_tfm *tfm) tfm 1785 include/linux/crypto.h return (struct crypto_comp *)tfm; tfm 1788 include/linux/crypto.h static inline struct crypto_comp *crypto_comp_cast(struct crypto_tfm *tfm) tfm 1790 include/linux/crypto.h BUG_ON((crypto_tfm_alg_type(tfm) ^ CRYPTO_ALG_TYPE_COMPRESS) & tfm 1792 include/linux/crypto.h return __crypto_comp_cast(tfm); tfm 1805 include/linux/crypto.h static inline struct crypto_tfm *crypto_comp_tfm(struct crypto_comp *tfm) tfm 1807 include/linux/crypto.h return &tfm->base; tfm 1810 include/linux/crypto.h static inline void crypto_free_comp(struct crypto_comp *tfm) tfm 1812 include/linux/crypto.h crypto_free_tfm(crypto_comp_tfm(tfm)); tfm 1824 include/linux/crypto.h static inline const char *crypto_comp_name(struct crypto_comp *tfm) tfm 1826 include/linux/crypto.h return crypto_tfm_alg_name(crypto_comp_tfm(tfm)); tfm 1829 include/linux/crypto.h static inline struct compress_tfm *crypto_comp_crt(struct crypto_comp *tfm) tfm 1831 include/linux/crypto.h return &crypto_comp_tfm(tfm)->crt_compress; tfm 1834 include/linux/crypto.h static inline int crypto_comp_compress(struct crypto_comp *tfm, tfm 1838 include/linux/crypto.h return crypto_comp_crt(tfm)->cot_compress(crypto_comp_tfm(tfm), tfm 1842 include/linux/crypto.h static inline int crypto_comp_decompress(struct crypto_comp *tfm, tfm 1846 include/linux/crypto.h return crypto_comp_crt(tfm)->cot_decompress(crypto_comp_tfm(tfm), tfm 1626 include/linux/jbd2.h desc.shash.tfm = journal->j_chksum_driver; tfm 74 include/linux/sunrpc/gss_krb5.h u32 (*encrypt) (struct crypto_sync_skcipher *tfm, tfm 77 include/linux/sunrpc/gss_krb5.h u32 (*decrypt) (struct crypto_sync_skcipher *tfm, tfm 271 include/linux/sunrpc/gss_krb5.h gss_encrypt_xdr_buf(struct crypto_sync_skcipher *tfm, struct xdr_buf *outbuf, tfm 275 include/linux/sunrpc/gss_krb5.h gss_decrypt_xdr_buf(struct crypto_sync_skcipher *tfm, struct xdr_buf *inbuf, tfm 708 kernel/kexec_file.c struct crypto_shash *tfm; tfm 723 kernel/kexec_file.c tfm = crypto_alloc_shash("sha256", 0, 0); tfm 724 kernel/kexec_file.c if (IS_ERR(tfm)) { tfm 725 kernel/kexec_file.c ret = PTR_ERR(tfm); tfm 729 kernel/kexec_file.c desc_size = crypto_shash_descsize(tfm) + sizeof(*desc); tfm 741 kernel/kexec_file.c desc->tfm = tfm; tfm 815 kernel/kexec_file.c kfree(tfm); tfm 69 lib/crc-t10dif.c desc.shash.tfm = rcu_dereference(crct10dif_tfm); tfm 239 lib/digsig.c desc->tfm = shash; tfm 36 lib/libcrc32c.c static struct crypto_shash *tfm; tfm 40 lib/libcrc32c.c SHASH_DESC_ON_STACK(shash, tfm); tfm 44 lib/libcrc32c.c shash->tfm = tfm; tfm 59 lib/libcrc32c.c tfm = crypto_alloc_shash("crc32c", 0, 0); tfm 60 lib/libcrc32c.c return PTR_ERR_OR_ZERO(tfm); tfm 65 lib/libcrc32c.c crypto_free_shash(tfm); tfm 70 lib/libcrc32c.c return crypto_shash_driver_name(tfm); tfm 123 mm/zswap.c struct crypto_comp * __percpu *tfm; tfm 401 mm/zswap.c struct crypto_comp *tfm; tfm 403 mm/zswap.c if (WARN_ON(*per_cpu_ptr(pool->tfm, cpu))) tfm 406 mm/zswap.c tfm = crypto_alloc_comp(pool->tfm_name, 0, 0); tfm 407 mm/zswap.c if (IS_ERR_OR_NULL(tfm)) { tfm 409 mm/zswap.c pool->tfm_name, PTR_ERR(tfm)); tfm 412 mm/zswap.c *per_cpu_ptr(pool->tfm, cpu) = tfm; tfm 419 mm/zswap.c struct crypto_comp *tfm; tfm 421 mm/zswap.c tfm = *per_cpu_ptr(pool->tfm, cpu); tfm 422 mm/zswap.c if (!IS_ERR_OR_NULL(tfm)) tfm 423 mm/zswap.c crypto_free_comp(tfm); tfm 424 mm/zswap.c *per_cpu_ptr(pool->tfm, cpu) = NULL; tfm 537 mm/zswap.c pool->tfm = alloc_percpu(struct crypto_comp *); tfm 538 mm/zswap.c if (!pool->tfm) { tfm 560 mm/zswap.c free_percpu(pool->tfm); tfm 612 mm/zswap.c free_percpu(pool->tfm); tfm 848 mm/zswap.c struct crypto_comp *tfm; tfm 891 mm/zswap.c tfm = *get_cpu_ptr(entry->pool->tfm); tfm 892 mm/zswap.c ret = crypto_comp_decompress(tfm, src, entry->length, tfm 894 mm/zswap.c put_cpu_ptr(entry->pool->tfm); tfm 992 mm/zswap.c struct crypto_comp *tfm; tfm 1061 mm/zswap.c tfm = *get_cpu_ptr(entry->pool->tfm); tfm 1063 mm/zswap.c ret = crypto_comp_compress(tfm, src, PAGE_SIZE, dst, &dlen); tfm 1065 mm/zswap.c put_cpu_ptr(entry->pool->tfm); tfm 1134 mm/zswap.c struct crypto_comp *tfm; tfm 1162 mm/zswap.c tfm = *get_cpu_ptr(entry->pool->tfm); tfm 1163 mm/zswap.c ret = crypto_comp_decompress(tfm, src, entry->length, dst, &dlen); tfm 1164 mm/zswap.c put_cpu_ptr(entry->pool->tfm); tfm 130 net/bluetooth/amp.c struct crypto_shash *tfm; tfm 137 net/bluetooth/amp.c tfm = crypto_alloc_shash("hmac(sha256)", 0, 0); tfm 138 net/bluetooth/amp.c if (IS_ERR(tfm)) { tfm 139 net/bluetooth/amp.c BT_DBG("crypto_alloc_ahash failed: err %ld", PTR_ERR(tfm)); tfm 140 net/bluetooth/amp.c return PTR_ERR(tfm); tfm 143 net/bluetooth/amp.c ret = crypto_shash_setkey(tfm, key, ksize); tfm 149 net/bluetooth/amp.c shash = kzalloc(sizeof(*shash) + crypto_shash_descsize(tfm), tfm 156 net/bluetooth/amp.c shash->tfm = tfm; tfm 163 net/bluetooth/amp.c crypto_free_shash(tfm); tfm 60 net/bluetooth/ecdh_helper.c int compute_ecdh_secret(struct crypto_kpp *tfm, const u8 public_key[64], tfm 73 net/bluetooth/ecdh_helper.c req = kpp_request_alloc(tfm, GFP_KERNEL); tfm 122 net/bluetooth/ecdh_helper.c int set_ecdh_privkey(struct crypto_kpp *tfm, const u8 private_key[32]) tfm 151 net/bluetooth/ecdh_helper.c err = crypto_kpp_set_secret(tfm, buf, buf_len); tfm 168 net/bluetooth/ecdh_helper.c int generate_ecdh_public_key(struct crypto_kpp *tfm, u8 public_key[64]) tfm 180 net/bluetooth/ecdh_helper.c req = kpp_request_alloc(tfm, GFP_KERNEL); tfm 221 net/bluetooth/ecdh_helper.c int generate_ecdh_keys(struct crypto_kpp *tfm, u8 public_key[64]) tfm 225 net/bluetooth/ecdh_helper.c err = set_ecdh_privkey(tfm, NULL); tfm 229 net/bluetooth/ecdh_helper.c return generate_ecdh_public_key(tfm, public_key); tfm 26 net/bluetooth/ecdh_helper.h int compute_ecdh_secret(struct crypto_kpp *tfm, const u8 pair_public_key[64], tfm 28 net/bluetooth/ecdh_helper.h int set_ecdh_privkey(struct crypto_kpp *tfm, const u8 *private_key); tfm 29 net/bluetooth/ecdh_helper.h int generate_ecdh_public_key(struct crypto_kpp *tfm, u8 public_key[64]); tfm 30 net/bluetooth/ecdh_helper.h int generate_ecdh_keys(struct crypto_kpp *tfm, u8 public_key[64]); tfm 141 net/bluetooth/selftest.c static int __init test_ecdh_sample(struct crypto_kpp *tfm, const u8 priv_a[32], tfm 155 net/bluetooth/selftest.c ret = set_ecdh_privkey(tfm, priv_a); tfm 159 net/bluetooth/selftest.c ret = compute_ecdh_secret(tfm, pub_b, dhkey_a); tfm 168 net/bluetooth/selftest.c ret = set_ecdh_privkey(tfm, priv_b); tfm 172 net/bluetooth/selftest.c ret = compute_ecdh_secret(tfm, pub_a, dhkey_b); tfm 201 net/bluetooth/selftest.c struct crypto_kpp *tfm; tfm 208 net/bluetooth/selftest.c tfm = crypto_alloc_kpp("ecdh", CRYPTO_ALG_INTERNAL, 0); tfm 209 net/bluetooth/selftest.c if (IS_ERR(tfm)) { tfm 211 net/bluetooth/selftest.c err = PTR_ERR(tfm); tfm 215 net/bluetooth/selftest.c err = test_ecdh_sample(tfm, priv_a_1, priv_b_1, pub_a_1, pub_b_1, tfm 222 net/bluetooth/selftest.c err = test_ecdh_sample(tfm, priv_a_2, priv_b_2, pub_a_2, pub_b_2, tfm 229 net/bluetooth/selftest.c err = test_ecdh_sample(tfm, priv_a_3, priv_a_3, pub_a_3, pub_a_3, tfm 236 net/bluetooth/selftest.c crypto_free_kpp(tfm); tfm 169 net/bluetooth/smp.c static int aes_cmac(struct crypto_shash *tfm, const u8 k[16], const u8 *m, tfm 173 net/bluetooth/smp.c SHASH_DESC_ON_STACK(desc, tfm); tfm 179 net/bluetooth/smp.c if (!tfm) { tfm 180 net/bluetooth/smp.c BT_ERR("tfm %p", tfm); tfm 184 net/bluetooth/smp.c desc->tfm = tfm; tfm 193 net/bluetooth/smp.c err = crypto_shash_setkey(tfm, tmp, 16); tfm 29 net/ceph/crypto.c key->tfm = NULL; tfm 51 net/ceph/crypto.c key->tfm = crypto_alloc_sync_skcipher("cbc(aes)", 0, 0); tfm 53 net/ceph/crypto.c if (IS_ERR(key->tfm)) { tfm 54 net/ceph/crypto.c ret = PTR_ERR(key->tfm); tfm 55 net/ceph/crypto.c key->tfm = NULL; tfm 59 net/ceph/crypto.c ret = crypto_sync_skcipher_setkey(key->tfm, key->key, key->len); tfm 139 net/ceph/crypto.c if (key->tfm) { tfm 140 net/ceph/crypto.c crypto_free_sync_skcipher(key->tfm); tfm 141 net/ceph/crypto.c key->tfm = NULL; tfm 221 net/ceph/crypto.c SYNC_SKCIPHER_REQUEST_ON_STACK(req, key->tfm); tfm 237 net/ceph/crypto.c skcipher_request_set_sync_tfm(req, key->tfm); tfm 16 net/ceph/crypto.h struct crypto_sync_skcipher *tfm; tfm 124 net/ipv6/seg6_hmac.c struct crypto_shash *tfm; tfm 132 net/ipv6/seg6_hmac.c tfm = *this_cpu_ptr(algo->tfms); tfm 134 net/ipv6/seg6_hmac.c dgsize = crypto_shash_digestsize(tfm); tfm 141 net/ipv6/seg6_hmac.c ret = crypto_shash_setkey(tfm, hinfo->secret, hinfo->slen); tfm 148 net/ipv6/seg6_hmac.c shash->tfm = tfm; tfm 356 net/ipv6/seg6_hmac.c struct crypto_shash *tfm; tfm 372 net/ipv6/seg6_hmac.c tfm = crypto_alloc_shash(algo->name, 0, 0); tfm 373 net/ipv6/seg6_hmac.c if (IS_ERR(tfm)) tfm 374 net/ipv6/seg6_hmac.c return PTR_ERR(tfm); tfm 376 net/ipv6/seg6_hmac.c *p_tfm = tfm; tfm 380 net/ipv6/seg6_hmac.c tfm = *p_tfm; tfm 382 net/ipv6/seg6_hmac.c shsize = sizeof(*shash) + crypto_shash_descsize(tfm); tfm 425 net/ipv6/seg6_hmac.c struct crypto_shash *tfm; tfm 430 net/ipv6/seg6_hmac.c tfm = *per_cpu_ptr(algo->tfms, cpu); tfm 431 net/ipv6/seg6_hmac.c crypto_free_shash(tfm); tfm 18 net/mac80211/aead_api.c int aead_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, tfm 21 net/mac80211/aead_api.c size_t mic_len = crypto_aead_authsize(tfm); tfm 24 net/mac80211/aead_api.c int reqsize = sizeof(*aead_req) + crypto_aead_reqsize(tfm); tfm 39 net/mac80211/aead_api.c aead_request_set_tfm(aead_req, tfm); tfm 49 net/mac80211/aead_api.c int aead_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, tfm 52 net/mac80211/aead_api.c size_t mic_len = crypto_aead_authsize(tfm); tfm 55 net/mac80211/aead_api.c int reqsize = sizeof(*aead_req) + crypto_aead_reqsize(tfm); tfm 74 net/mac80211/aead_api.c aead_request_set_tfm(aead_req, tfm); tfm 88 net/mac80211/aead_api.c struct crypto_aead *tfm; tfm 91 net/mac80211/aead_api.c tfm = crypto_alloc_aead(alg, 0, CRYPTO_ALG_ASYNC); tfm 92 net/mac80211/aead_api.c if (IS_ERR(tfm)) tfm 93 net/mac80211/aead_api.c return tfm; tfm 95 net/mac80211/aead_api.c err = crypto_aead_setkey(tfm, key, key_len); tfm 98 net/mac80211/aead_api.c err = crypto_aead_setauthsize(tfm, mic_len); tfm 102 net/mac80211/aead_api.c return tfm; tfm 105 net/mac80211/aead_api.c crypto_free_aead(tfm); tfm 109 net/mac80211/aead_api.c void aead_key_free(struct crypto_aead *tfm) tfm 111 net/mac80211/aead_api.c crypto_free_aead(tfm); tfm 13 net/mac80211/aead_api.h int aead_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, tfm 17 net/mac80211/aead_api.h int aead_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, tfm 21 net/mac80211/aead_api.h void aead_key_free(struct crypto_aead *tfm); tfm 21 net/mac80211/aes_ccm.h ieee80211_aes_ccm_encrypt(struct crypto_aead *tfm, tfm 25 net/mac80211/aes_ccm.h return aead_encrypt(tfm, b_0, aad + 2, tfm 31 net/mac80211/aes_ccm.h ieee80211_aes_ccm_decrypt(struct crypto_aead *tfm, tfm 35 net/mac80211/aes_ccm.h return aead_decrypt(tfm, b_0, aad + 2, tfm 40 net/mac80211/aes_ccm.h static inline void ieee80211_aes_key_free(struct crypto_aead *tfm) tfm 42 net/mac80211/aes_ccm.h return aead_key_free(tfm); tfm 24 net/mac80211/aes_cmac.c void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad, tfm 27 net/mac80211/aes_cmac.c SHASH_DESC_ON_STACK(desc, tfm); tfm 30 net/mac80211/aes_cmac.c desc->tfm = tfm; tfm 40 net/mac80211/aes_cmac.c void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad, tfm 43 net/mac80211/aes_cmac.c SHASH_DESC_ON_STACK(desc, tfm); tfm 45 net/mac80211/aes_cmac.c desc->tfm = tfm; tfm 56 net/mac80211/aes_cmac.c struct crypto_shash *tfm; tfm 58 net/mac80211/aes_cmac.c tfm = crypto_alloc_shash("cmac(aes)", 0, 0); tfm 59 net/mac80211/aes_cmac.c if (!IS_ERR(tfm)) tfm 60 net/mac80211/aes_cmac.c crypto_shash_setkey(tfm, key, key_len); tfm 62 net/mac80211/aes_cmac.c return tfm; tfm 65 net/mac80211/aes_cmac.c void ieee80211_aes_cmac_key_free(struct crypto_shash *tfm) tfm 67 net/mac80211/aes_cmac.c crypto_free_shash(tfm); tfm 14 net/mac80211/aes_cmac.h void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad, tfm 16 net/mac80211/aes_cmac.h void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad, tfm 18 net/mac80211/aes_cmac.h void ieee80211_aes_cmac_key_free(struct crypto_shash *tfm); tfm 13 net/mac80211/aes_gcm.h static inline int ieee80211_aes_gcm_encrypt(struct crypto_aead *tfm, tfm 17 net/mac80211/aes_gcm.h return aead_encrypt(tfm, j_0, aad + 2, tfm 22 net/mac80211/aes_gcm.h static inline int ieee80211_aes_gcm_decrypt(struct crypto_aead *tfm, tfm 26 net/mac80211/aes_gcm.h return aead_decrypt(tfm, j_0, aad + 2, tfm 38 net/mac80211/aes_gcm.h static inline void ieee80211_aes_gcm_key_free(struct crypto_aead *tfm) tfm 40 net/mac80211/aes_gcm.h return aead_key_free(tfm); tfm 17 net/mac80211/aes_gmac.c int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce, tfm 23 net/mac80211/aes_gmac.c int reqsize = sizeof(*aead_req) + crypto_aead_reqsize(tfm); tfm 46 net/mac80211/aes_gmac.c aead_request_set_tfm(aead_req, tfm); tfm 59 net/mac80211/aes_gmac.c struct crypto_aead *tfm; tfm 62 net/mac80211/aes_gmac.c tfm = crypto_alloc_aead("gcm(aes)", 0, CRYPTO_ALG_ASYNC); tfm 63 net/mac80211/aes_gmac.c if (IS_ERR(tfm)) tfm 64 net/mac80211/aes_gmac.c return tfm; tfm 66 net/mac80211/aes_gmac.c err = crypto_aead_setkey(tfm, key, key_len); tfm 68 net/mac80211/aes_gmac.c err = crypto_aead_setauthsize(tfm, GMAC_MIC_LEN); tfm 70 net/mac80211/aes_gmac.c return tfm; tfm 72 net/mac80211/aes_gmac.c crypto_free_aead(tfm); tfm 76 net/mac80211/aes_gmac.c void ieee80211_aes_gmac_key_free(struct crypto_aead *tfm) tfm 78 net/mac80211/aes_gmac.c crypto_free_aead(tfm); tfm 17 net/mac80211/aes_gmac.h int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce, tfm 19 net/mac80211/aes_gmac.h void ieee80211_aes_gmac_key_free(struct crypto_aead *tfm); tfm 25 net/mac80211/fils_aead.c static int aes_s2v(struct crypto_shash *tfm, tfm 29 net/mac80211/fils_aead.c SHASH_DESC_ON_STACK(desc, tfm); tfm 32 net/mac80211/fils_aead.c desc->tfm = tfm; tfm 72 net/mac80211/fils_aead.c struct crypto_shash *tfm; tfm 87 net/mac80211/fils_aead.c tfm = crypto_alloc_shash("cmac(aes)", 0, 0); tfm 88 net/mac80211/fils_aead.c if (IS_ERR(tfm)) tfm 89 net/mac80211/fils_aead.c return PTR_ERR(tfm); tfm 91 net/mac80211/fils_aead.c res = crypto_shash_setkey(tfm, key, key_len); tfm 93 net/mac80211/fils_aead.c res = aes_s2v(tfm, num_elem, addr, len, v); tfm 94 net/mac80211/fils_aead.c crypto_free_shash(tfm); tfm 149 net/mac80211/fils_aead.c struct crypto_shash *tfm; tfm 202 net/mac80211/fils_aead.c tfm = crypto_alloc_shash("cmac(aes)", 0, 0); tfm 203 net/mac80211/fils_aead.c if (IS_ERR(tfm)) tfm 204 net/mac80211/fils_aead.c return PTR_ERR(tfm); tfm 206 net/mac80211/fils_aead.c res = crypto_shash_setkey(tfm, key, key_len); tfm 208 net/mac80211/fils_aead.c res = aes_s2v(tfm, num_elem, addr, len, check); tfm 209 net/mac80211/fils_aead.c crypto_free_shash(tfm); tfm 556 net/mac80211/key.c key->u.ccmp.tfm = ieee80211_aes_key_setup_encrypt( tfm 558 net/mac80211/key.c if (IS_ERR(key->u.ccmp.tfm)) { tfm 559 net/mac80211/key.c err = PTR_ERR(key->u.ccmp.tfm); tfm 574 net/mac80211/key.c key->u.ccmp.tfm = ieee80211_aes_key_setup_encrypt( tfm 576 net/mac80211/key.c if (IS_ERR(key->u.ccmp.tfm)) { tfm 577 net/mac80211/key.c err = PTR_ERR(key->u.ccmp.tfm); tfm 597 net/mac80211/key.c key->u.aes_cmac.tfm = tfm 599 net/mac80211/key.c if (IS_ERR(key->u.aes_cmac.tfm)) { tfm 600 net/mac80211/key.c err = PTR_ERR(key->u.aes_cmac.tfm); tfm 616 net/mac80211/key.c key->u.aes_gmac.tfm = tfm 618 net/mac80211/key.c if (IS_ERR(key->u.aes_gmac.tfm)) { tfm 619 net/mac80211/key.c err = PTR_ERR(key->u.aes_gmac.tfm); tfm 635 net/mac80211/key.c key->u.gcmp.tfm = ieee80211_aes_gcm_key_setup_encrypt(key_data, tfm 637 net/mac80211/key.c if (IS_ERR(key->u.gcmp.tfm)) { tfm 638 net/mac80211/key.c err = PTR_ERR(key->u.gcmp.tfm); tfm 670 net/mac80211/key.c ieee80211_aes_key_free(key->u.ccmp.tfm); tfm 674 net/mac80211/key.c ieee80211_aes_cmac_key_free(key->u.aes_cmac.tfm); tfm 678 net/mac80211/key.c ieee80211_aes_gmac_key_free(key->u.aes_gmac.tfm); tfm 682 net/mac80211/key.c ieee80211_aes_gcm_key_free(key->u.gcmp.tfm); tfm 91 net/mac80211/key.h struct crypto_aead *tfm; tfm 96 net/mac80211/key.h struct crypto_shash *tfm; tfm 102 net/mac80211/key.h struct crypto_aead *tfm; tfm 113 net/mac80211/key.h struct crypto_aead *tfm; tfm 471 net/mac80211/wpa.c return ieee80211_aes_ccm_encrypt(key->u.ccmp.tfm, b_0, aad, pos, len, tfm 548 net/mac80211/wpa.c key->u.ccmp.tfm, b_0, aad, tfm 703 net/mac80211/wpa.c return ieee80211_aes_gcm_encrypt(key->u.gcmp.tfm, j_0, aad, pos, len, tfm 775 net/mac80211/wpa.c key->u.gcmp.tfm, j_0, aad, tfm 974 net/mac80211/wpa.c ieee80211_aes_cmac(key->u.aes_cmac.tfm, aad, tfm 1017 net/mac80211/wpa.c ieee80211_aes_cmac_256(key->u.aes_cmac.tfm, aad, tfm 1057 net/mac80211/wpa.c ieee80211_aes_cmac(key->u.aes_cmac.tfm, aad, tfm 1107 net/mac80211/wpa.c ieee80211_aes_cmac_256(key->u.aes_cmac.tfm, aad, tfm 1165 net/mac80211/wpa.c if (ieee80211_aes_gmac(key->u.aes_gmac.tfm, aad, nonce, tfm 1213 net/mac80211/wpa.c if (ieee80211_aes_gmac(key->u.aes_gmac.tfm, aad, nonce, tfm 127 net/mac802154/llsec.c BUILD_BUG_ON(ARRAY_SIZE(authsizes) != ARRAY_SIZE(key->tfm)); tfm 129 net/mac802154/llsec.c for (i = 0; i < ARRAY_SIZE(key->tfm); i++) { tfm 130 net/mac802154/llsec.c key->tfm[i] = crypto_alloc_aead("ccm(aes)", 0, tfm 132 net/mac802154/llsec.c if (IS_ERR(key->tfm[i])) tfm 134 net/mac802154/llsec.c if (crypto_aead_setkey(key->tfm[i], template->key, tfm 137 net/mac802154/llsec.c if (crypto_aead_setauthsize(key->tfm[i], authsizes[i])) tfm 154 net/mac802154/llsec.c for (i = 0; i < ARRAY_SIZE(key->tfm); i++) tfm 155 net/mac802154/llsec.c if (key->tfm[i]) tfm 156 net/mac802154/llsec.c crypto_free_aead(key->tfm[i]); tfm 169 net/mac802154/llsec.c for (i = 0; i < ARRAY_SIZE(key->tfm); i++) tfm 170 net/mac802154/llsec.c crypto_free_aead(key->tfm[i]); tfm 640 net/mac802154/llsec.c for (i = 0; i < ARRAY_SIZE(key->tfm); i++) tfm 641 net/mac802154/llsec.c if (crypto_aead_authsize(key->tfm[i]) == authlen) tfm 642 net/mac802154/llsec.c return key->tfm[i]; tfm 23 net/mac802154/llsec.h struct crypto_aead *tfm[3]; tfm 152 net/rxrpc/rxkad.c struct crypto_skcipher *tfm = &call->conn->cipher->base; tfm 156 net/rxrpc/rxkad.c cipher_req = skcipher_request_alloc(tfm, GFP_NOFS); tfm 1258 net/rxrpc/rxkad.c struct crypto_sync_skcipher *tfm; tfm 1263 net/rxrpc/rxkad.c tfm = crypto_alloc_sync_skcipher("pcbc(fcrypt)", 0, 0); tfm 1264 net/rxrpc/rxkad.c if (IS_ERR(tfm)) tfm 1265 net/rxrpc/rxkad.c return PTR_ERR(tfm); tfm 1267 net/rxrpc/rxkad.c req = skcipher_request_alloc(&tfm->base, GFP_KERNEL); tfm 1272 net/rxrpc/rxkad.c rxkad_ci = tfm; tfm 1276 net/rxrpc/rxkad.c crypto_free_sync_skcipher(tfm); tfm 456 net/sctp/auth.c struct crypto_shash *tfm = NULL; tfm 485 net/sctp/auth.c tfm = crypto_alloc_shash(sctp_hmac_list[id].hmac_name, 0, 0); tfm 486 net/sctp/auth.c if (IS_ERR(tfm)) tfm 489 net/sctp/auth.c ep->auth_hmacs[id] = tfm; tfm 711 net/sctp/auth.c struct crypto_shash *tfm; tfm 738 net/sctp/auth.c tfm = asoc->ep->auth_hmacs[hmac_id]; tfm 741 net/sctp/auth.c if (crypto_shash_setkey(tfm, &asoc_key->data[0], asoc_key->len)) tfm 745 net/sctp/auth.c SHASH_DESC_ON_STACK(desc, tfm); tfm 747 net/sctp/auth.c desc->tfm = tfm; tfm 1677 net/sctp/sm_make_chunk.c desc->tfm = sctp_sk(ep->base.sk)->hmac; tfm 1679 net/sctp/sm_make_chunk.c err = crypto_shash_setkey(desc->tfm, ep->secret_key, tfm 1747 net/sctp/sm_make_chunk.c desc->tfm = sctp_sk(ep->base.sk)->hmac; tfm 1749 net/sctp/sm_make_chunk.c err = crypto_shash_setkey(desc->tfm, ep->secret_key, tfm 8357 net/sctp/socket.c struct crypto_shash *tfm = NULL; tfm 8363 net/sctp/socket.c tfm = crypto_alloc_shash(alg, 0, 0); tfm 8364 net/sctp/socket.c if (IS_ERR(tfm)) { tfm 8366 net/sctp/socket.c sp->sctp_hmac_alg, PTR_ERR(tfm)); tfm 8369 net/sctp/socket.c sctp_sk(sk)->hmac = tfm; tfm 56 net/sunrpc/auth_gss/gss_krb5_crypto.c struct crypto_sync_skcipher *tfm, tfm 65 net/sunrpc/auth_gss/gss_krb5_crypto.c SYNC_SKCIPHER_REQUEST_ON_STACK(req, tfm); tfm 67 net/sunrpc/auth_gss/gss_krb5_crypto.c if (length % crypto_sync_skcipher_blocksize(tfm) != 0) tfm 70 net/sunrpc/auth_gss/gss_krb5_crypto.c if (crypto_sync_skcipher_ivsize(tfm) > GSS_KRB5_MAX_BLOCKSIZE) { tfm 72 net/sunrpc/auth_gss/gss_krb5_crypto.c crypto_sync_skcipher_ivsize(tfm)); tfm 77 net/sunrpc/auth_gss/gss_krb5_crypto.c memcpy(local_iv, iv, crypto_sync_skcipher_ivsize(tfm)); tfm 82 net/sunrpc/auth_gss/gss_krb5_crypto.c skcipher_request_set_sync_tfm(req, tfm); tfm 95 net/sunrpc/auth_gss/gss_krb5_crypto.c struct crypto_sync_skcipher *tfm, tfm 104 net/sunrpc/auth_gss/gss_krb5_crypto.c SYNC_SKCIPHER_REQUEST_ON_STACK(req, tfm); tfm 106 net/sunrpc/auth_gss/gss_krb5_crypto.c if (length % crypto_sync_skcipher_blocksize(tfm) != 0) tfm 109 net/sunrpc/auth_gss/gss_krb5_crypto.c if (crypto_sync_skcipher_ivsize(tfm) > GSS_KRB5_MAX_BLOCKSIZE) { tfm 111 net/sunrpc/auth_gss/gss_krb5_crypto.c crypto_sync_skcipher_ivsize(tfm)); tfm 115 net/sunrpc/auth_gss/gss_krb5_crypto.c memcpy(local_iv, iv, crypto_sync_skcipher_ivsize(tfm)); tfm 120 net/sunrpc/auth_gss/gss_krb5_crypto.c skcipher_request_set_sync_tfm(req, tfm); tfm 280 net/sunrpc/auth_gss/gss_krb5_crypto.c struct crypto_ahash *tfm; tfm 302 net/sunrpc/auth_gss/gss_krb5_crypto.c tfm = crypto_alloc_ahash(kctx->gk5e->cksum_name, 0, CRYPTO_ALG_ASYNC); tfm 303 net/sunrpc/auth_gss/gss_krb5_crypto.c if (IS_ERR(tfm)) tfm 306 net/sunrpc/auth_gss/gss_krb5_crypto.c req = ahash_request_alloc(tfm, GFP_NOFS); tfm 312 net/sunrpc/auth_gss/gss_krb5_crypto.c checksumlen = crypto_ahash_digestsize(tfm); tfm 315 net/sunrpc/auth_gss/gss_krb5_crypto.c err = crypto_ahash_setkey(tfm, cksumkey, tfm 359 net/sunrpc/auth_gss/gss_krb5_crypto.c crypto_free_ahash(tfm); tfm 377 net/sunrpc/auth_gss/gss_krb5_crypto.c struct crypto_ahash *tfm; tfm 398 net/sunrpc/auth_gss/gss_krb5_crypto.c tfm = crypto_alloc_ahash(kctx->gk5e->cksum_name, 0, CRYPTO_ALG_ASYNC); tfm 399 net/sunrpc/auth_gss/gss_krb5_crypto.c if (IS_ERR(tfm)) tfm 402 net/sunrpc/auth_gss/gss_krb5_crypto.c req = ahash_request_alloc(tfm, GFP_NOFS); tfm 408 net/sunrpc/auth_gss/gss_krb5_crypto.c err = crypto_ahash_setkey(tfm, cksumkey, kctx->gk5e->keylength); tfm 446 net/sunrpc/auth_gss/gss_krb5_crypto.c crypto_free_ahash(tfm); tfm 469 net/sunrpc/auth_gss/gss_krb5_crypto.c struct crypto_sync_skcipher *tfm = tfm 496 net/sunrpc/auth_gss/gss_krb5_crypto.c fraglen = thislen & (crypto_sync_skcipher_blocksize(tfm) - 1); tfm 530 net/sunrpc/auth_gss/gss_krb5_crypto.c gss_encrypt_xdr_buf(struct crypto_sync_skcipher *tfm, struct xdr_buf *buf, tfm 535 net/sunrpc/auth_gss/gss_krb5_crypto.c SYNC_SKCIPHER_REQUEST_ON_STACK(req, tfm); tfm 537 net/sunrpc/auth_gss/gss_krb5_crypto.c BUG_ON((buf->len - offset) % crypto_sync_skcipher_blocksize(tfm) != 0); tfm 539 net/sunrpc/auth_gss/gss_krb5_crypto.c skcipher_request_set_sync_tfm(req, tfm); tfm 571 net/sunrpc/auth_gss/gss_krb5_crypto.c struct crypto_sync_skcipher *tfm = tfm 583 net/sunrpc/auth_gss/gss_krb5_crypto.c fraglen = thislen & (crypto_sync_skcipher_blocksize(tfm) - 1); tfm 613 net/sunrpc/auth_gss/gss_krb5_crypto.c gss_decrypt_xdr_buf(struct crypto_sync_skcipher *tfm, struct xdr_buf *buf, tfm 618 net/sunrpc/auth_gss/gss_krb5_crypto.c SYNC_SKCIPHER_REQUEST_ON_STACK(req, tfm); tfm 621 net/sunrpc/auth_gss/gss_krb5_crypto.c BUG_ON((buf->len - offset) % crypto_sync_skcipher_blocksize(tfm) != 0); tfm 623 net/sunrpc/auth_gss/gss_krb5_crypto.c skcipher_request_set_sync_tfm(req, tfm); tfm 979 net/sunrpc/auth_gss/gss_krb5_crypto.c desc->tfm = hmac; tfm 1046 net/sunrpc/auth_gss/gss_krb5_crypto.c desc->tfm = hmac; tfm 440 net/sunrpc/auth_gss/gss_krb5_mech.c desc->tfm = hmac; tfm 2272 net/tls/tls_sw.c struct crypto_tfm *tfm; tfm 2443 net/tls/tls_sw.c tfm = crypto_aead_tfm(sw_ctx_rx->aead_recv); tfm 2449 net/tls/tls_sw.c tfm->__crt_alg->cra_flags & CRYPTO_ALG_ASYNC; tfm 52 net/wireless/lib80211_crypt_ccmp.c struct crypto_aead *tfm; tfm 68 net/wireless/lib80211_crypt_ccmp.c priv->tfm = crypto_alloc_aead("ccm(aes)", 0, CRYPTO_ALG_ASYNC); tfm 69 net/wireless/lib80211_crypt_ccmp.c if (IS_ERR(priv->tfm)) { tfm 70 net/wireless/lib80211_crypt_ccmp.c priv->tfm = NULL; tfm 78 net/wireless/lib80211_crypt_ccmp.c if (priv->tfm) tfm 79 net/wireless/lib80211_crypt_ccmp.c crypto_free_aead(priv->tfm); tfm 89 net/wireless/lib80211_crypt_ccmp.c if (_priv && _priv->tfm) tfm 90 net/wireless/lib80211_crypt_ccmp.c crypto_free_aead(_priv->tfm); tfm 209 net/wireless/lib80211_crypt_ccmp.c req = aead_request_alloc(key->tfm, GFP_ATOMIC); tfm 313 net/wireless/lib80211_crypt_ccmp.c req = aead_request_alloc(key->tfm, GFP_ATOMIC); tfm 351 net/wireless/lib80211_crypt_ccmp.c struct crypto_aead *tfm = data->tfm; tfm 356 net/wireless/lib80211_crypt_ccmp.c data->tfm = tfm; tfm 368 net/wireless/lib80211_crypt_ccmp.c if (crypto_aead_setauthsize(data->tfm, CCMP_MIC_LEN) || tfm 369 net/wireless/lib80211_crypt_ccmp.c crypto_aead_setkey(data->tfm, data->key, CCMP_TK_LEN)) tfm 485 net/wireless/lib80211_crypt_tkip.c desc->tfm = tfm_michael; tfm 624 net/wireless/lib80211_crypt_tkip.c struct crypto_shash *tfm = tkey->tx_tfm_michael; tfm 632 net/wireless/lib80211_crypt_tkip.c tkey->tx_tfm_michael = tfm; tfm 46 net/xfrm/xfrm_ipcomp.c struct crypto_comp *tfm = *per_cpu_ptr(ipcd->tfms, cpu); tfm 47 net/xfrm/xfrm_ipcomp.c int err = crypto_comp_decompress(tfm, start, plen, scratch, &dlen); tfm 140 net/xfrm/xfrm_ipcomp.c struct crypto_comp *tfm; tfm 146 net/xfrm/xfrm_ipcomp.c tfm = *this_cpu_ptr(ipcd->tfms); tfm 147 net/xfrm/xfrm_ipcomp.c err = crypto_comp_compress(tfm, start, plen, scratch, &dlen); tfm 265 net/xfrm/xfrm_ipcomp.c struct crypto_comp *tfm = *per_cpu_ptr(tfms, cpu); tfm 266 net/xfrm/xfrm_ipcomp.c crypto_free_comp(tfm); tfm 279 net/xfrm/xfrm_ipcomp.c struct crypto_comp *tfm; tfm 282 net/xfrm/xfrm_ipcomp.c tfm = this_cpu_read(*pos->tfms); tfm 284 net/xfrm/xfrm_ipcomp.c if (!strcmp(crypto_comp_name(tfm), alg_name)) { tfm 303 net/xfrm/xfrm_ipcomp.c struct crypto_comp *tfm = crypto_alloc_comp(alg_name, 0, tfm 305 net/xfrm/xfrm_ipcomp.c if (IS_ERR(tfm)) tfm 307 net/xfrm/xfrm_ipcomp.c *per_cpu_ptr(tfms, cpu) = tfm; tfm 41 security/apparmor/crypto.c desc->tfm = apparmor_tfm; tfm 78 security/apparmor/crypto.c desc->tfm = apparmor_tfm; tfm 104 security/apparmor/crypto.c struct crypto_shash *tfm; tfm 109 security/apparmor/crypto.c tfm = crypto_alloc_shash("sha1", 0, 0); tfm 110 security/apparmor/crypto.c if (IS_ERR(tfm)) { tfm 111 security/apparmor/crypto.c int error = PTR_ERR(tfm); tfm 115 security/apparmor/crypto.c apparmor_tfm = tfm; tfm 78 security/integrity/evm/evm_crypto.c struct crypto_shash **tfm, *tmp_tfm; tfm 86 security/integrity/evm/evm_crypto.c tfm = &hmac_tfm; tfm 92 security/integrity/evm/evm_crypto.c tfm = &evm_tfm[hash_algo]; tfm 96 security/integrity/evm/evm_crypto.c if (*tfm) tfm 99 security/integrity/evm/evm_crypto.c if (*tfm) tfm 117 security/integrity/evm/evm_crypto.c *tfm = tmp_tfm; tfm 121 security/integrity/evm/evm_crypto.c desc = kmalloc(sizeof(*desc) + crypto_shash_descsize(*tfm), tfm 126 security/integrity/evm/evm_crypto.c desc->tfm = *tfm; tfm 209 security/integrity/evm/evm_crypto.c data->hdr.length = crypto_shash_digestsize(desc->tfm); tfm 80 security/integrity/ima/ima_crypto.c struct crypto_shash *tfm = ima_shash_tfm; tfm 87 security/integrity/ima/ima_crypto.c tfm = crypto_alloc_shash(hash_algo_name[algo], 0, 0); tfm 88 security/integrity/ima/ima_crypto.c if (IS_ERR(tfm)) { tfm 89 security/integrity/ima/ima_crypto.c rc = PTR_ERR(tfm); tfm 94 security/integrity/ima/ima_crypto.c return tfm; tfm 97 security/integrity/ima/ima_crypto.c static void ima_free_tfm(struct crypto_shash *tfm) tfm 99 security/integrity/ima/ima_crypto.c if (tfm != ima_shash_tfm) tfm 100 security/integrity/ima/ima_crypto.c crypto_free_shash(tfm); tfm 167 security/integrity/ima/ima_crypto.c struct crypto_ahash *tfm = ima_ahash_tfm; tfm 173 security/integrity/ima/ima_crypto.c if (algo != ima_hash_algo || !tfm) { tfm 174 security/integrity/ima/ima_crypto.c tfm = crypto_alloc_ahash(hash_algo_name[algo], 0, 0); tfm 175 security/integrity/ima/ima_crypto.c if (!IS_ERR(tfm)) { tfm 177 security/integrity/ima/ima_crypto.c ima_ahash_tfm = tfm; tfm 179 security/integrity/ima/ima_crypto.c rc = PTR_ERR(tfm); tfm 184 security/integrity/ima/ima_crypto.c return tfm; tfm 187 security/integrity/ima/ima_crypto.c static void ima_free_atfm(struct crypto_ahash *tfm) tfm 189 security/integrity/ima/ima_crypto.c if (tfm != ima_ahash_tfm) tfm 190 security/integrity/ima/ima_crypto.c crypto_free_ahash(tfm); tfm 206 security/integrity/ima/ima_crypto.c struct crypto_ahash *tfm) tfm 216 security/integrity/ima/ima_crypto.c hash->length = crypto_ahash_digestsize(tfm); tfm 218 security/integrity/ima/ima_crypto.c req = ahash_request_alloc(tfm, GFP_KERNEL); tfm 317 security/integrity/ima/ima_crypto.c struct crypto_ahash *tfm; tfm 320 security/integrity/ima/ima_crypto.c tfm = ima_alloc_atfm(hash->algo); tfm 321 security/integrity/ima/ima_crypto.c if (IS_ERR(tfm)) tfm 322 security/integrity/ima/ima_crypto.c return PTR_ERR(tfm); tfm 324 security/integrity/ima/ima_crypto.c rc = ima_calc_file_hash_atfm(file, hash, tfm); tfm 326 security/integrity/ima/ima_crypto.c ima_free_atfm(tfm); tfm 333 security/integrity/ima/ima_crypto.c struct crypto_shash *tfm) tfm 338 security/integrity/ima/ima_crypto.c SHASH_DESC_ON_STACK(shash, tfm); tfm 340 security/integrity/ima/ima_crypto.c shash->tfm = tfm; tfm 342 security/integrity/ima/ima_crypto.c hash->length = crypto_shash_digestsize(tfm); tfm 382 security/integrity/ima/ima_crypto.c struct crypto_shash *tfm; tfm 385 security/integrity/ima/ima_crypto.c tfm = ima_alloc_tfm(hash->algo); tfm 386 security/integrity/ima/ima_crypto.c if (IS_ERR(tfm)) tfm 387 security/integrity/ima/ima_crypto.c return PTR_ERR(tfm); tfm 389 security/integrity/ima/ima_crypto.c rc = ima_calc_file_hash_tfm(file, hash, tfm); tfm 391 security/integrity/ima/ima_crypto.c ima_free_tfm(tfm); tfm 470 security/integrity/ima/ima_crypto.c struct crypto_shash *tfm) tfm 472 security/integrity/ima/ima_crypto.c SHASH_DESC_ON_STACK(shash, tfm); tfm 475 security/integrity/ima/ima_crypto.c shash->tfm = tfm; tfm 477 security/integrity/ima/ima_crypto.c hash->length = crypto_shash_digestsize(tfm); tfm 516 security/integrity/ima/ima_crypto.c struct crypto_shash *tfm; tfm 519 security/integrity/ima/ima_crypto.c tfm = ima_alloc_tfm(hash->algo); tfm 520 security/integrity/ima/ima_crypto.c if (IS_ERR(tfm)) tfm 521 security/integrity/ima/ima_crypto.c return PTR_ERR(tfm); tfm 524 security/integrity/ima/ima_crypto.c hash, tfm); tfm 526 security/integrity/ima/ima_crypto.c ima_free_tfm(tfm); tfm 533 security/integrity/ima/ima_crypto.c struct crypto_ahash *tfm) tfm 540 security/integrity/ima/ima_crypto.c hash->length = crypto_ahash_digestsize(tfm); tfm 542 security/integrity/ima/ima_crypto.c req = ahash_request_alloc(tfm, GFP_KERNEL); tfm 574 security/integrity/ima/ima_crypto.c struct crypto_ahash *tfm; tfm 577 security/integrity/ima/ima_crypto.c tfm = ima_alloc_atfm(hash->algo); tfm 578 security/integrity/ima/ima_crypto.c if (IS_ERR(tfm)) tfm 579 security/integrity/ima/ima_crypto.c return PTR_ERR(tfm); tfm 581 security/integrity/ima/ima_crypto.c rc = calc_buffer_ahash_atfm(buf, len, hash, tfm); tfm 583 security/integrity/ima/ima_crypto.c ima_free_atfm(tfm); tfm 590 security/integrity/ima/ima_crypto.c struct crypto_shash *tfm) tfm 592 security/integrity/ima/ima_crypto.c SHASH_DESC_ON_STACK(shash, tfm); tfm 596 security/integrity/ima/ima_crypto.c shash->tfm = tfm; tfm 598 security/integrity/ima/ima_crypto.c hash->length = crypto_shash_digestsize(tfm); tfm 621 security/integrity/ima/ima_crypto.c struct crypto_shash *tfm; tfm 624 security/integrity/ima/ima_crypto.c tfm = ima_alloc_tfm(hash->algo); tfm 625 security/integrity/ima/ima_crypto.c if (IS_ERR(tfm)) tfm 626 security/integrity/ima/ima_crypto.c return PTR_ERR(tfm); tfm 628 security/integrity/ima/ima_crypto.c rc = calc_buffer_shash_tfm(buf, len, hash, tfm); tfm 630 security/integrity/ima/ima_crypto.c ima_free_tfm(tfm); tfm 661 security/integrity/ima/ima_crypto.c struct crypto_shash *tfm) tfm 666 security/integrity/ima/ima_crypto.c SHASH_DESC_ON_STACK(shash, tfm); tfm 668 security/integrity/ima/ima_crypto.c shash->tfm = tfm; tfm 687 security/integrity/ima/ima_crypto.c struct crypto_shash *tfm; tfm 690 security/integrity/ima/ima_crypto.c tfm = ima_alloc_tfm(hash->algo); tfm 691 security/integrity/ima/ima_crypto.c if (IS_ERR(tfm)) tfm 692 security/integrity/ima/ima_crypto.c return PTR_ERR(tfm); tfm 694 security/integrity/ima/ima_crypto.c hash->length = crypto_shash_digestsize(tfm); tfm 695 security/integrity/ima/ima_crypto.c rc = ima_calc_boot_aggregate_tfm(hash->digest, tfm); tfm 697 security/integrity/ima/ima_crypto.c ima_free_tfm(tfm); tfm 89 security/keys/dh.c struct crypto_shash *tfm; tfm 95 security/keys/dh.c tfm = crypto_alloc_shash(hashname, 0, 0); tfm 96 security/keys/dh.c if (IS_ERR(tfm)) { tfm 98 security/keys/dh.c return PTR_ERR(tfm); tfm 102 security/keys/dh.c if (crypto_shash_digestsize(tfm) == 0) tfm 106 security/keys/dh.c size = sizeof(struct shash_desc) + crypto_shash_descsize(tfm); tfm 110 security/keys/dh.c sdesc->shash.tfm = tfm; tfm 117 security/keys/dh.c crypto_free_shash(tfm); tfm 126 security/keys/dh.c if (sdesc->shash.tfm) tfm 127 security/keys/dh.c crypto_free_shash(sdesc->shash.tfm); tfm 147 security/keys/dh.c unsigned int h = crypto_shash_digestsize(desc->tfm); tfm 206 security/keys/dh.c crypto_shash_digestsize(sdesc->shash.tfm)); tfm 239 security/keys/dh.c struct crypto_kpp *tfm; tfm 315 security/keys/dh.c tfm = crypto_alloc_kpp("dh", 0, 0); tfm 316 security/keys/dh.c if (IS_ERR(tfm)) { tfm 317 security/keys/dh.c ret = PTR_ERR(tfm); tfm 321 security/keys/dh.c ret = crypto_kpp_set_secret(tfm, secret, secretlen); tfm 325 security/keys/dh.c outlen = crypto_kpp_maxsize(tfm); tfm 350 security/keys/dh.c req = kpp_request_alloc(tfm, GFP_KERNEL); tfm 400 security/keys/dh.c crypto_free_kpp(tfm); tfm 83 security/keys/encrypted-keys/encrypted.c struct crypto_skcipher *tfm; tfm 85 security/keys/encrypted-keys/encrypted.c tfm = crypto_alloc_skcipher(blkcipher_alg, 0, CRYPTO_ALG_ASYNC); tfm 86 security/keys/encrypted-keys/encrypted.c if (IS_ERR(tfm)) { tfm 88 security/keys/encrypted-keys/encrypted.c PTR_ERR(tfm)); tfm 89 security/keys/encrypted-keys/encrypted.c return PTR_ERR(tfm); tfm 91 security/keys/encrypted-keys/encrypted.c ivsize = crypto_skcipher_ivsize(tfm); tfm 92 security/keys/encrypted-keys/encrypted.c blksize = crypto_skcipher_blocksize(tfm); tfm 93 security/keys/encrypted-keys/encrypted.c crypto_free_skcipher(tfm); tfm 326 security/keys/encrypted-keys/encrypted.c static int calc_hash(struct crypto_shash *tfm, u8 *digest, tfm 329 security/keys/encrypted-keys/encrypted.c SHASH_DESC_ON_STACK(desc, tfm); tfm 332 security/keys/encrypted-keys/encrypted.c desc->tfm = tfm; tfm 342 security/keys/encrypted-keys/encrypted.c struct crypto_shash *tfm; tfm 345 security/keys/encrypted-keys/encrypted.c tfm = crypto_alloc_shash(hmac_alg, 0, 0); tfm 346 security/keys/encrypted-keys/encrypted.c if (IS_ERR(tfm)) { tfm 348 security/keys/encrypted-keys/encrypted.c hmac_alg, PTR_ERR(tfm)); tfm 349 security/keys/encrypted-keys/encrypted.c return PTR_ERR(tfm); tfm 352 security/keys/encrypted-keys/encrypted.c err = crypto_shash_setkey(tfm, key, keylen); tfm 354 security/keys/encrypted-keys/encrypted.c err = calc_hash(tfm, digest, buf, buflen); tfm 355 security/keys/encrypted-keys/encrypted.c crypto_free_shash(tfm); tfm 393 security/keys/encrypted-keys/encrypted.c struct crypto_skcipher *tfm; tfm 396 security/keys/encrypted-keys/encrypted.c tfm = crypto_alloc_skcipher(blkcipher_alg, 0, CRYPTO_ALG_ASYNC); tfm 397 security/keys/encrypted-keys/encrypted.c if (IS_ERR(tfm)) { tfm 399 security/keys/encrypted-keys/encrypted.c blkcipher_alg, PTR_ERR(tfm)); tfm 400 security/keys/encrypted-keys/encrypted.c return ERR_CAST(tfm); tfm 403 security/keys/encrypted-keys/encrypted.c ret = crypto_skcipher_setkey(tfm, key, key_len); tfm 406 security/keys/encrypted-keys/encrypted.c crypto_free_skcipher(tfm); tfm 410 security/keys/encrypted-keys/encrypted.c req = skcipher_request_alloc(tfm, GFP_KERNEL); tfm 414 security/keys/encrypted-keys/encrypted.c crypto_free_skcipher(tfm); tfm 464 security/keys/encrypted-keys/encrypted.c struct crypto_skcipher *tfm; tfm 489 security/keys/encrypted-keys/encrypted.c tfm = crypto_skcipher_reqtfm(req); tfm 491 security/keys/encrypted-keys/encrypted.c crypto_free_skcipher(tfm); tfm 566 security/keys/encrypted-keys/encrypted.c struct crypto_skcipher *tfm; tfm 595 security/keys/encrypted-keys/encrypted.c tfm = crypto_skcipher_reqtfm(req); tfm 597 security/keys/encrypted-keys/encrypted.c crypto_free_skcipher(tfm); tfm 54 security/keys/trusted.c sdesc->shash.tfm = alg;