aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorFrank Denis <124872+jedisct1@users.noreply.github.com>2021-04-26 22:25:48 +0200
committerGitHub <noreply@github.com>2021-04-26 22:25:48 +0200
commit030fa5e7ebc21339728c79f33bf5d5d22e0a760e (patch)
treea0793e131036a29abc740888cfeea97fa85ce987 /src/codegen
parent95b42f9e6b901435b6ff7841a6b180553761070b (diff)
downloadzig-030fa5e7ebc21339728c79f33bf5d5d22e0a760e.tar.gz
zig-030fa5e7ebc21339728c79f33bf5d5d22e0a760e.zip
25519: remove unused const, safeguard against unreduced scalars (#8624)
* 25519: remove unused const, safeguard against unreduced scalars No behavior change, but it makes the existing code better match the forthcoming code for other curves. Rename nonAdjacentForm() to slide(), remove an unneeded and confusing constant, and do a reduction in slide() if 257 bits would be required. Note that in all the high-level functions, the top bit is always cleared, so the reduction is never necessary. But since the low-level functions are public, the check is a safe thing to have. * 25519: make identityElement public, deprecate neutralElement Also fix a few comments by the way.
Diffstat (limited to 'src/codegen')
0 files changed, 0 insertions, 0 deletions