vendor/golang.org/x/crypto/curve25519 (on golang.org and go.dev)
imports 3 packages, and imported by one package
Involved Source Files
Exported Type Names
Basepoint is the canonical Curve25519 generator.
PointSize is the size of the point input to X25519.
(dst, scalar *byte
ScalarBaseMult sets dst to the product scalar * base where base is the
It is recommended to use the X25519 function with Basepoint instead, as
copying into fixed size arrays can lead to unexpected bugs.
(dst, scalar, point *byte
ScalarMult sets dst to the product scalar * point.
Deprecated: when provided a low-order point, ScalarMult will set dst to all
zeroes, irrespective of the scalar. Instead, use the X25519 function, which
will return an error.
ScalarSize is the size of the scalar input to X25519.
(scalar, point byte
X25519 returns the result of the scalar multiplication (scalar * point),
according to RFC 7748, Section 5. scalar, point and the return value are
slices of 32 bytes.
scalar can be generated at random, for example with crypto/rand. point should
be either Basepoint or the output of another X25519 call.
If point is Basepoint (but not if it's a different slice with the same
contents) a precomputed implementation might be used for performance.
||The pages are generated with Golds v0.1.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project and developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.|