brndnmtthws / dryoc

Don't Roll Your Own Crypto: pure-Rust, hard to misuse cryptography library
https://docs.rs/dryoc
MIT License
267 stars 14 forks source link

Question on key algorithms used #1

Closed AMythicDev closed 3 years ago

AMythicDev commented 3 years ago

So just a few questions regarding the algorithms. What key algorithms are being used when encrypting/decrypting data and signing/verifying it

brndnmtthws commented 3 years ago

For public-key encryption, it's based on X25519 (i.e., Diffie-Hellman on elliptic curve 25519).

The secret-key based stuff can use any randomly generated key.

For the most part, everything matches that of the libsodium implementation.

AMythicDev commented 3 years ago

Thanks. It would be great if you just write about it in the docs. Anyways thanks again

brndnmtthws commented 3 years ago

There are some mentions in the docs already. Where specifically are you looking? I can add some more detail if you can indicate where it's missing from.

AMythicDev commented 3 years ago

I think you should probably add something in keypair module. That should probably do it