Questions tagged [diffie-hellman]

Diffie-Hellman, commonly abbreviated DH, refers to a public key cryptographic protocol used by two parties to produce a common shared secret.

Diffie-Hellman, commonly abbreviated DH, refers to a public key cryptographic protocol used by two parties to produce a common shared secret.

It is most commonly used to implement key agreement, by using the properties of exponentiation modulo a large prime. Another variant uses the properties of elliptic curve groups and is commonly abbreviated ECDH.

For further reading see Wikipedia

431 questions
0
votes
1 answer

Exposing Diffie Hellman shared key in the logs for openssl lib

In the openssl libarary there is a function called DH_Compute_key which will create the shared key.can we use it and expose it in the log for debugging purpose?
Kalai
  • 145
  • 6
0
votes
1 answer

How to force the use of Diffie Hellman Key Exchange

I want to create a TLS Socket connection. I know TLS has a few ways to exchange the key eg. RSA, Diffie-Hellman, etc. How can I force the use of Diffie-Hellman key exchange instead of other forms of key exchange? I know that if using Diffie-Hellman…
user236501
  • 8,538
  • 24
  • 85
  • 119
0
votes
1 answer

How to use Diffie-Hellman key exchange to secure data transfer between a client and server?

I am a beginner programmer. I have been asked to secure data transfer between a client and a server by using a Diffie-Hellman key exchange. I have searched a lot on this issue, but I have just found some example codes that find big integers p and g.…
pardis
  • 11
  • 1
0
votes
1 answer

Should I secure/hide prime and base numbers for Diffie-Hellman?

As we know DH algorithm based upon 2 large prime numbers, which are used to be called as prime and base I am writing app which implements DH key exchange algorithm. From security point of view should I take care for securing prime and base numbers?…
0
votes
1 answer

Can we use Diffie-Hellman public key encrytion algorithm with asp.net login control?

I am trying to find out the internals of login control in asp.net. Does it uses some Public key encryption algorithm to exchange a key and then uses it for further communication as a symmetric key. Also do we have our say in choosing the encryption…
Charu
  • 2,679
  • 6
  • 35
  • 52
-1
votes
1 answer

Oakley group 2 prime number contains pi, an irrational number

The function for Oakley group 2, p = 2^1024 - 2^960 - 1 + 2^64 * ⌊2^894 * π + 129093⌋, produces a prime number. It contains pi, an irrational number. How can an equation containing an irrational number produce a rational product? I looked on the…
-1
votes
1 answer

Calculating Diffie Hellman Challenge - Python vs NodeJS

I'm trying to calculate the Diffie-Hellman Challenge in Python based on the algorithm from a NodeJS client app. The code for the NodeJS client app is as follows: var a = crypto.randomBytes(25).toString('hex'); var p =…
Vee
  • 1,821
  • 3
  • 36
  • 60
-1
votes
1 answer

How to generate g and p for DH safely on Arduino Nano

I want to make a DH Key exchange with a PC and an Arduino. I want to generate a Prime p and a Base g on the Arduino that should be 2048 Bits long.
-1
votes
1 answer

what are the protocols that bluetooth use to encrypt the data?

I've been looking for the protocol that Bluetooth (EDR and LE), use to encrypt the data. I've seen the official documentation but I don't get clear if its Diffie Hellman or E0. PD: if I'm not wrong there are different situations in where the…
-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

Decrypt Message using secp384r1 ECC algorithm and KDFX963

I'm trying to decrypt a message using Elliptic Curve Cryptograph ECDiffieHellman using KDFX963 as a key derivation function (KDF) (defined in ANSI-X9.63-KDF http://www.secg.org/sec1-v2.pdf) But I'm struggling to get this done. I pretty much need a…
Remy Burney
  • 465
  • 4
  • 8
-1
votes
1 answer

How to deal with 128bit variable in MinGM32 bit compiler for Encryption (Diffie Hellman Algorithm) in Qt

I want to use the below equation in one of the code A = g^a mod p; //g raise to a modulus p. (something like 2^5 % 3) = 32%3 = 2 (This equation looks like Diffie Hellman algorithm for security) Where: ^ is (power) g is fixed number 0x05 a is…
-1
votes
1 answer

Get a cryptographically secure random numder as an integer in python

I try to perform some modular exponentiation in order to perform some chained Diffie Hellman key agreement (for research puproce). Thus I generate the random key like that: priv_value=Random.get_random_bytes(128) And I generate the Diffie Hellman…
Dimitrios Desyllas
  • 9,082
  • 15
  • 74
  • 164
-1
votes
2 answers

Change KexAlgorithms on OpenSSH

I would like to disable 'diffie-hellman-group1-sha1' and 'diffie-hellman-group-exchange-sha1' key exchange algorithms on my OpenSSH. I edited /etc/ssh/sshd_config and added this line: KexAlgorithms…
V1har
  • 7
  • 1
  • 3
-1
votes
1 answer

ruby openssl diffie hellman implementation

I'm having some trouble implementing some security measures over a network for one of my school projects. We already have a full network running using Ruby. We're trying to use AES 256 CBC using the OpenSSL library. We have experimented with using…
Datz
  • 69
  • 1
  • 1
  • 7
1 2 3
28
29