File: README

package info (click to toggle)
hare 0.26.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,352 kB
  • sloc: asm: 1,374; makefile: 123; sh: 117; lisp: 101
file content (18 lines) | stat: -rw-r--r-- 907 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
x25519: curve25519-based key derivation support

The crypto::x25519 module provides functions to generate key pairs and to
derive shared keys between them, based on curve25519.

A key pair is created by generating a private key with [[newkey]] and deriving
the public key with [[pubkey]]. A shared key can be found by using [[derive]].

Do not use the same secret key for both key exchanges and signatures. The public
keys are different and revealing both may leak information.

This is a low-level module which implements cryptographic primitives. Direct use
of cryptographic primitives is not recommended for non-experts, as incorrect use
of these primitives can easily lead to the introduction of security
vulnerabilities. Non-experts are advised to use the high-level operations
available in the top-level [[crypto::]] module.

Be advised that Hare's cryptography implementations have not been audited.