aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorFrank Denis <124872+jedisct1@users.noreply.github.com>2022-11-28 00:34:13 +0100
committerGitHub <noreply@github.com>2022-11-28 00:34:13 +0100
commit7411be3c9e6d169108456f03b3cbb9b476ee7498 (patch)
treeac2d936d1236034cc4a274a493bed1ded0bc05b4 /src/Module.zig
parent609716524169c538b7f12666c3f9bb46a0aeeb3c (diff)
downloadzig-7411be3c9e6d169108456f03b3cbb9b476ee7498.tar.gz
zig-7411be3c9e6d169108456f03b3cbb9b476ee7498.zip
std.crypto.edwards25519: add a rejectLowOrder() function (#13668)
Does what the name says: rejects generators of low-order groups. `clearCofactor()` was previously used to do it, but for e.g. cofactored signature verification, we don't need the result of an actual multiplication. Only check that we didn't end up with a low-order point, which is a faster operation.
Diffstat (limited to 'src/Module.zig')
0 files changed, 0 insertions, 0 deletions