| /optee_os/core/drivers/crypto/crypto_api/acipher/ |
| H A D | dh.c | 5 * 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 D | sub.mk | 3 srcs-$(CFG_CRYPTO_DRV_DH) += dh.c
|
| /optee_os/core/lib/libtomcrypt/src/pk/dh/ |
| H A D | dh.c | 13 "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 D | dh_set.c | 9 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 D | dh_shared_secret.c | 9 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 D | dh_set_pg_dhparam.c | 9 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 D | dh_export_key.c | 9 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 D | dh_export.c | 9 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 D | dh_free.c | 9 Free the allocated ram for a DH key
|
| H A D | dh_make_key.c | 34 * Make a DH key [private key pair] 42 * @param key [in/out] Where the newly created DH key will be stored
|
| H A D | dh_check_pubkey.c | 9 Check DH public key (INTERNAL ONLY, not part of public API)
|
| /optee_os/core/arch/arm/dts/ |
| H A D | stm32mp157c-dhcom-pdk2.dts | 4 * 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 D | stm32mp157a-dhcor-avenger96.dts | 22 compatible = "arrow,stm32mp157a-avenger96", "dh,stm32mp157a-dhcor-som",
|
| /optee_os/core/drivers/crypto/caam/acipher/ |
| H A D | caam_dh.c | 5 * 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 D | crypto.mk | 20 # 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 D | hpre_dh.c | 4 * 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 D | sub.mk | 297 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 D | caam_trace.h | 41 #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 D | caam_acipher.h | 30 * Initialize the DH module
|
| /optee_os/core/drivers/crypto/crypto_api/include/ |
| H A D | drvcrypt_acipher.h | 186 * 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 D | psa_crypto_ffdh.h | 50 /** 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 D | sub.mk | 29 srcs-$(CFG_CRYPTO_DH) += dh.c
|
| /optee_os/core/lib/libtomcrypt/src/pk/dsa/ |
| H A D | dsa_generate_key.c | 26 /* 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 D | ecc_shared_secret.c | 17 @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 D | config_adjust_legacy_from_psa.h | 370 * 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 */
|