Questions tagged [curve-25519]

31 questions
1
vote
0 answers

Recipe for target 'curve25519-donna-c64.o" failed

I have a problem trying to compile a library. I am using curve25519-donna to generate key pairs. I have already downloaded the library and unzipped the file, but my problem is with the compilation. I have changed my directory to…
0
votes
0 answers

How to create private and public key using X25519 in android?

Currently I am using bouncy castle library but the keys size is way more than 32.can anyone tell me how to get the key pair with x25519 curve in android?
0
votes
0 answers

How to generate Curve 25519 key pair with ECDH swift iOS?

I want to generate a Curve25519 key pair with ECDH for the encryption and decryption. I'm using the CryptoKit to generates a keypair. But, I failed to generate a keypair with the ECDH algorithm. Swift func generateKeys() -> (publicKey: String,…
0
votes
1 answer

Storing a X25519 key pair in a BouncyCastle BCFKS keystore

For the purposes of performing a Diffie-Hellman key agreement with Curve25519, I am generating the following key pair using BouncyCastle 1.68: // Generate a key pair KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("X25519",…
Bragolgirith
  • 2,167
  • 2
  • 24
  • 44
0
votes
1 answer

How do I add two curve25519 points

I have two points ([32]byte) on curve25519. How do I add them (a + b). I obviously can't do it using big.Int, since they aren't numbers but points on the curve. I haven't found so far any library to do something similar to what I can do using…
0
votes
0 answers

How to generate Curve 25519 key pair with ECDH in node js?

I want to generate a Curve25519 key pair with ECDH for the encryption and decryption. I'm using the Crypto node module to generates a keypair. But, I failed to generate a keypair with the ECDH algorithm. NodeJS const { publicKey, privateKey } =…
Isha Padalia
  • 877
  • 7
  • 24
0
votes
1 answer

curve 25519 scalar multiplication library

I am porting some backend/sdk to nodejs/typescript and I came along a blocker, the source uses libsodium function crypto_scalarmult_curve25519() which has an equivalent in Go as well thru crypto/curve25519 (ScalarMult). It's been hour since I was…
user2300947
  • 450
  • 4
  • 14
0
votes
2 answers

How do I sign a curve25519 key in golang?

I am trying to implement the X3DH algorithm from Signal in Go. However, I got stuck on how to sign the Public Signed PreKey. Per the specifications it is supposed to be an X25519 key. In looking at previous implementations on Github they generated a…
Jadefox10200
  • 466
  • 1
  • 3
  • 12
0
votes
0 answers

I'd like to convert my ed25519 keypair to curve25519 in java (similar as ed2curve in js)

I'd like to ask if there is any API that supports converting ed25519 keypairs to curve25519 ones. Using ed2curve for node.js now, and if you have any better recommendation, I'd appreciate your suggestions. also looking for an API that supports…
Minji Cho
  • 1
  • 1
0
votes
0 answers

Different base point in Curve25519 in signal protocol?

I have been studying Curve25519 and signal protocol since few days . What i came to know that in general Curve25519 uses "9" as base point but in signal base point used is convert_mont(9). convert_mont(9) is the function which generate a twisted…
0
votes
0 answers

Bouncy Castle Curve25519 private key from Scrypt output

I am trying to achieve ECIES encryption, for which below code is working. X9ECParameters ecP = CustomNamedCurves.getByName("curve25519"); ECParameterSpec ecSpec = EC5Util.convertToSpec(ecP); BigInteger d = new…
baba.kabira
  • 3,111
  • 2
  • 26
  • 37
0
votes
1 answer

Chilkat: sftp support for key exchange ciphers

I am developing a .NET Core application and need sFTP support including KexAlgorithm curve25519-sha256 cipher. Does the .NET product provide support for this?
James
  • 493
  • 1
  • 10
  • 37
0
votes
1 answer

Does PBC (pairing-based cryptography library) support curve25519?

I don't know how to input a point at curve25519 using pbc. If not, how can I calculate pairing points at curve25519? Is there any other lib solving this?
p1gd0g
  • 631
  • 5
  • 16
0
votes
1 answer

How to properly link to nodejs curve25519 library

I have cloned git repository https://github.com/thejh/node-curve25519 and next used npm link inside it. I am using this library in suggested way: var curve = require('curve25519');. But I am getting this error on the line curve.makeSecretKey() in…
woyaru
  • 5,544
  • 13
  • 54
  • 92
-1
votes
0 answers

Working with Public Key generated from Java (using bouncy castle)

I am trying to use Python to work with peer public key generated from Java (uses BouncyCastle.) Here is the snippet from the Java Code. It uses ECDH and Curve25519. KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance( …
Ajeet2040
  • 99
  • 1
  • 6