![]() |
Bitcoin Core 31.1.0
P2P Digital Currency
|
#include <muhash.h>
Public Types | |
| typedef uint64_t | double_limb_t |
| typedef int64_t | signed_double_limb_t |
| typedef uint32_t | limb_t |
| typedef int32_t | signed_limb_t |
Public Member Functions | |
| void | Multiply (const Num3072 &a) |
| void | Divide (const Num3072 &a) |
| void | SetToOne () |
| void | ToBytes (unsigned char(&out)[BYTE_SIZE]) |
| Num3072 () | |
| Num3072 (const unsigned char(&data)[BYTE_SIZE]) | |
| SERIALIZE_METHODS (Num3072, obj) | |
Public Attributes | |
| limb_t | limbs [LIMBS] |
Static Public Attributes | |
| static constexpr size_t | BYTE_SIZE = 384 |
| static constexpr int | LIMBS = 96 |
| static constexpr int | SIGNED_LIMBS = 103 |
| static constexpr int | LIMB_SIZE = 32 |
| static constexpr int | SIGNED_LIMB_SIZE = 30 |
Private Member Functions | |
| void | FullReduce () |
| bool | IsOverflow () const |
| Indicates whether d is larger than the modulus. | |
| Num3072 | GetInverse () const |
| typedef uint64_t Num3072::double_limb_t |
| typedef uint32_t Num3072::limb_t |
| typedef int64_t Num3072::signed_double_limb_t |
| typedef int32_t Num3072::signed_limb_t |
|
inline |
| Num3072::Num3072 | ( | const unsigned char(&) | data[BYTE_SIZE] | ) |
| void Num3072::Divide | ( | const Num3072 & | a | ) |
Definition at line 499 of file muhash.cpp.
|
private |
|
private |
< The number of significant limbs in f and g
< State to track knowledge about ratio of f and g
Definition at line 384 of file muhash.cpp.
|
private |
Indicates whether d is larger than the modulus.
Definition at line 116 of file muhash.cpp.
| void Num3072::Multiply | ( | const Num3072 & | a | ) |
Definition at line 456 of file muhash.cpp.
|
inline |
| void Num3072::SetToOne | ( | ) |
| void Num3072::ToBytes | ( | unsigned char(&) | out[BYTE_SIZE] | ) |
Definition at line 526 of file muhash.cpp.