aboutsummaryrefslogtreecommitdiff
path: root/src/Sema.zig
diff options
context:
space:
mode:
authorFrank Denis <124872+jedisct1@users.noreply.github.com>2023-11-08 11:56:56 +0100
committerGitHub <noreply@github.com>2023-11-08 11:56:56 +0100
commita70d8d29d5895a8b44a86e8f065ee3ee59c9bfe8 (patch)
treee72871be6b35b0d5f431915b2e1faad34346aeb2 /src/Sema.zig
parent4504e03a18d75d0c9e4695250c807b3b4a953791 (diff)
downloadzig-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