Module rsa_cortex_m4::numbers [−][src]
Large unsized integers (specialized to our allocation-free purposes).
The internal representation is in terms of little-endian machine words.
This specification of types was chosen after a few iterations of the options
within the limitations of min_const_generics.
One advantage it has is that Short and Long integers (hence also short/long
crate::Montgomery, etc.) can share implementations.
Structs
| Array | Array of |
| BigEndian | Representation of |
| Convenient | Unsigned numbers with both their top and bottom bits set – highly convenient for modular arithmetic! |
| Odd | |
| Prime | Prime number (passing primality tests); convenient by definition. |
| Unsigned | Multi-precision unsigned integer with at most $D + E$ digits (places) – two |
Traits
| Bits | The unstable |
| Number | Something similar to a |
| NumberMut | Mutable access to a |
Type Definitions
| BigEndianLong | |
| BigEndianShort | |
| Limb | Several |
| Long |
|
| Product | Big enough to fit the product of two |
| Short |
|
| ShortConvenient | |
| ShortOdd | |
| ShortPrime |