mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
Add reference to from_bytes_mod_order_wide ctor
This commit is contained in:
parent
bb9c171487
commit
786e4b65a8
1 changed files with 4 additions and 1 deletions
|
|
@ -62,9 +62,12 @@ type UnpackedScalar = backend::u32::scalar::Scalar32;
|
|||
/// To create a `Scalar` from a supposedly canonical encoding, use
|
||||
/// `Scalar::from_canonical_bytes`.
|
||||
///
|
||||
/// To create a `Scalar` by reducing a 256-bit integer mod \\( \ell \\),
|
||||
/// To create a `Scalar` by reducing a \\(256\\)-bit integer mod \\( \ell \\),
|
||||
/// use `Scalar::from_bytes_mod_order`.
|
||||
///
|
||||
/// To create a `Scalar` by reducing a \\(512\\)-bit integer mod \\( \ell \\),
|
||||
/// use `Scalar::from_bytes_mod_order_wide`.
|
||||
///
|
||||
/// To create a `Scalar` with a specific bit-pattern (e.g., for
|
||||
/// compatibility with X25519 "clamping"), use `Scalar::from_bits`.
|
||||
///
|
||||
|
|
|
|||
Loading…
Reference in a new issue