Discover Packages
decred.org/cspp/v2
x25519
package
Version:
v2.3.0
Opens a new window with list of versions in this module.
Published: Nov 8, 2024
License: ISC
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 4
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package x25519 implements ECDHE over curve25519.
ValidScalar returns whether a secret X25519 scalar was properly constructed.
KX is the client-generated public and secret portions of a key exchange.
New begins a new key exchange by generating a public and secret value.
Public portions must be exchanged between parties to derive a shared secret
key.
SharedKey computes a shared key with the other party from our secret value
and their public value. The result should be securely hashed before usage.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.