A 3072‐bit number in the MuHash prime field, stored as an array of limbs.
Synopsis
Declared in <crypto/muhash.h>
class Num3072;
Description
Num3072 holds the running numerator or denominator of a MuHash3072 set and provides the modular multiply, divide, and inverse operations used to combine set elements.
Type Aliases
Name |
Description |
Unsigned integer type twice as wide as a limb, used for carries. |
|
Unsigned integer type of a single limb. |
|
Signed integer type twice as wide as a limb, used for carries. |
|
Signed integer type of a single limb. |
Member Functions
Name |
Description |
|
Constructors |
Divide this number by another, modulo the MuHash prime. |
|
Multiply this number by another, modulo the MuHash prime. |
|
Set this number to the multiplicative identity (one). |
|
Serialize this number into a fixed‐size byte buffer. |
Data Members
Name |
Description |
The limbs holding the little‐endian representation of the number. |
Static Data Members
Name |
Description |
Size of the serialized number in bytes (3072 bits). |
|
Number of unsigned limbs making up the 3072‐bit number. |
|
Bit width of a single unsigned limb. |
|
Number of signed limbs used by the intermediate representation. |
|
Bit width of a single signed limb. |
Created with MrDocs