Bitcoin Core  21.99.0
P2P Digital Currency
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | List of all members
Num3072 Class Reference

#include <muhash.h>

Public Types

typedef uint64_t double_limb_t
 
typedef uint32_t limb_t
 

Public Member Functions

void Multiply (const Num3072 &a)
 
void Divide (const Num3072 &a)
 
void SetToOne ()
 
void Square ()
 
 Num3072 ()
 
 SERIALIZE_METHODS (Num3072, obj)
 

Public Attributes

limb_t limbs [LIMBS]
 

Static Public Attributes

static constexpr int LIMBS = 96
 
static constexpr int LIMB_SIZE = 32
 

Private Member Functions

void FullReduce ()
 
bool IsOverflow () const
 Indicates wether d is larger than the modulus. More...
 
Num3072 GetInverse () const
 

Detailed Description

Definition at line 17 of file muhash.h.

Member Typedef Documentation

◆ double_limb_t

typedef uint64_t Num3072::double_limb_t

Definition at line 32 of file muhash.h.

◆ limb_t

typedef uint32_t Num3072::limb_t

Definition at line 33 of file muhash.h.

Constructor & Destructor Documentation

◆ Num3072()

Num3072::Num3072 ( )
inline

Definition at line 52 of file muhash.h.

Here is the call graph for this function:

Member Function Documentation

◆ Divide()

void Num3072::Divide ( const Num3072 a)

Definition at line 262 of file muhash.cpp.

Here is the call graph for this function:

◆ FullReduce()

void Num3072::FullReduce ( )
private

Definition at line 136 of file muhash.cpp.

Here is the caller graph for this function:

◆ GetInverse()

Num3072 Num3072::GetInverse ( ) const
private

Definition at line 145 of file muhash.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsOverflow()

bool Num3072::IsOverflow ( ) const
private

Indicates wether d is larger than the modulus.

Definition at line 127 of file muhash.cpp.

Here is the caller graph for this function:

◆ Multiply()

void Num3072::Multiply ( const Num3072 a)

Definition at line 182 of file muhash.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SERIALIZE_METHODS()

Num3072::SERIALIZE_METHODS ( Num3072  ,
obj   
)
inline

Definition at line 54 of file muhash.h.

◆ SetToOne()

void Num3072::SetToOne ( )

Definition at line 256 of file muhash.cpp.

Here is the caller graph for this function:

◆ Square()

void Num3072::Square ( )

Definition at line 219 of file muhash.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ LIMB_SIZE

constexpr int Num3072::LIMB_SIZE = 32
static

Definition at line 35 of file muhash.h.

◆ LIMBS

constexpr int Num3072::LIMBS = 96
static

Definition at line 34 of file muhash.h.

◆ limbs

limb_t Num3072::limbs[LIMBS]

Definition at line 37 of file muhash.h.


The documentation for this class was generated from the following files: