diffie-hellman Questions

1

I am currently working on an instant React Native messaging app and I want to implement E2EE (End to End Encryption between the sender and the receiver) for better security. The libraries/framework...

1

Solved

I'm trying to exchange public keys between Browser and Server, and generate secret to be used for encryption of data. I'm trying to utilize ECDH (Elliptic Curve Diffie-Hellman). On the Server side ...

22

Solved

When I make an SSL connection with some IRC servers (but not others - presumably due to the server's preferred encryption method) I get the following exception: Caused by: java.lang.RuntimeExcepti...
Fullblooded asked 27/7, 2011 at 21:29

4

Solved

I'm trying to execute code to perform the Diffie-Hellman key exchange. I sourced the code from an example online (forget where now). I had to import the bouncycastle.jar, which I assumed worked up ...
Nymphet asked 18/3, 2014 at 12:32

3

Solved

I'm using OpenSSL's c library to generate an elliptic curve Diffie-Hellman (ECDH) key pair, following the first code sample here. It glosses over the actual exchange of public keys with this line: ...
Fuliginous asked 9/8, 2013 at 20:58

1

Solved

Before OpenSSL3 this was simple. DH* dh = DH_new(); /* Parameters */ dh->p = BN_bin2bn(bin_p, bin_p_size, NULL); dh->g = BN_bin2bn(bin_g, bin_g_size, NULL); /* Private key generation */ BN_...
Hardan asked 20/3, 2022 at 22:23

2

Solved

I'm writing an app that'll exchange data between a phone and a Windows PC, and I want to protect the data sent with key generated with a Diffie-Hellman exchange. I'm trying to use BouncyCastle for...
Mollusc asked 17/3, 2015 at 0:24

2

I need to support Diffie Hellman encryption, now in order to test this i need to create a certificate with DH key parameters eg. key-length - 2048 etc. Now as i understand DH doesn't work with se...
Stickinthemud asked 3/10, 2019 at 13:42

1

Solved

It seems that .NET (Core 3.1) supports custom curves in ECC. So I've defined the Curve25519, and generated key pair by below code: using System; using System.Security.Cryptography; namespace Curve...

1

Solved

My task is to reproduce the plot below: It comes from this journal (pg 137-145) In this article, the authors describe a kleptographic attack called SETUP against Diffie-Hellman keys exchange. In p...

2

Solved

I am working on a project to integrate with the new Push API that exists in Firefox and is being developed as a W3C standard. Part of this is encrypting the data. The server will receive a Diffie ...
Nachison asked 25/2, 2016 at 1:50

1

I have generated a Diffie-Hellman key using certain g and p parameters, like this: $ cat dhparam.pem -----BEGIN DH PARAMETERS----- MIIBCAKCAQEAnc5+uXl2K09Nrp1oxN/KbIcIYLg8HXCu9UNW7gFknkHil7OVAKHR ...
Lashondra asked 7/10, 2019 at 18:7

3

Solved

WARNING The following is not intended as an endorsement of converting passwords to ECDH keys. Create ECDH keys from high-entropy, crypto-safe PRNGs. I want to take a secret and generate a ECDH ...
Marcy asked 30/11, 2018 at 13:43

2

For website hosted in Ubuntu 16 with Nginx, SSL tests always shows B grade. Below is the reason shown. See also the attached image. Current SSL cipher settings are below. I have noticed the same th...
Caboose asked 25/1, 2018 at 5:37

10

Solved

I'm trying to implement RC4 and DH key exchange in python. Problem is that I have no idea about how to convert the python long/int from the key exchange to the byte array I need for the RC4 impleme...
Wrinkly asked 4/1, 2012 at 17:11

2

Solved

I was wondering if there was (and I hope there is) a standard for public key size for ECDH (Elliptic Curve Diffie-Hellman) and ECDSA (Elliptic Curve Digital Signature Algorithm) for every curve typ...

1

I have used the https://github.com/ricmoo/GMEllipticCurveCrypto to generate a Shared Secret using ECDH Algorithm. I now have to Generate a Derived Key using the ECDH-ES algorithm as mentioned here:...
Various asked 28/5, 2017 at 6:47

1

Solved

I'm trying to generate a shared secret between a web server running PHP and a C# desktop application. I'm aware of the BouncyCastle library, but I'd prefer not having to use it since it's pretty hu...
Somehow asked 9/5, 2017 at 13:20

2

I'm using JSCH 0.1.53 to connect to a remote SSH server, which uses a 1024-bit RSA key. We are able to connect successfully to the remote server when we also use a 1024-bit RSA key, but when we gen...
Flag asked 26/4, 2016 at 15:39

2

Solved

I'm trying to encrypt a string on Android with AES. The symmetric key is determined previously with the Diffie-Hellman algorithm and seems to be ok (Key Length is 128 Bit, see below). Nevertheless,...
Reece asked 10/12, 2010 at 20:29

1

Solved

Diffie-Hellman key exchange algorithm uses operations like 2^8 mod n where n is a prime number. What is the reason for using prime numbers instead of other numbers?
Cardoso asked 13/12, 2016 at 7:53

2

Solved

I want to have 2 parties agree on the same secret key using their public and private keys. I do not want them to have any interaction. So I'm thinking method(A.privKey, B.pubKey) gives the same num...
Hetzel asked 28/4, 2014 at 14:33

5

Solved

I successfully set up two Ubuntu machines with Tomcat and SSL certificates. I followed exactly the same procedure with Centos 6, but I'm getting this when I'm trying to connect to the Server (usin...
Kylie asked 19/6, 2015 at 6:48

1

Solved

I have a task at hand that requires deriving key material using the key derivation function described in NIST SP 800-56A, section 5.8.1. I'm not an expert in Cryptography so please excuse me if the...
Melanesian asked 10/7, 2015 at 0:2

1

I want to know if JDK 1.8 supports DH key length of 4096 bits. Everywhere I searched, I found that jdk.tls.ephemeralDHKeySize can accept only between 1024 and 2048 bits. I have to connect to a site...
Embankment asked 20/4, 2015 at 10:47

© 2022 - 2024 — McMap. All rights reserved.