Searched refs:tfm (Results 276 - 300 of 470) sorted by relevance

<<111213141516171819

/linux-master/drivers/crypto/ccree/
H A Dcc_hash.c287 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
288 struct cc_hash_ctx *ctx = crypto_ahash_ctx_dma(tfm);
305 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
306 struct cc_hash_ctx *ctx = crypto_ahash_ctx_dma(tfm);
307 u32 digestsize = crypto_ahash_digestsize(tfm);
325 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
326 struct cc_hash_ctx *ctx = crypto_ahash_ctx_dma(tfm);
327 u32 digestsize = crypto_ahash_digestsize(tfm);
345 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
346 struct cc_hash_ctx *ctx = crypto_ahash_ctx_dma(tfm);
368 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
421 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
559 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
635 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
715 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
1110 cc_get_hash_len(struct crypto_tfm *tfm) argument
1120 cc_cra_init(struct crypto_tfm *tfm) argument
1141 cc_cra_exit(struct crypto_tfm *tfm) argument
1153 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
1221 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
1342 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
1423 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
2077 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local
2134 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local
[all...]
/linux-master/drivers/crypto/starfive/
H A Djh7110-aes.c544 static int starfive_aes_init_tfm(struct crypto_skcipher *tfm) argument
546 struct starfive_cryp_ctx *ctx = crypto_skcipher_ctx(tfm);
552 crypto_skcipher_set_reqsize(tfm, sizeof(struct starfive_cryp_request_ctx) +
616 static int starfive_aes_aead_init_tfm(struct crypto_aead *tfm) argument
618 struct starfive_cryp_ctx *ctx = crypto_aead_ctx(tfm);
620 struct crypto_tfm *aead = crypto_aead_tfm(tfm);
636 crypto_aead_set_reqsize(tfm, sizeof(struct starfive_cryp_ctx) +
642 static void starfive_aes_aead_exit_tfm(struct crypto_aead *tfm) argument
644 struct starfive_cryp_ctx *ctx = crypto_aead_ctx(tfm);
651 struct crypto_skcipher *tfm local
693 starfive_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, unsigned int keylen) argument
712 starfive_aes_aead_setkey(struct crypto_aead *tfm, const u8 *key, unsigned int keylen) argument
734 starfive_aes_gcm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) argument
740 starfive_aes_ccm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) argument
[all...]
H A Djh7110-hash.c274 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
276 struct starfive_cryp_ctx *ctx = crypto_ahash_ctx(tfm);
292 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
293 struct starfive_cryp_ctx *ctx = crypto_ahash_ctx(tfm);
309 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
310 struct starfive_cryp_ctx *ctx = crypto_ahash_ctx(tfm);
326 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
327 struct starfive_cryp_ctx *ctx = crypto_ahash_ctx(tfm);
343 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
344 struct starfive_cryp_ctx *ctx = crypto_ahash_ctx(tfm);
358 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
382 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
396 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
[all...]
/linux-master/crypto/
H A Dmichael_mic.c50 struct michael_mic_ctx *ctx = crypto_shash_ctx(desc->tfm);
129 static int michael_setkey(struct crypto_shash *tfm, const u8 *key, argument
132 struct michael_mic_ctx *mctx = crypto_shash_ctx(tfm);
H A Dhmac.c47 shash->tfm = hash;
86 const struct hmac_ctx *tctx = crypto_shash_ctx(pdesc->tfm);
88 desc->tfm = tctx->hash;
95 const struct hmac_ctx *tctx = crypto_shash_ctx(pdesc->tfm);
110 struct crypto_shash *parent = pdesc->tfm;
126 struct crypto_shash *parent = pdesc->tfm;
H A Dpcrypt.c37 struct crypto_aead *tfm)
39 return aead_instance_ctx(aead_alg_instance(tfm));
175 static int pcrypt_aead_init_tfm(struct crypto_aead *tfm) argument
178 struct aead_instance *inst = aead_alg_instance(tfm);
180 struct pcrypt_aead_ctx *ctx = crypto_aead_ctx(tfm);
196 crypto_aead_set_reqsize(tfm, sizeof(struct pcrypt_request) +
203 static void pcrypt_aead_exit_tfm(struct crypto_aead *tfm) argument
205 struct pcrypt_aead_ctx *ctx = crypto_aead_ctx(tfm);
36 pcrypt_tfm_ictx( struct crypto_aead *tfm) argument
H A Dxts.c86 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
96 skcipher_request_set_tfm(req, tfm);
295 static int xts_init_tfm(struct crypto_skcipher *tfm) argument
297 struct skcipher_instance *inst = skcipher_alg_instance(tfm);
299 struct xts_tfm_ctx *ctx = crypto_skcipher_ctx(tfm);
317 crypto_skcipher_set_reqsize(tfm, crypto_skcipher_reqsize(child) +
323 static void xts_exit_tfm(struct crypto_skcipher *tfm) argument
325 struct xts_tfm_ctx *ctx = crypto_skcipher_ctx(tfm);
/linux-master/drivers/crypto/virtio/
H A Dvirtio_crypto_skcipher_algs.c20 struct crypto_skcipher *tfm; member in struct:virtio_crypto_skcipher_ctx
281 static int virtio_crypto_skcipher_setkey(struct crypto_skcipher *tfm, argument
285 struct virtio_crypto_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm);
327 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
330 unsigned int ivsize = crypto_skcipher_ivsize(tfm);
516 static int virtio_crypto_skcipher_init(struct crypto_skcipher *tfm) argument
518 struct virtio_crypto_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm);
520 crypto_skcipher_set_reqsize(tfm, sizeof(struct virtio_crypto_sym_request));
521 ctx->tfm = tfm;
526 virtio_crypto_skcipher_exit(struct crypto_skcipher *tfm) argument
[all...]
/linux-master/net/sunrpc/auth_gss/
H A Dgss_krb5_mech.c269 struct crypto_sync_skcipher *tfm; local
271 tfm = crypto_alloc_sync_skcipher(cname, 0, 0);
272 if (IS_ERR(tfm))
274 if (crypto_sync_skcipher_setkey(tfm, key->data, key->len)) {
275 crypto_free_sync_skcipher(tfm);
278 return tfm;
284 struct crypto_ahash *tfm; local
286 tfm = crypto_alloc_ahash(kctx->gk5e->cksum_name, 0, CRYPTO_ALG_ASYNC);
287 if (IS_ERR(tfm))
289 if (crypto_ahash_setkey(tfm, ke
[all...]
/linux-master/tools/testing/crypto/chacha20-s390/
H A Dtest-cipher.c45 struct crypto_skcipher *tfm; member in struct:skcipher_def
169 sk.tfm = skcipher;
187 pr_info("%s tfm encryption successful, took %lld nsec\n", name, end - start);
211 pr_info("%s tfm decryption successful, took %lld nsec\n", name, end - start);
223 crypto_skcipher_blocksize(sk.tfm),
224 crypto_skcipher_alg(sk.tfm)->walksize,
225 crypto_skcipher_ivsize(sk.tfm),
226 crypto_skcipher_alignmask(sk.tfm));
/linux-master/drivers/crypto/
H A Dexynos-rng.c194 static int exynos_rng_generate(struct crypto_rng *tfm, argument
198 struct exynos_rng_ctx *ctx = crypto_rng_ctx(tfm);
225 static int exynos_rng_seed(struct crypto_rng *tfm, const u8 *seed, argument
228 struct exynos_rng_ctx *ctx = crypto_rng_ctx(tfm);
245 static int exynos_rng_kcapi_init(struct crypto_tfm *tfm) argument
247 struct exynos_rng_ctx *ctx = crypto_tfm_ctx(tfm);
/linux-master/arch/x86/crypto/
H A Dcamellia_aesni_avx_glue.c30 static int camellia_setkey(struct crypto_skcipher *tfm, const u8 *key, argument
33 return __camellia_setkey(crypto_skcipher_ctx(tfm), key, keylen);
H A Dcamellia_aesni_avx2_glue.c27 static int camellia_setkey(struct crypto_skcipher *tfm, const u8 *key, argument
30 return __camellia_setkey(crypto_skcipher_ctx(tfm), key, keylen);
H A Dtwofish_avx_glue.c30 static int twofish_setkey_skcipher(struct crypto_skcipher *tfm, argument
33 return twofish_setkey(&tfm->base, key, keylen);
H A Dserpent_avx_glue.c35 static int serpent_setkey_skcipher(struct crypto_skcipher *tfm, argument
38 return __serpent_setkey(crypto_skcipher_ctx(tfm), key, keylen);
H A Dserpent_sse2_glue.c27 static int serpent_setkey_skcipher(struct crypto_skcipher *tfm, argument
30 return __serpent_setkey(crypto_skcipher_ctx(tfm), key, keylen);
H A Dcast6_avx_glue.c28 static int cast6_setkey_skcipher(struct crypto_skcipher *tfm, argument
31 return cast6_setkey(&tfm->base, key, keylen);
H A Dcast5_avx_glue.c28 static int cast5_setkey_skcipher(struct crypto_skcipher *tfm, const u8 *key, argument
31 return cast5_setkey(&tfm->base, key, keylen);
H A Dtwofish_glue_3way.c21 static int twofish_setkey_skcipher(struct crypto_skcipher *tfm, argument
24 return twofish_setkey(&tfm->base, key, keylen);
H A Dserpent_avx2_glue.c26 static int serpent_setkey_skcipher(struct crypto_skcipher *tfm, argument
29 return __serpent_setkey(crypto_skcipher_ctx(tfm), key, keylen);
H A Dsm4_aesni_avx2_glue.c27 static int sm4_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, argument
30 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm);
/linux-master/arch/powerpc/crypto/
H A Dcrc-vpmsum_test.c61 crct10dif_shash->tfm = crct10dif_tfm;
70 crc32c_shash->tfm = crc32c_tfm;
/linux-master/drivers/crypto/amcc/
H A Dcrypto4xx_alg.c370 struct crypto_tfm *tfm = crypto_aead_tfm(cipher); local
371 struct crypto4xx_ctx *ctx = crypto_tfm_ctx(tfm);
429 struct crypto4xx_ctx *ctx = crypto_tfm_ctx(req->base.tfm);
472 struct crypto_tfm *tfm = crypto_aead_tfm(cipher); local
473 struct crypto4xx_ctx *ctx = crypto_tfm_ctx(tfm);
516 struct crypto_tfm *tfm = crypto_aead_tfm(cipher); local
517 struct crypto4xx_ctx *ctx = crypto_tfm_ctx(tfm);
576 struct crypto4xx_ctx *ctx = crypto_tfm_ctx(req->base.tfm);
609 static int crypto4xx_hash_alg_init(struct crypto_tfm *tfm, argument
614 struct crypto_alg *alg = tfm
703 crypto4xx_sha1_alg_init(struct crypto_tfm *tfm) argument
[all...]
/linux-master/drivers/crypto/xilinx/
H A Dzynqmp-aes-gcm.c244 struct crypto_tfm *tfm = crypto_aead_tfm(aead); local
246 (struct zynqmp_aead_tfm_ctx *)crypto_tfm_ctx(tfm);
276 struct crypto_tfm *tfm = crypto_aead_tfm(aead); local
278 (struct zynqmp_aead_tfm_ctx *)crypto_tfm_ctx(tfm);
312 struct crypto_tfm *tfm = crypto_aead_tfm(aead); local
314 (struct zynqmp_aead_tfm_ctx *)crypto_tfm_ctx(tfm);
340 struct crypto_tfm *tfm = crypto_aead_tfm(aead); local
342 (struct zynqmp_aead_tfm_ctx *)crypto_tfm_ctx(tfm);
/linux-master/arch/riscv/crypto/
H A Dchacha-riscv64-glue.c23 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
24 const struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm);

Completed in 167 milliseconds

<<111213141516171819