abla/crypto/x25519
Generated from source.
Import with import "abla/crypto/x25519".
Source: abla/crypto/x25519/entry.ab
Re-exports abla/crypto/result.
x25519 (fun)
fun x25519(scalar: string, point: string): CryptoResult
The X25519 function (RFC 7748 section 5): scalar times point, both 32 bytes, the result 32 bytes. For a key agreement, scalar is your private key and point the peer's public key. ok is false for a wrong length, and for an all-zero result.
x25519PublicKey (fun)
fun x25519PublicKey(scalar: string): CryptoResult
The public key of a private key: x25519 of it and the base point 9.
Built from Abla v0.2.79 source ba5d6b7d. Examples and generated signatures follow that source revision.