Skip to content

crypto/tls: mask highest bit of X25519 public key #20582

Description

@aead

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions