Skip to content

Commit

Permalink
ec/curve25519: Fix typo in documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith committed Dec 8, 2024
1 parent 2e04a1f commit 1acf8cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ec/curve25519/scalar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub const SCALAR_LEN: usize = 32;

impl Scalar {
// Constructs a `Scalar` from `bytes`, failing if `bytes` encodes a scalar
// that not in the range [0, n).
// that is not in the range [0, n).
pub fn from_bytes_checked(bytes: [u8; SCALAR_LEN]) -> Result<Self, error::Unspecified> {
const ORDER: [limb::Limb; SCALAR_LEN / limb::LIMB_BYTES] =
limbs_from_hex("1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed");
Expand Down

0 comments on commit 1acf8cf

Please sign in to comment.