diff options
| author | Frank Denis <124872+jedisct1@users.noreply.github.com> | 2023-11-08 11:56:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-08 11:56:56 +0100 |
| commit | a70d8d29d5895a8b44a86e8f065ee3ee59c9bfe8 (patch) | |
| tree | e72871be6b35b0d5f431915b2e1faad34346aeb2 /src/Sema.zig | |
| parent | 4504e03a18d75d0c9e4695250c807b3b4a953791 (diff) | |
| download | zig-a70d8d29d5895a8b44a86e8f065ee3ee59c9bfe8.tar.gz zig-a70d8d29d5895a8b44a86e8f065ee3ee59c9bfe8.zip | |
Curve25519.fromEdwards25519(): don't assume normalized coordinates (#17920)
The low-level `Curve25519.fromEdwards25519()` function assumed
that the X/Y coordinates were not scaled (Z=1).
But this is not guaranteed to be the case.
In most real-world applications, the coordinates are freshly decoded,
either directly or via the `X25519.fromEd25519()` function, so this
is not an issue.
However, since we offer the ability to do that conversion after
arbitrary computations, the assertion was not correct.
Diffstat (limited to 'src/Sema.zig')
0 files changed, 0 insertions, 0 deletions
