| 1 |
x25519: curve25519-based key derivation support |
| 2 |
|
| 3 |
The crypto::x25519 module provides functions to generate key pairs and to |
| 4 |
derive shared keys between them, based on curve25519. |
| 5 |
|
| 6 |
A key pair is created by generating a private key with [[newkey]] and deriving |
| 7 |
the public key with [[pubkey]]. A shared key can be found by using [[derive]]. |
| 8 |
|
| 9 |
Do not use the same secret key for both key exchanges and signatures. The public |
| 10 |
keys are different and revealing both may leak information. |
| 11 |
|
| 12 |
This is a low-level module which implements cryptographic primitives. Direct use |
| 13 |
of cryptographic primitives is not recommended for non-experts, as incorrect use |
| 14 |
of these primitives can easily lead to the introduction of security |
| 15 |
vulnerabilities. Non-experts are advised to use the high-level operations |
| 16 |
available in the top-level [[crypto::]] module. |
| 17 |
|
| 18 |
Be advised that Hare's cryptography implementations have not been audited. |