Home
last modified time | relevance | path

Searched refs:tfm (Results 351 – 375 of 481) sorted by relevance

1...<<11121314151617181920

/openbmc/linux/crypto/
H A Dcast5_generic.c353 static void cast5_encrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) in cast5_encrypt() argument
355 __cast5_encrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); in cast5_encrypt()
395 static void cast5_decrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) in cast5_decrypt() argument
397 __cast5_decrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); in cast5_decrypt()
475 int cast5_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int key_len) in cast5_setkey() argument
477 struct cast5_ctx *c = crypto_tfm_ctx(tfm); in cast5_setkey()
H A Dblowfish_common.c345 int blowfish_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) in blowfish_setkey() argument
347 struct bf_ctx *ctx = crypto_tfm_ctx(tfm); in blowfish_setkey()
H A Dcompress.h18 int crypto_init_scomp_ops_async(struct crypto_tfm *tfm);
/openbmc/linux/drivers/crypto/stm32/
H A Dstm32-cryp.c831 static int stm32_cryp_init_tfm(struct crypto_skcipher *tfm) in stm32_cryp_init_tfm() argument
840 static int stm32_cryp_aes_aead_init(struct crypto_aead *tfm) in stm32_cryp_aes_aead_init() argument
842 tfm->reqsize = sizeof(struct stm32_cryp_reqctx); in stm32_cryp_aes_aead_init()
879 struct stm32_cryp_ctx *ctx = crypto_skcipher_ctx(tfm); in stm32_cryp_setkey()
894 return stm32_cryp_setkey(tfm, key, keylen); in stm32_cryp_aes_setkey()
900 return verify_skcipher_des_key(tfm, key) ?: in stm32_cryp_des_setkey()
901 stm32_cryp_setkey(tfm, key, keylen); in stm32_cryp_des_setkey()
907 return verify_skcipher_des3_key(tfm, key) ?: in stm32_cryp_tdes_setkey()
908 stm32_cryp_setkey(tfm, key, keylen); in stm32_cryp_tdes_setkey()
914 struct stm32_cryp_ctx *ctx = crypto_aead_ctx(tfm); in stm32_cryp_aes_aead_setkey()
[all …]
/openbmc/linux/arch/x86/crypto/
H A Dcamellia_aesni_avx2_glue.c27 static int camellia_setkey(struct crypto_skcipher *tfm, const u8 *key, in camellia_setkey() argument
30 return __camellia_setkey(crypto_skcipher_ctx(tfm), key, keylen); in camellia_setkey()
H A Dchacha_glue.c200 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in chacha_simd() local
201 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); in chacha_simd()
208 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xchacha_simd() local
209 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); in xchacha_simd()
H A Dsm4_aesni_avx2_glue.c29 static int sm4_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, in sm4_skcipher_setkey() argument
32 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_skcipher_setkey()
H A Dcurve25519-x86_64.c1615 static int curve25519_set_secret(struct crypto_kpp *tfm, const void *buf, in curve25519_set_secret() argument
1618 u8 *secret = kpp_tfm_ctx(tfm); in curve25519_set_secret()
1632 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in curve25519_generate_public_key() local
1633 const u8 *secret = kpp_tfm_ctx(tfm); in curve25519_generate_public_key()
1654 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in curve25519_compute_shared_secret() local
1655 const u8 *secret = kpp_tfm_ctx(tfm); in curve25519_compute_shared_secret()
1682 static unsigned int curve25519_max_size(struct crypto_kpp *tfm) in curve25519_max_size() argument
/openbmc/linux/arch/arm/crypto/
H A Dchacha-glue.c145 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in do_chacha() local
146 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); in do_chacha()
163 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in do_xchacha() local
164 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); in do_xchacha()
/openbmc/linux/drivers/crypto/hisilicon/zip/
H A Dzip_crypto.c446 struct hisi_zip_ctx *ctx = crypto_tfm_ctx(acomp_req->base.tfm); in hisi_zip_acompress()
476 struct hisi_zip_ctx *ctx = crypto_tfm_ctx(acomp_req->base.tfm); in hisi_zip_adecompress()
700 static int hisi_zip_acomp_init(struct crypto_acomp *tfm) in hisi_zip_acomp_init() argument
702 const char *alg_name = crypto_tfm_alg_name(&tfm->base); in hisi_zip_acomp_init()
703 struct hisi_zip_ctx *ctx = crypto_tfm_ctx(&tfm->base); in hisi_zip_acomp_init()
707 ret = hisi_zip_ctx_init(ctx, COMP_NAME_TO_TYPE(alg_name), tfm->base.node); in hisi_zip_acomp_init()
738 static void hisi_zip_acomp_exit(struct crypto_acomp *tfm) in hisi_zip_acomp_exit() argument
740 struct hisi_zip_ctx *ctx = crypto_tfm_ctx(&tfm->base); in hisi_zip_acomp_exit()
/openbmc/linux/kernel/
H A Dkexec_file.c679 struct crypto_shash *tfm; in kexec_calculate_store_digests() local
694 tfm = crypto_alloc_shash("sha256", 0, 0); in kexec_calculate_store_digests()
695 if (IS_ERR(tfm)) { in kexec_calculate_store_digests()
696 ret = PTR_ERR(tfm); in kexec_calculate_store_digests()
700 desc_size = crypto_shash_descsize(tfm) + sizeof(*desc); in kexec_calculate_store_digests()
714 desc->tfm = tfm; in kexec_calculate_store_digests()
794 kfree(tfm); in kexec_calculate_store_digests()
/openbmc/linux/arch/s390/crypto/
H A Dchacha-glue.c36 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in chacha20_s390() local
37 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); in chacha20_s390()
/openbmc/linux/arch/arm64/crypto/
H A Daes-ce-setkey.h3 int ce_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key,
H A Dsm4-ce-gcm-glue.c43 static int gcm_setkey(struct crypto_aead *tfm, const u8 *key, in gcm_setkey() argument
46 struct sm4_gcm_ctx *ctx = crypto_aead_ctx(tfm); in gcm_setkey()
61 static int gcm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in gcm_setauthsize() argument
H A Dsha3-ce-glue.c38 unsigned int digest_size = crypto_shash_digestsize(desc->tfm); in sha3_update()
84 unsigned int digest_size = crypto_shash_digestsize(desc->tfm); in sha3_final()
/openbmc/linux/include/crypto/
H A Dblowfish.h21 int blowfish_setkey(struct crypto_tfm *tfm, const u8 *key,
H A Dtwofish.h23 int twofish_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int key_len);
H A Dcast5.h19 int cast5_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen);
H A Dcast6.h19 int cast6_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen);
H A Dserpent.h23 int serpent_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen);
/openbmc/linux/fs/crypto/
H A Dcrypto.c111 struct crypto_skcipher *tfm = ci->ci_enc_key.tfm; in fscrypt_crypt_block() local
121 req = skcipher_request_alloc(tfm, gfp_flags); in fscrypt_crypt_block()
/openbmc/linux/Documentation/crypto/
H A Dapi-intro.rst60 struct crypto_ahash *tfm;
63 tfm = crypto_alloc_ahash("md5", 0, CRYPTO_ALG_ASYNC);
64 if (IS_ERR(tfm))
69 req = ahash_request_alloc(tfm, GFP_ATOMIC);
80 crypto_free_ahash(tfm);
/openbmc/linux/drivers/target/iscsi/
H A Discsi_target_login.c80 struct crypto_ahash *tfm; in iscsi_login_setup_crypto() local
87 tfm = crypto_alloc_ahash("crc32c", 0, CRYPTO_ALG_ASYNC); in iscsi_login_setup_crypto()
88 if (IS_ERR(tfm)) { in iscsi_login_setup_crypto()
93 conn->conn_rx_hash = ahash_request_alloc(tfm, GFP_KERNEL); in iscsi_login_setup_crypto()
96 crypto_free_ahash(tfm); in iscsi_login_setup_crypto()
101 conn->conn_tx_hash = ahash_request_alloc(tfm, GFP_KERNEL); in iscsi_login_setup_crypto()
106 crypto_free_ahash(tfm); in iscsi_login_setup_crypto()
1170 struct crypto_ahash *tfm; in iscsi_target_login_sess_out() local
1172 tfm = crypto_ahash_reqtfm(conn->conn_rx_hash); in iscsi_target_login_sess_out()
1174 crypto_free_ahash(tfm); in iscsi_target_login_sess_out()
/openbmc/linux/net/mac80211/
H A Dwpa.c483 return ieee80211_aes_ccm_encrypt(key->u.ccmp.tfm, b_0, aad, pos, len, in ccmp_encrypt_skb()
563 key->u.ccmp.tfm, b_0, aad, in ieee80211_crypto_ccmp_decrypt()
684 return ieee80211_aes_gcm_encrypt(key->u.gcmp.tfm, j_0, aad, pos, len, in gcmp_encrypt_skb()
759 key->u.gcmp.tfm, j_0, aad, in ieee80211_crypto_gcmp_decrypt()
862 ieee80211_aes_cmac(key->u.aes_cmac.tfm, aad, in ieee80211_crypto_aes_cmac_encrypt()
905 ieee80211_aes_cmac_256(key->u.aes_cmac.tfm, aad, in ieee80211_crypto_aes_cmac_256_encrypt()
945 ieee80211_aes_cmac(key->u.aes_cmac.tfm, aad, in ieee80211_crypto_aes_cmac_decrypt()
995 ieee80211_aes_cmac_256(key->u.aes_cmac.tfm, aad, in ieee80211_crypto_aes_cmac_256_decrypt()
1053 if (ieee80211_aes_gmac(key->u.aes_gmac.tfm, aad, nonce, in ieee80211_crypto_aes_gmac_encrypt()
1101 if (ieee80211_aes_gmac(key->u.aes_gmac.tfm, aad, nonce, in ieee80211_crypto_aes_gmac_decrypt()
/openbmc/linux/drivers/crypto/amcc/
H A Dcrypto4xx_core.c638 switch (crypto_tfm_alg_type(pd_uinfo->async_req->tfm)) { in crypto4xx_pd_done()
918 ((crypto_tfm_alg_type(req->tfm) == CRYPTO_ALG_TYPE_AHASH) || in crypto4xx_build_pd()
919 (crypto_tfm_alg_type(req->tfm) == CRYPTO_ALG_TYPE_AEAD) ? in crypto4xx_build_pd()
976 static int crypto4xx_aead_init(struct crypto_aead *tfm) in crypto4xx_aead_init() argument
978 struct aead_alg *alg = crypto_aead_alg(tfm); in crypto4xx_aead_init()
979 struct crypto4xx_ctx *ctx = crypto_aead_ctx(tfm); in crypto4xx_aead_init()
990 crypto_aead_set_reqsize(tfm, max(sizeof(struct aead_request) + 32 + in crypto4xx_aead_init()
996 static void crypto4xx_aead_exit(struct crypto_aead *tfm) in crypto4xx_aead_exit() argument
998 struct crypto4xx_ctx *ctx = crypto_aead_ctx(tfm); in crypto4xx_aead_exit()
1162 static int crypto4xx_prng_generate(struct crypto_rng *tfm, in crypto4xx_prng_generate() argument
[all …]

1...<<11121314151617181920