Module crypto_bigint::prelude

source ·
Expand description

Import prelude for this crate: includes important traits.

Traits§

  • Compute self + rhs mod p.
  • Support for decoding a GenericArray as a big integer.
  • Support for encoding a big integer as a GenericArray.
  • Checked addition.
  • Checked multiplication.
  • Checked substraction.
  • Concatenate two numbers into a “wide” twice-width value, using the rhs value as the least significant value.
  • Encoding support.
  • Integer type.
  • Compute self * rhs mod p.
  • Compute -self mod p.
  • Random number generation support.
  • Modular random number generation support.
  • Split a number in half, returning the most significant half followed by the least significant.
  • Compute self - rhs mod p.
  • Zero values.