Questions tagged [ecdh]

136 questions
0
votes
1 answer

What cryptographic librairies will help calculate shared point and derive keys?

We need to perform some cryptographic operations and I want to know what cryptographic librairies can fit my need. The following is the context: Given the fact that we have: An EC Private Key stored in the HSM An EC Public Key (public…
Ahmed MANSOUR
  • 2,369
  • 2
  • 27
  • 35
0
votes
0 answers

ECDH Signature with ECDHsaCng

I am communicating with a device that uses AES-CCM encryption and I need to set that up using a key derived by ECDH. My machine cert has an ECC private key in the TPM. I'm somewhat new to this so please bear with me. Here's the code I'm looking at…
Sam
  • 1,325
  • 1
  • 13
  • 26
0
votes
1 answer

TLS - curves used for ECDHE

I want to ask about how the TLS decide about the key exchange alghoritm (curve selection). The communication between the client and the server is over the TLS. The server is running on the same computer as the client and both have access to the same…
query
  • 329
  • 7
  • 18
0
votes
1 answer

Import public/private ECDH keys in BouncyCastle

I'm trying to import public and private ECDH keys in BouncyCastle. To import public key i use the C# code bellow and the code is works fine: byte[] pc = HexStringToByteArray(PUBLIC_KEY); var ecdp =…
0
votes
0 answers

How to import private key from X509Certificate2 into CngKey on NET 4.5.1

The version of .NET that I am using (4.5.1) has no GetCngPrivateKey() method in X509Certificate2. Nothing I have found works. The .NET version I am using is, unfortunately, not negotiable. I'm trying to pull something like this off: X509Certificate2…
ts90
  • 1
  • 2
0
votes
1 answer

ECDiffieHellmanPublicKey from ByteArray (using ECDiffieHellman NamedCurves)

I'm working on communication nodejs -> c# server. I need to secure connection between them so I chode ECDiffieHellman as the key exchange mechanism (nodejs supports it). I had some problem with it... Just my lack of knowledge so I've made my lesson…
Janso123
  • 192
  • 1
  • 12
0
votes
1 answer

Setting up Ruby OpenSSL with a known public key

I have the content of a public key which I'm getting passed as an input to my system: public_key = 'MDkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDIgAC/Bu9nyAtG1DQe7t7jszLb+dZ1GbXoR8G0rIXoak67NM=' I need to feed this into OpenSSL so it can take part in some ECDH…
Toby
  • 8,483
  • 13
  • 45
  • 68
0
votes
1 answer

openssl 1.0.2, how to force server to choose only set of ciphers

I have client server which uses opensl 1.0.2j, and want to force the server to use only the following…
Naga
  • 487
  • 2
  • 7
  • 23
0
votes
3 answers

What makes ECDH rely on two public keys alone?

I have a basic question about ECDH (Elliptic Curve Diffie-Hellman). The whole idea is that both sides exchange their own public keys and arrive at the same private key. However, you can trivially intercept both keys. Inputting the other public key…
0
votes
1 answer

Understanding OpenSSL ECDH code

I have seen there are a few posts in stack overflow regarding this topic, most of them without any answer like OpenSSL calculate ECDH secret My question is I have been using these commands from the…
ChanBan
  • 41
  • 1
  • 6
0
votes
1 answer

crypto.createECDH is not getting added with webpack

I want to use createECDH function provided by crypto module in nodejs. I downloaded all the dependencies. Webpack does not add createECDH function in my resultant javascript files. How to use createECDH function of crypto available in node. it adds…
0
votes
2 answers

Bluetooth LE secure connection with wolfssl and nordic: key exchange

I want to establish a secure Bluetooth connection from the client side with a nordic chip (nRF52). I also have the wolfSSL library running. So I receive a 'BLE_GAP_EVT_LESC_DHKEY_REQUEST' request from the nordic softdevice with the peer-64byte key.…
-1
votes
1 answer

how access ECC key in other file

I am using ECDH for encryption and decryption as in network i create 3 nodes sensor server and sink. i am encrypting data at sensor and want to decrypt it at server. from tinyec import registry import secrets ` '# The elliptic curve which is…
-1
votes
1 answer

Node.JS crypto.ECDH.computeSecret() always throw an error

I created a test program to test ECDH algorithm from Node.JS documentation. I adapted the code to be used with my remote application, and the code looks like this: //Source var crypto = require('crypto'); var fs = require('fs'); var ecdh =…
-1
votes
1 answer

How to import a bitcoin private key to BigInteger?

I use the following codes to try to import a bitcoin private key and compute the public key. The computed ECPublicKey is not equal to bitcoinPublicKey. How to correct? string bitcoinPrivateKeyStr =…
1 2 3
9
10