signalapp / curve25519-java

Pure Java and JNI backed Curve25519 implementation.
GNU General Public License v3.0
233 stars 96 forks source link

Public method to generate a keypair with given bytes #7

Open kushti opened 9 years ago

kushti commented 9 years ago

public Curve25519KeyPair generateKeyPair(byte[] random) added to provide ability to pass random bytes from outside

stefanoqredo commented 8 years ago

Hi, is there any chance this is gonna be merged? We'd like to use it in our project.

moxie0 commented 8 years ago

Why do you need this? You can already specify your own SecureRandom provider.

stefanoqredo commented 8 years ago

thanks for your reply. I don't understand how should I generate the keypair starting from a known seed (like in i.e. : sodium: sodium().crypto_sign_ed25519_seed_keypair(publicKey, secretKey, seed))

moxie0 commented 8 years ago

Seed for what? What are you trying to accomplish?