dalek-cryptography / curve25519-dalek

A pure-Rust implementation of group operations on Ristretto and Curve25519
Other
867 stars 439 forks source link

fix: Use the correct exponent in the description of the `mods` operation #525

Closed upbqdn closed 1 year ago

upbqdn commented 1 year ago

Motivation

The exponent defining the upper bound of the result of the mods operation in the docs should be w-1, not w. See the screenshot below for reference.

image

The implementation is not affected by this error.

Solution

This PR fixes the value of the exponent in the docs.

tarcieri commented 1 year ago

Thanks!