Home
last modified time | relevance | path

Searched refs:tfm (Results 226 – 250 of 481) sorted by relevance

12345678910>>...20

/openbmc/linux/drivers/crypto/ccp/
H A Dccp-crypto-aes-cmac.c27 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_aes_cmac_complete() local
29 unsigned int digest_size = crypto_ahash_digestsize(tfm); in ccp_aes_cmac_complete()
58 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_do_cmac_update() local
59 struct ccp_ctx *ctx = crypto_ahash_ctx_dma(tfm); in ccp_do_cmac_update()
63 crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); in ccp_do_cmac_update()
256 static int ccp_aes_cmac_setkey(struct crypto_ahash *tfm, const u8 *key, in ccp_aes_cmac_setkey() argument
259 struct ccp_ctx *ctx = crypto_ahash_ctx_dma(tfm); in ccp_aes_cmac_setkey()
261 ccp_crypto_ahash_alg(crypto_ahash_tfm(tfm)); in ccp_aes_cmac_setkey()
335 static int ccp_aes_cmac_cra_init(struct crypto_tfm *tfm) in ccp_aes_cmac_cra_init() argument
337 struct ccp_ctx *ctx = crypto_tfm_ctx_dma(tfm); in ccp_aes_cmac_cra_init()
[all …]
/openbmc/linux/arch/x86/crypto/
H A Daegis128-aesni-glue.c155 static int crypto_aegis128_aesni_setauthsize(struct crypto_aead *tfm, in crypto_aegis128_aesni_setauthsize() argument
170 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in crypto_aegis128_aesni_crypt() local
171 struct aegis_ctx *ctx = crypto_aegis128_aesni_ctx(tfm); in crypto_aegis128_aesni_crypt()
195 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in crypto_aegis128_aesni_encrypt() local
197 unsigned int authsize = crypto_aead_authsize(tfm); in crypto_aegis128_aesni_encrypt()
217 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in crypto_aegis128_aesni_decrypt() local
219 unsigned int authsize = crypto_aead_authsize(tfm); in crypto_aegis128_aesni_decrypt()
H A Dcrc32c-intel_glue.c96 u32 *mctx = crypto_shash_ctx(desc->tfm); in crc32c_intel_init()
137 return __crc32c_intel_finup(crypto_shash_ctx(desc->tfm), data, len, in crc32c_intel_digest()
141 static int crc32c_intel_cra_init(struct crypto_tfm *tfm) in crc32c_intel_cra_init() argument
143 u32 *key = crypto_tfm_ctx(tfm); in crc32c_intel_cra_init()
191 return __crc32c_pcl_intel_finup(crypto_shash_ctx(desc->tfm), data, len, in crc32c_pcl_intel_digest()
/openbmc/linux/crypto/
H A Daegis128-core.c390 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in crypto_aegis128_encrypt_generic() local
392 unsigned int authsize = crypto_aead_authsize(tfm); in crypto_aegis128_encrypt_generic()
393 struct aegis_ctx *ctx = crypto_aead_ctx(tfm); in crypto_aegis128_encrypt_generic()
413 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in crypto_aegis128_decrypt_generic() local
415 unsigned int authsize = crypto_aead_authsize(tfm); in crypto_aegis128_decrypt_generic()
417 struct aegis_ctx *ctx = crypto_aead_ctx(tfm); in crypto_aegis128_decrypt_generic()
451 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in crypto_aegis128_encrypt_simd() local
453 unsigned int authsize = crypto_aead_authsize(tfm); in crypto_aegis128_encrypt_simd()
454 struct aegis_ctx *ctx = crypto_aead_ctx(tfm); in crypto_aegis128_encrypt_simd()
476 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in crypto_aegis128_decrypt_simd() local
[all …]
H A Dinternal.h39 struct crypto_akcipher *tfm; member
132 int crypto_init_akcipher_ops_sig(struct crypto_tfm *tfm);
214 static inline struct crypto_tfm *crypto_tfm_get(struct crypto_tfm *tfm) in crypto_tfm_get() argument
216 return refcount_inc_not_zero(&tfm->refcnt) ? tfm : ERR_PTR(-EOVERFLOW); in crypto_tfm_get()
H A Dpcrypt.c37 struct crypto_aead *tfm) in pcrypt_tfm_ictx() argument
39 return aead_instance_ctx(aead_alg_instance(tfm)); in pcrypt_tfm_ictx()
175 static int pcrypt_aead_init_tfm(struct crypto_aead *tfm) in pcrypt_aead_init_tfm() argument
178 struct aead_instance *inst = aead_alg_instance(tfm); in pcrypt_aead_init_tfm()
180 struct pcrypt_aead_ctx *ctx = crypto_aead_ctx(tfm); in pcrypt_aead_init_tfm()
196 crypto_aead_set_reqsize(tfm, sizeof(struct pcrypt_request) + in pcrypt_aead_init_tfm()
203 static void pcrypt_aead_exit_tfm(struct crypto_aead *tfm) in pcrypt_aead_exit_tfm() argument
205 struct pcrypt_aead_ctx *ctx = crypto_aead_ctx(tfm); in pcrypt_aead_exit_tfm()
H A Decrdsa.c73 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in ecrdsa_verify() local
74 struct ecrdsa_ctx *ctx = akcipher_tfm_ctx(tfm); in ecrdsa_verify()
191 static int ecrdsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, in ecrdsa_set_pub_key() argument
194 struct ecrdsa_ctx *ctx = akcipher_tfm_ctx(tfm); in ecrdsa_set_pub_key()
252 static unsigned int ecrdsa_max_size(struct crypto_akcipher *tfm) in ecrdsa_max_size() argument
254 struct ecrdsa_ctx *ctx = akcipher_tfm_ctx(tfm); in ecrdsa_max_size()
263 static void ecrdsa_exit_tfm(struct crypto_akcipher *tfm) in ecrdsa_exit_tfm() argument
/openbmc/openbmc/meta-arm/meta-arm/recipes-bsp/trusted-firmware-m/
H A Dtrusted-firmware-m-scripts-native.inc22 cp -rf ${S}/bl2/ext/mcuboot/scripts/ ${D}/${libdir}/tfm-scripts
23 cp -rf ${S}/bl2/ext/mcuboot/*.pem ${D}/${libdir}/tfm-scripts
25 FILES:${PN} = "${libdir}/tfm-scripts"
/openbmc/linux/net/sunrpc/auth_gss/
H A Dgss_krb5_mech.c269 struct crypto_sync_skcipher *tfm; in gss_krb5_alloc_cipher_v2() local
271 tfm = crypto_alloc_sync_skcipher(cname, 0, 0); in gss_krb5_alloc_cipher_v2()
272 if (IS_ERR(tfm)) in gss_krb5_alloc_cipher_v2()
274 if (crypto_sync_skcipher_setkey(tfm, key->data, key->len)) { in gss_krb5_alloc_cipher_v2()
275 crypto_free_sync_skcipher(tfm); in gss_krb5_alloc_cipher_v2()
278 return tfm; in gss_krb5_alloc_cipher_v2()
284 struct crypto_ahash *tfm; in gss_krb5_alloc_hash_v2() local
287 if (IS_ERR(tfm)) in gss_krb5_alloc_hash_v2()
289 if (crypto_ahash_setkey(tfm, key->data, key->len)) { in gss_krb5_alloc_hash_v2()
290 crypto_free_ahash(tfm); in gss_krb5_alloc_hash_v2()
[all …]
/openbmc/linux/include/crypto/
H A Dctr.h24 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_ctr_encrypt_walk() local
25 int blocksize = crypto_skcipher_chunksize(tfm); in crypto_ctr_encrypt_walk()
50 fn(tfm, walk.iv, buf); in crypto_ctr_encrypt_walk()
/openbmc/linux/drivers/crypto/nx/
H A Dnx-aes-ecb.c21 static int ecb_aes_nx_set_key(struct crypto_skcipher *tfm, in ecb_aes_nx_set_key() argument
25 struct nx_crypto_ctx *nx_ctx = crypto_skcipher_ctx(tfm); in ecb_aes_nx_set_key()
56 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_aes_nx_crypt() local
57 struct nx_crypto_ctx *nx_ctx = crypto_skcipher_ctx(tfm); in ecb_aes_nx_crypt()
H A Dnx-aes-cbc.c21 static int cbc_aes_nx_set_key(struct crypto_skcipher *tfm, in cbc_aes_nx_set_key() argument
25 struct nx_crypto_ctx *nx_ctx = crypto_skcipher_ctx(tfm); in cbc_aes_nx_set_key()
56 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_aes_nx_crypt() local
57 struct nx_crypto_ctx *nx_ctx = crypto_skcipher_ctx(tfm); in cbc_aes_nx_crypt()
H A Dnx-aes-ccm.c23 static int ccm_aes_nx_set_key(struct crypto_aead *tfm, in ccm_aes_nx_set_key() argument
27 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(&tfm->base); in ccm_aes_nx_set_key()
53 static int ccm4309_aes_nx_set_key(struct crypto_aead *tfm, in ccm4309_aes_nx_set_key() argument
57 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(&tfm->base); in ccm4309_aes_nx_set_key()
66 return ccm_aes_nx_set_key(tfm, in_key, key_len); in ccm4309_aes_nx_set_key()
69 static int ccm_aes_nx_setauthsize(struct crypto_aead *tfm, in ccm_aes_nx_setauthsize() argument
88 static int ccm4309_aes_nx_setauthsize(struct crypto_aead *tfm, in ccm4309_aes_nx_setauthsize() argument
330 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(req->base.tfm); in ccm_nx_decrypt()
408 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(req->base.tfm); in ccm_nx_encrypt()
479 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(req->base.tfm); in ccm4309_aes_nx_encrypt()
[all …]
/openbmc/linux/net/mac80211/
H A Dkey.h91 struct crypto_aead *tfm; member
96 struct crypto_shash *tfm; member
102 struct crypto_aead *tfm; member
113 struct crypto_aead *tfm; member
/openbmc/linux/drivers/crypto/
H A Dqcom-rng.c76 static int qcom_rng_generate(struct crypto_rng *tfm, in qcom_rng_generate() argument
80 struct qcom_rng_ctx *ctx = crypto_rng_ctx(tfm); in qcom_rng_generate()
98 static int qcom_rng_seed(struct crypto_rng *tfm, const u8 *seed, in qcom_rng_seed() argument
133 static int qcom_rng_init(struct crypto_tfm *tfm) in qcom_rng_init() argument
135 struct qcom_rng_ctx *ctx = crypto_tfm_ctx(tfm); in qcom_rng_init()
/openbmc/linux/drivers/crypto/chelsio/
H A Dchcr_crypto.h158 static inline struct chcr_context *a_ctx(struct crypto_aead *tfm) in a_ctx() argument
160 return crypto_aead_ctx(tfm); in a_ctx()
163 static inline struct chcr_context *c_ctx(struct crypto_skcipher *tfm) in c_ctx() argument
165 return crypto_skcipher_ctx(tfm); in c_ctx()
168 static inline struct chcr_context *h_ctx(struct crypto_ahash *tfm) in h_ctx() argument
170 return crypto_tfm_ctx(crypto_ahash_tfm(tfm)); in h_ctx()
/openbmc/linux/drivers/crypto/ccree/
H A Dcc_hash.c307 u32 digestsize = crypto_ahash_digestsize(tfm); in cc_digest_complete()
327 u32 digestsize = crypto_ahash_digestsize(tfm); in cc_hash_complete()
347 u32 digestsize = crypto_ahash_digestsize(tfm); in cc_fin_result()
370 u32 digestsize = crypto_ahash_digestsize(tfm); in cc_fin_hmac()
423 u32 digestsize = crypto_ahash_digestsize(tfm); in cc_hash_digest()
637 u32 digestsize = crypto_ahash_digestsize(tfm); in cc_do_finup()
1120 static int cc_cra_init(struct crypto_tfm *tfm) in cc_cra_init() argument
1137 ctx->hash_len = cc_get_hash_len(tfm); in cc_cra_init()
1141 static void cc_cra_exit(struct crypto_tfm *tfm) in cc_cra_exit() argument
1229 u32 digestsize = crypto_ahash_digestsize(tfm); in cc_mac_final()
[all …]
/openbmc/linux/drivers/crypto/starfive/
H A Djh7110-hash.c273 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in starfive_hash_init() local
275 struct starfive_cryp_ctx *ctx = crypto_ahash_ctx(tfm); in starfive_hash_init()
291 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in starfive_hash_update() local
292 struct starfive_cryp_ctx *ctx = crypto_ahash_ctx(tfm); in starfive_hash_update()
308 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in starfive_hash_final() local
325 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in starfive_hash_finup() local
342 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in starfive_hash_digest_fb() local
357 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in starfive_hash_digest() local
368 rctx->digsize = crypto_ahash_digestsize(tfm); in starfive_hash_digest()
381 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in starfive_hash_export() local
[all …]
/openbmc/linux/include/crypto/internal/
H A Dblake2b.h72 static inline int crypto_blake2b_setkey(struct crypto_shash *tfm, in crypto_blake2b_setkey() argument
75 struct blake2b_tfm_ctx *tctx = crypto_shash_ctx(tfm); in crypto_blake2b_setkey()
88 const struct blake2b_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in crypto_blake2b_init()
90 unsigned int outlen = crypto_shash_digestsize(desc->tfm); in crypto_blake2b_init()
H A Dsig.h13 static inline void *crypto_sig_ctx(struct crypto_sig *tfm) in crypto_sig_ctx() argument
15 return crypto_tfm_ctx(&tfm->base); in crypto_sig_ctx()
/openbmc/linux/arch/sparc/crypto/
H A Dcrc32c_glue.c44 u32 *mctx = crypto_shash_ctx(desc->tfm); in crc32c_sparc64_init()
106 return __crc32c_sparc64_finup(crypto_shash_ctx(desc->tfm), data, len, in crc32c_sparc64_digest()
110 static int crc32c_sparc64_cra_init(struct crypto_tfm *tfm) in crc32c_sparc64_cra_init() argument
112 u32 *key = crypto_tfm_ctx(tfm); in crc32c_sparc64_cra_init()
/openbmc/linux/drivers/crypto/intel/qat/qat_common/
H A Dqat_asym_algs.c219 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in qat_dh_compute_value() local
220 struct qat_dh_ctx *ctx = kpp_tfm_ctx(tfm); in qat_dh_compute_value()
449 struct qat_dh_ctx *ctx = kpp_tfm_ctx(tfm); in qat_dh_set_secret()
482 struct qat_dh_ctx *ctx = kpp_tfm_ctx(tfm); in qat_dh_max_size()
487 static int qat_dh_init_tfm(struct crypto_kpp *tfm) in qat_dh_init_tfm() argument
489 struct qat_dh_ctx *ctx = kpp_tfm_ctx(tfm); in qat_dh_init_tfm()
506 struct qat_dh_ctx *ctx = kpp_tfm_ctx(tfm); in qat_dh_exit_tfm()
648 struct qat_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); in qat_rsa_enc()
782 struct qat_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); in qat_rsa_dec()
1208 return qat_rsa_setkey(tfm, key, keylen, false); in qat_rsa_setpubkey()
[all …]
/openbmc/linux/fs/ubifs/
H A Dauth.c73 hash_desc->tfm = c->hash_tfm; in ubifs_prepare_auth_node()
91 struct crypto_shash *tfm) in ubifs_get_desc() argument
99 desc = kmalloc(sizeof(*desc) + crypto_shash_descsize(tfm), GFP_KERNEL); in ubifs_get_desc()
103 desc->tfm = tfm; in ubifs_get_desc()
398 shash->tfm = c->hmac_tfm; in ubifs_node_calc_hmac()
481 state = kmalloc(crypto_shash_descsize(src->tfm), GFP_NOFS); in __ubifs_shash_copy_state()
518 shash->tfm = c->hmac_tfm; in ubifs_hmac_wkm()
/openbmc/linux/drivers/crypto/amlogic/
H A Damlogic-gxl.h155 int meson_aes_setkey(struct crypto_skcipher *tfm, const u8 *key,
157 int meson_cipher_init(struct crypto_tfm *tfm);
158 void meson_cipher_exit(struct crypto_tfm *tfm);
/openbmc/linux/drivers/crypto/stm32/
H A Dstm32-crc32.c72 static int stm32_crc32_cra_init(struct crypto_tfm *tfm) in stm32_crc32_cra_init() argument
74 struct stm32_crc_ctx *mctx = crypto_tfm_ctx(tfm); in stm32_crc32_cra_init()
81 static int stm32_crc32c_cra_init(struct crypto_tfm *tfm) in stm32_crc32c_cra_init() argument
83 struct stm32_crc_ctx *mctx = crypto_tfm_ctx(tfm); in stm32_crc32c_cra_init()
90 static int stm32_crc_setkey(struct crypto_shash *tfm, const u8 *key, in stm32_crc_setkey() argument
93 struct stm32_crc_ctx *mctx = crypto_shash_ctx(tfm); in stm32_crc_setkey()
118 struct stm32_crc_ctx *mctx = crypto_shash_ctx(desc->tfm); in stm32_crc_init()
151 struct stm32_crc_ctx *mctx = crypto_shash_ctx(desc->tfm); in burst_update()
245 struct stm32_crc_ctx *mctx = crypto_shash_ctx(desc->tfm); in stm32_crc_final()

12345678910>>...20