Home
last modified time | relevance | path

Searched full:dh (Results 1 – 25 of 53) sorted by relevance

123

/optee_os/core/drivers/crypto/crypto_api/acipher/
H A Ddh.c5 * Crypto DH interface implementation to enable HW driver.
16 struct drvcrypt_dh *dh = NULL; in crypto_acipher_alloc_dh_keypair() local
24 dh = drvcrypt_get_ops(CRYPTO_DH); in crypto_acipher_alloc_dh_keypair()
25 if (dh) in crypto_acipher_alloc_dh_keypair()
26 ret = dh->alloc_keypair(key, size_bits); in crypto_acipher_alloc_dh_keypair()
28 CRYPTO_TRACE("DH Keypair (%zu bits) alloc ret = 0x%" PRIx32, size_bits, in crypto_acipher_alloc_dh_keypair()
37 struct drvcrypt_dh *dh = NULL; in crypto_acipher_gen_dh_key() local
47 dh = drvcrypt_get_ops(CRYPTO_DH); in crypto_acipher_gen_dh_key()
48 if (dh) in crypto_acipher_gen_dh_key()
49 ret = dh->gen_keypair(key, q, xbits); in crypto_acipher_gen_dh_key()
[all …]
H A Dsub.mk3 srcs-$(CFG_CRYPTO_DRV_DH) += dh.c
/optee_os/core/lib/libtomcrypt/src/pk/dh/
H A Ddh.c13 "DH-768",
24 "DH-1024",
37 "DH-1536",
52 "DH-2048",
70 "DH-3072",
93 "DH-4096",
122 "DH-6144",
161 "DH-8192",
217 Returns the DH group size (octets) for given key
218 @param key The DH key to get the size of
H A Ddh_set.c9 Import DH key parts p and g from raw numbers
11 @param p DH's p (prime)
12 @param plen DH's p's length
13 @param g DH's g (group)
14 @param glen DH's g's length
44 Import DH key parts p and g from built-in DH groups
46 @param groupsize The size of the DH group to use
47 @param key [out] Where the newly created DH key will be stored
75 Import DH public or private key part from raw numbers
H A Ddh_shared_secret.c9 Create a DH shared secret.
10 @param private_key The private DH key in the pair
11 @param public_key The public DH key in the pair
33 /* same DH group? */ in dh_shared_secret()
H A Ddh_set_pg_dhparam.c9 Import DH key parts p and g from dhparam
13 @param dhparam The DH param DER encoded data
15 @param key [out] Where the newly created DH key will be stored
H A Ddh_export_key.c9 Binary export a DH key to a buffer
11 @param outlen [in/out] The max size and resulting size of the DH key
H A Ddh_export.c9 Export a DH key to a binary packet
11 @param outlen [in/out] The max size and resulting size of the DH key
H A Ddh_free.c9 Free the allocated ram for a DH key
H A Ddh_make_key.c34 * Make a DH key [private key pair]
42 * @param key [in/out] Where the newly created DH key will be stored
H A Ddh_check_pubkey.c9 Check DH public key (INTERNAL ONLY, not part of public API)
/optee_os/core/arch/arm/dts/
H A Dstm32mp157c-dhcom-pdk2.dts4 * Copyright (C) 2022 DH electronics GmbH
19 model = "DH electronics STM32MP157C DHCOM Premium Developer Kit (2)";
20 compatible = "dh,stm32mp157c-dhcom-pdk2", "dh,stm32mp157c-dhcom-som",
H A Dstm32mp157a-dhcor-avenger96.dts22 compatible = "arrow,stm32mp157a-avenger96", "dh,stm32mp157a-dhcor-som",
/optee_os/core/drivers/crypto/caam/acipher/
H A Dcaam_dh.c5 * Implementation of DH
29 * Definition of the local DH Keypair
39 * Free local DH keypair
41 * @key DH keypair
52 * Convert Crypto DH Key p and g bignumbers to local buffers
67 DH_TRACE("DH Convert Key Parameters (p,g) size %zu bytes", p_size); in do_keypair_conv_p_g()
91 * Convert Crypto DH Private Key to a local Private Key (via keypair object)
106 DH_TRACE("DH Convert Private Key size %zu bytes", key_size); in do_keypriv_conv()
128 * Convert Crypto DH Public Key to local Public Key (via a keypair object)
140 DH_TRACE("DH Convert Keypair size %zu bytes", key_size); in do_keypub_conv()
[all …]
/optee_os/core/drivers/crypto/caam/
H A Dcrypto.mk20 # DBG_DH BIT32(13) // DH Trace
43 caam-crypto-drivers += RSA DSA ECC DH MATH AE_GCM
53 caam-crypto-drivers += RSA DSA ECC DH MATH AE_GCM
64 caam-crypto-drivers += RSA DSA ECC DH MATH AE_GCM
71 caam-crypto-drivers += RSA DSA ECC DH MATH AE_GCM
79 caam-crypto-drivers += RSA DSA ECC DH MATH AE_GCM
93 caam-crypto-drivers += RSA DSA ECC DH MATH AE_GCM
115 caam-crypto-drivers += RSA DSA ECC DH MATH AE_GCM
218 # Enable DH crypto driver
226 $(call force, CFG_CRYPTO_DRV_ACIPHER,y,Mandated by CFG_CRYPTO_DRV_{RSA|ECC|DSA|DH})
/optee_os/core/drivers/crypto/hisilicon/
H A Dhpre_dh.c4 * Kunpeng hardware accelerator hpre dh algorithm implementation.
60 EMSG("HPRE dh alloc key pair fail."); in hpre_dh_alloc_keypair()
89 EMSG("HPRE do dh fail! done=0x%"PRIx16", etype=0x%"PRIx16, in hpre_dh_parse_sqe()
111 EMSG("Fail to create dh qp"); in hpre_dh_do_task()
183 EMSG("Fail to alloc dh total buf"); in hpre_dh_params_alloc()
303 EMSG("Fail to gen dh privkey"); in hpre_dh_gen_keypair()
312 EMSG("Fail to init dh msg"); in hpre_dh_gen_keypair()
351 EMSG("Fail to init dh msg"); in hpre_dh_do_shared_secret()
380 EMSG("hpre dh register to crypto fail."); in hpre_dh_init()
/optee_os/core/lib/libtomcrypt/
H A Dsub.mk297 srcs-$(_CFG_CORE_LTC_DH) += dh.c
298 srcs-$(_CFG_CORE_LTC_DH) += src/pk/dh/dh.c
299 srcs-$(_CFG_CORE_LTC_DH) += src/pk/dh/dh_check_pubkey.c
300 srcs-$(_CFG_CORE_LTC_DH) += src/pk/dh/dh_export.c
301 srcs-$(_CFG_CORE_LTC_DH) += src/pk/dh/dh_export_key.c
302 srcs-$(_CFG_CORE_LTC_DH) += src/pk/dh/dh_free.c
303 srcs-$(_CFG_CORE_LTC_DH) += src/pk/dh/dh_generate_key.c
304 srcs-$(_CFG_CORE_LTC_DH) += src/pk/dh/dh_import.c
305 srcs-$(_CFG_CORE_LTC_DH) += src/pk/dh/dh_make_key.c
306 srcs-$(_CFG_CORE_LTC_DH) += src/pk/dh/dh_set.c
[all …]
/optee_os/core/drivers/crypto/caam/include/
H A Dcaam_trace.h41 #define DBG_TRACE_DH BIT32(13) /* DH trace */
216 /* DH */
217 #if CAAM_DBG_TRACE(DH)
219 #if CAAM_DBG_DESC(DH)
222 DH_TRACE("DH Descriptor"); \
228 #if CAAM_DBG_BUF(DH)
H A Dcaam_acipher.h30 * Initialize the DH module
/optee_os/core/drivers/crypto/crypto_api/include/
H A Ddrvcrypt_acipher.h186 * Crypto Library DH driver operations
189 /* Allocates the DH keypair */
191 /* Generates the DH keypair */
194 /* DH Shared Secret */
199 * Register a DH processing driver in the crypto API
/optee_os/lib/libmbedtls/mbedtls/library/
H A Dpsa_crypto_ffdh.h50 /** Export a public key or the public part of a DH key pair in binary format.
76 * \brief Generate DH key.
103 * \brief Import DH key.
/optee_os/lib/libmbedtls/core/
H A Dsub.mk29 srcs-$(CFG_CRYPTO_DH) += dh.c
/optee_os/core/lib/libtomcrypt/src/pk/dsa/
H A Ddsa_generate_key.c26 /* so now we have our DH structure, generator g, order q, modulus p in dsa_generate_key()
/optee_os/core/lib/libtomcrypt/src/pk/ecc/
H A Decc_shared_secret.c17 @param out [out] Destination of the shared secret (Conforms to EC-DH from ANSI X9.63)
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
H A Dconfig_adjust_legacy_from_psa.h370 * DH key types follow the same pattern used above for EC keys. They are defined
375 /* DH: groups: is acceleration complete? */
384 /* DH: algs: is acceleration complete? */
389 /* DH: key types: is acceleration complete? */
491 /* End of DH section */

123