# crypto.edwards25519: optimize rejectLowOrder · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/1baa127c6561ea604f6250b68b48105d026df575)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 1baa127c6561ea604f6250b68b48105d026df575

Requested commit: 1baa127c6561ea604f6250b68b48105d026df575

Commit: 1baa127c6561ea604f6250b68b48105d026df575

Tree: 759af91193062c52dab390b9c55e0bbe25c4b4c6

Author: Frank Denis

Committer: Frank Denis

## Message

```
crypto.edwards25519: optimize rejectLowOrder

Reject low-order points by checking projective coordinates directly
instead of using affine coordinates.

Equivalent, but saves CPU cycles (~254 field multiplications total
before, 3 field multiplications after).

```

## Parents

- [2bd02883c7260bb60e3c896bba37a7e6f403769f](https://git.cafe/gitcafe/zig/commit/2bd02883c7260bb60e3c896bba37a7e6f403769f?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/1baa127c6561ea604f6250b68b48105d026df575?format=markdown)
