diff options
| author | Frank Denis <124872+jedisct1@users.noreply.github.com> | 2022-11-28 00:34:13 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-28 00:34:13 +0100 |
| commit | 7411be3c9e6d169108456f03b3cbb9b476ee7498 (patch) | |
| tree | ac2d936d1236034cc4a274a493bed1ded0bc05b4 /src/Module.zig | |
| parent | 609716524169c538b7f12666c3f9bb46a0aeeb3c (diff) | |
| download | zig-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
