Home
last modified time | relevance | path

Searched refs:tfm (Results 251 – 275 of 481) sorted by relevance

1...<<11121314151617181920

/openbmc/linux/crypto/
H A Dsm2.c380 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in sm2_verify() local
381 struct mpi_ec_ctx *ec = akcipher_tfm_ctx(tfm); in sm2_verify()
420 static int sm2_set_pub_key(struct crypto_akcipher *tfm, in sm2_set_pub_key() argument
423 struct mpi_ec_ctx *ec = akcipher_tfm_ctx(tfm); in sm2_set_pub_key()
447 static unsigned int sm2_max_size(struct crypto_akcipher *tfm) in sm2_max_size() argument
453 static int sm2_init_tfm(struct crypto_akcipher *tfm) in sm2_init_tfm() argument
455 struct mpi_ec_ctx *ec = akcipher_tfm_ctx(tfm); in sm2_init_tfm()
460 static void sm2_exit_tfm(struct crypto_akcipher *tfm) in sm2_exit_tfm() argument
462 struct mpi_ec_ctx *ec = akcipher_tfm_ctx(tfm); in sm2_exit_tfm()
H A Dchacha_generic.c42 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_chacha_crypt() local
43 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); in crypto_chacha_crypt()
50 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_xchacha_crypt() local
51 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); in crypto_xchacha_crypt()
H A Dblowfish_generic.c37 static void bf_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in bf_encrypt() argument
39 struct bf_ctx *ctx = crypto_tfm_ctx(tfm); in bf_encrypt()
69 static void bf_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in bf_decrypt() argument
71 struct bf_ctx *ctx = crypto_tfm_ctx(tfm); in bf_decrypt()
H A Danubis.c462 static int anubis_setkey(struct crypto_tfm *tfm, const u8 *in_key, in anubis_setkey() argument
465 struct anubis_ctx *ctx = crypto_tfm_ctx(tfm); in anubis_setkey()
660 static void anubis_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in anubis_encrypt() argument
662 struct anubis_ctx *ctx = crypto_tfm_ctx(tfm); in anubis_encrypt()
666 static void anubis_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in anubis_decrypt() argument
668 struct anubis_ctx *ctx = crypto_tfm_ctx(tfm); in anubis_decrypt()
H A Daes_generic.c1136 int crypto_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in crypto_aes_set_key() argument
1139 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_aes_set_key()
1176 static void crypto_aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in crypto_aes_encrypt() argument
1178 const struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_aes_encrypt()
1246 static void crypto_aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in crypto_aes_decrypt() argument
1248 const struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_aes_decrypt()
H A Dseed.c327 static int seed_set_key(struct crypto_tfm *tfm, const u8 *in_key, in seed_set_key() argument
330 struct seed_ctx *ctx = crypto_tfm_ctx(tfm); in seed_set_key()
364 static void seed_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in seed_encrypt() argument
366 const struct seed_ctx *ctx = crypto_tfm_ctx(tfm); in seed_encrypt()
402 static void seed_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in seed_decrypt() argument
404 const struct seed_ctx *ctx = crypto_tfm_ctx(tfm); in seed_decrypt()
H A Dgcm.c146 static int crypto_gcm_setauthsize(struct crypto_aead *tfm, in crypto_gcm_setauthsize() argument
519 static int crypto_gcm_init_tfm(struct crypto_aead *tfm) in crypto_gcm_init_tfm() argument
521 struct aead_instance *inst = aead_alg_instance(tfm); in crypto_gcm_init_tfm()
523 struct crypto_gcm_ctx *ctx = crypto_aead_ctx(tfm); in crypto_gcm_init_tfm()
541 align = crypto_aead_alignmask(tfm); in crypto_gcm_init_tfm()
543 crypto_aead_set_reqsize(tfm, in crypto_gcm_init_tfm()
559 struct crypto_gcm_ctx *ctx = crypto_aead_ctx(tfm); in crypto_gcm_exit_tfm()
789 struct aead_instance *inst = aead_alg_instance(tfm); in crypto_rfc4106_init_tfm()
804 tfm, in crypto_rfc4106_init_tfm()
987 struct aead_instance *inst = aead_alg_instance(tfm); in crypto_rfc4543_init_tfm()
[all …]
H A Dkpp.c40 static void crypto_kpp_exit_tfm(struct crypto_tfm *tfm) in crypto_kpp_exit_tfm() argument
42 struct crypto_kpp *kpp = __crypto_kpp_tfm(tfm); in crypto_kpp_exit_tfm()
48 static int crypto_kpp_init_tfm(struct crypto_tfm *tfm) in crypto_kpp_init_tfm() argument
50 struct crypto_kpp *kpp = __crypto_kpp_tfm(tfm); in crypto_kpp_init_tfm()
H A Dtwofish_generic.c95 static void twofish_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in twofish_encrypt() argument
97 struct twofish_ctx *ctx = crypto_tfm_ctx(tfm); in twofish_encrypt()
130 static void twofish_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in twofish_decrypt() argument
132 struct twofish_ctx *ctx = crypto_tfm_ctx(tfm); in twofish_decrypt()
/openbmc/linux/drivers/crypto/virtio/
H A Dvirtio_crypto_skcipher_algs.c20 struct crypto_skcipher *tfm; member
281 static int virtio_crypto_skcipher_setkey(struct crypto_skcipher *tfm, in virtio_crypto_skcipher_setkey() argument
285 struct virtio_crypto_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in virtio_crypto_skcipher_setkey()
327 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __virtio_crypto_skcipher_do_req() local
330 unsigned int ivsize = crypto_skcipher_ivsize(tfm); in __virtio_crypto_skcipher_do_req()
516 static int virtio_crypto_skcipher_init(struct crypto_skcipher *tfm) in virtio_crypto_skcipher_init() argument
518 struct virtio_crypto_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in virtio_crypto_skcipher_init()
520 crypto_skcipher_set_reqsize(tfm, sizeof(struct virtio_crypto_sym_request)); in virtio_crypto_skcipher_init()
521 ctx->tfm = tfm; in virtio_crypto_skcipher_init()
526 static void virtio_crypto_skcipher_exit(struct crypto_skcipher *tfm) in virtio_crypto_skcipher_exit() argument
[all …]
/openbmc/linux/arch/powerpc/crypto/
H A Daes-gcm-p10-glue.c169 static int set_authsize(struct crypto_aead *tfm, unsigned int authsize) in set_authsize() argument
190 struct crypto_tfm *tfm = crypto_aead_tfm(aead); in p10_aes_gcm_setkey() local
191 struct p10_aes_gcm_ctx *ctx = crypto_tfm_ctx(tfm); in p10_aes_gcm_setkey()
203 struct crypto_tfm *tfm = req->base.tfm; in p10_aes_gcm_crypt() local
204 struct p10_aes_gcm_ctx *ctx = crypto_tfm_ctx(tfm); in p10_aes_gcm_crypt()
218 unsigned long auth_tag_len = crypto_aead_authsize(__crypto_aead_cast(tfm)); in p10_aes_gcm_crypt()
H A Dcrc32c-vpmsum_glue.c57 static int crc32c_vpmsum_cra_init(struct crypto_tfm *tfm) in crc32c_vpmsum_cra_init() argument
59 u32 *key = crypto_tfm_ctx(tfm); in crc32c_vpmsum_cra_init()
84 u32 *mctx = crypto_shash_ctx(desc->tfm); in crc32c_vpmsum_init()
128 return __crc32c_vpmsum_finup(crypto_shash_ctx(desc->tfm), data, len, in crc32c_vpmsum_digest()
/openbmc/linux/arch/mips/crypto/
H A Dcrc32-mips.c168 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm);
181 static int chksum_setkey(struct crypto_shash *tfm, const u8 *key, argument
184 struct chksum_ctx *mctx = crypto_shash_ctx(tfm);
257 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm);
265 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm);
270 static int chksum_cra_init(struct crypto_tfm *tfm) argument
272 struct chksum_ctx *mctx = crypto_tfm_ctx(tfm);
H A Dchacha-glue.c56 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in chacha_mips() local
57 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); in chacha_mips()
64 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xchacha_mips() local
65 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); in xchacha_mips()
/openbmc/linux/tools/testing/crypto/chacha20-s390/
H A Dtest-cipher.c45 struct crypto_skcipher *tfm; member
169 sk.tfm = skcipher; in test_skcipher()
223 crypto_skcipher_blocksize(sk.tfm), in test_skcipher()
224 crypto_skcipher_alg(sk.tfm)->walksize, in test_skcipher()
225 crypto_skcipher_ivsize(sk.tfm), in test_skcipher()
226 crypto_skcipher_alignmask(sk.tfm)); in test_skcipher()
/openbmc/linux/drivers/crypto/starfive/
H A Djh7110-aes.c551 static int starfive_aes_init_tfm(struct crypto_skcipher *tfm) in starfive_aes_init_tfm() argument
553 struct starfive_cryp_ctx *ctx = crypto_skcipher_ctx(tfm); in starfive_aes_init_tfm()
621 static int starfive_aes_aead_init_tfm(struct crypto_aead *tfm) in starfive_aes_aead_init_tfm() argument
623 struct starfive_cryp_ctx *ctx = crypto_aead_ctx(tfm); in starfive_aes_aead_init_tfm()
625 struct crypto_tfm *aead = crypto_aead_tfm(tfm); in starfive_aes_aead_init_tfm()
649 struct starfive_cryp_ctx *ctx = crypto_aead_ctx(tfm); in starfive_aes_aead_exit_tfm()
656 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in starfive_aes_crypt() local
657 struct starfive_cryp_ctx *ctx = crypto_skcipher_ctx(tfm); in starfive_aes_crypt()
701 struct starfive_cryp_ctx *ctx = crypto_skcipher_ctx(tfm); in starfive_aes_setkey()
720 struct starfive_cryp_ctx *ctx = crypto_aead_ctx(tfm); in starfive_aes_aead_setkey()
[all …]
/openbmc/linux/arch/x86/crypto/
H A Dcrc32-pclmul_glue.c83 static int crc32_pclmul_cra_init(struct crypto_tfm *tfm) in crc32_pclmul_cra_init() argument
85 u32 *key = crypto_tfm_ctx(tfm); in crc32_pclmul_cra_init()
105 u32 *mctx = crypto_shash_ctx(desc->tfm); in crc32_pclmul_init()
147 return __crc32_pclmul_finup(crypto_shash_ctx(desc->tfm), data, len, in crc32_pclmul_digest()
/openbmc/linux/drivers/crypto/xilinx/
H A Dzynqmp-aes-gcm.c244 struct crypto_tfm *tfm = crypto_aead_tfm(aead); in zynqmp_aes_aead_setkey() local
246 (struct zynqmp_aead_tfm_ctx *)crypto_tfm_ctx(tfm); in zynqmp_aes_aead_setkey()
276 struct crypto_tfm *tfm = crypto_aead_tfm(aead); in zynqmp_aes_aead_setauthsize() local
278 (struct zynqmp_aead_tfm_ctx *)crypto_tfm_ctx(tfm); in zynqmp_aes_aead_setauthsize()
312 struct crypto_tfm *tfm = crypto_aead_tfm(aead); in zynqmp_aes_aead_init() local
314 (struct zynqmp_aead_tfm_ctx *)crypto_tfm_ctx(tfm); in zynqmp_aes_aead_init()
340 struct crypto_tfm *tfm = crypto_aead_tfm(aead); in zynqmp_aes_aead_exit() local
342 (struct zynqmp_aead_tfm_ctx *)crypto_tfm_ctx(tfm); in zynqmp_aes_aead_exit()
/openbmc/linux/drivers/crypto/marvell/cesa/
H A Dhash.c460 struct mv_cesa_hash_ctx *ctx = crypto_tfm_ctx(tfm); in mv_cesa_ahash_cra_init()
464 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), in mv_cesa_ahash_cra_init()
1187 struct crypto_ahash *tfm; in mv_cesa_ahmac_setkey() local
1193 tfm = crypto_alloc_ahash(hash_alg_name, 0, 0); in mv_cesa_ahmac_setkey()
1194 if (IS_ERR(tfm)) in mv_cesa_ahmac_setkey()
1195 return PTR_ERR(tfm); in mv_cesa_ahmac_setkey()
1197 req = ahash_request_alloc(tfm, GFP_KERNEL); in mv_cesa_ahmac_setkey()
1203 crypto_ahash_clear_flags(tfm, ~0); in mv_cesa_ahmac_setkey()
1230 crypto_free_ahash(tfm); in mv_cesa_ahmac_setkey()
1237 struct mv_cesa_hmac_ctx *ctx = crypto_tfm_ctx(tfm); in mv_cesa_ahmac_cra_init()
[all …]
/openbmc/linux/include/crypto/
H A Dxts.h11 static inline int xts_verify_key(struct crypto_skcipher *tfm, in xts_verify_key() argument
32 if ((fips_enabled || (crypto_skcipher_get_flags(tfm) & in xts_verify_key()
/openbmc/linux/arch/arm64/crypto/
H A Dpolyval-ce-glue.c72 static int polyval_arm64_setkey(struct crypto_shash *tfm, in polyval_arm64_setkey() argument
75 struct polyval_tfm_ctx *tctx = crypto_shash_ctx(tfm); in polyval_arm64_setkey()
105 const struct polyval_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in polyval_arm64_update()
146 const struct polyval_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in polyval_arm64_final()
H A Dghash-ce-glue.c127 struct ghash_key *key = crypto_shash_ctx(desc->tfm); in ghash_update()
164 struct ghash_key *key = crypto_shash_ctx(desc->tfm); in ghash_final()
189 static int ghash_setkey(struct crypto_shash *tfm, in ghash_setkey() argument
192 struct ghash_key *key = crypto_shash_ctx(tfm); in ghash_setkey()
232 static int gcm_aes_setkey(struct crypto_aead *tfm, const u8 *inkey, in gcm_aes_setkey() argument
235 struct gcm_aes_ctx *ctx = crypto_aead_ctx(tfm); in gcm_aes_setkey()
264 static int gcm_aes_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in gcm_aes_setauthsize() argument
480 static int rfc4106_setkey(struct crypto_aead *tfm, const u8 *inkey, in rfc4106_setkey() argument
483 struct gcm_aes_ctx *ctx = crypto_aead_ctx(tfm); in rfc4106_setkey()
487 err = gcm_aes_setkey(tfm, inkey, keylen); in rfc4106_setkey()
[all …]
/openbmc/linux/net/mac80211/
H A Daes_gmac.h17 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce,
19 void ieee80211_aes_gmac_key_free(struct crypto_aead *tfm);
/openbmc/linux/include/crypto/internal/
H A Dgeniv.h24 int aead_init_geniv(struct crypto_aead *tfm);
25 void aead_exit_geniv(struct crypto_aead *tfm);
/openbmc/linux/arch/arm/crypto/
H A Dcrc32-ce-glue.c36 static int crc32_cra_init(struct crypto_tfm *tfm) in crc32_cra_init() argument
38 u32 *key = crypto_tfm_ctx(tfm); in crc32_cra_init()
44 static int crc32c_cra_init(struct crypto_tfm *tfm) in crc32c_cra_init() argument
46 u32 *key = crypto_tfm_ctx(tfm); in crc32c_cra_init()
65 u32 *mctx = crypto_shash_ctx(desc->tfm); in crc32_init()

1...<<11121314151617181920