Curve25519_51.Noalloc
Versions of these functions which write their output in a buffer passed in as an argument
secret_to_public sk pk
takes a 32-byte secret key sk
and writes the corresponding 32-byte ECDH public key in pk
. Buffers pk
and sk
must be distinct.
ecdh sk pk shared
takes a 32-byte secret key sk
and another party's 32-byte public key and writes the 32-byte ECDH shared key in shared
. Buffer shared
must be distinct from pk
and sk
.