What version of Go are you using (go version)?
go version go1.8.3 linux/amd64
X25519 implementations should mask the highest bit of the public key. The public key is an element of GF(2^255-19) but is encoded into a 32 byte array/slice - so the highest bit ( publicKey[31] & 0x80 ) is always zero. RFC 7748 specifies that this bit MUST be masked.
What version of Go are you using (
go version)?go version go1.8.3 linux/amd64
X25519 implementations should mask the highest bit of the public key. The public key is an element of GF(2^255-19) but is encoded into a 32 byte array/slice - so the highest bit (
publicKey[31] & 0x80) is always zero. RFC 7748 specifies that this bit MUST be masked.