nettrash-a 0.0.28

Algorithms in pure Rust with no dependencies: 24 sorting algorithms; arbitrary-precision integers with Karatsuba, Toom-Cook and NTT multiplication, Newton division, GCD, roots, primes and modular square roots; elliptic curves over prime fields with secp256k1, P-256, P-384, P-521, Curve25519 and Ed25519 (not constant-time).
Documentation
1
2
3
4
5
6
7
8
9
10
/// The order of the bytes of the absolute value of a [`Number`](super::Number).
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
pub enum ByteOrder {
    /// The most significant byte first: `0x0102` is `[0x01, 0x02]`, as
    /// [`u16::to_be_bytes`] writes it.
    BigEndian,
    /// The least significant byte first: `0x0102` is `[0x02, 0x01]`, as
    /// [`u16::to_le_bytes`] writes it.
    LittleEndian,
}