cloudflare / cloudflare/tls-tris
X25519: Check for all zeros value
- Dominant language
- Go
- Stars
- 300
- Forks
- 52
- PR merge metrics
- No merged PRs in 30d
Description
As per RFC 7748:
```
Both now share K = X25519(a, X25519(b, 9)) = X25519(b, X25519(a, 9))
as a shared secret. Both MAY check, without leaking extra
information about the value of K, whether K is the all-zero value and
abort if so (see below). Alice and Bob can then use a key-derivation
function that includes K, K_A, and K_B to derive a symmetric key.
```
Just to double check if we do that
Contributor guide
Research direction
Locate the Go X25519 implementation and inspect how the shared secret is handled, using the RFC 7748 excerpt in the issue as the reference. Confirm whether an all-zero result is checked without leaking additional information, then document the finding or identify the missing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cryptography
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100