BeeCrypt 4.2.1
Data Structures | Functions
mpbarrett.h File Reference

Multi-precision integer routines using Barrett modular reduction, headers. More...

#include "beecrypt/beecrypt.h"
#include "beecrypt/mpnumber.h"
#include <iostream>
Include dependency graph for mpbarrett.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  mpbarrett
 

Functions

std::ostream & operator<< (std::ostream &, const mpbarrett &)
 
void mpbzero (mpbarrett *)
 
void mpbinit (mpbarrett *, size_t)
 
void mpbfree (mpbarrett *)
 
void mpbcopy (mpbarrett *, const mpbarrett *)
 
void mpbwipe (mpbarrett *)
 
void mpbset (mpbarrett *, size_t, const mpw *)
 
int mpbsetbin (mpbarrett *, const byte *, size_t)
 
int mpbsethex (mpbarrett *, const char *)
 
void mpbsubone (const mpbarrett *, mpw *)
 
void mpbmu_w (mpbarrett *, mpw *)
 
void mpbrnd_w (const mpbarrett *, randomGeneratorContext *, mpw *, mpw *)
 
void mpbrndodd_w (const mpbarrett *, randomGeneratorContext *, mpw *, mpw *)
 
void mpbrndinv_w (const mpbarrett *, randomGeneratorContext *, mpw *, mpw *, mpw *)
 
void mpbneg_w (const mpbarrett *, const mpw *, mpw *)
 
void mpbmod_w (const mpbarrett *, const mpw *, mpw *, mpw *)
 
void mpbaddmod_w (const mpbarrett *, size_t, const mpw *, size_t, const mpw *, mpw *, mpw *)
 
void mpbsubmod_w (const mpbarrett *, size_t, const mpw *, size_t, const mpw *, mpw *, mpw *)
 
void mpbmulmod_w (const mpbarrett *, size_t, const mpw *, size_t, const mpw *, mpw *, mpw *)
 
void mpbsqrmod_w (const mpbarrett *, size_t, const mpw *, mpw *, mpw *)
 
void mpbpowmod_w (const mpbarrett *, size_t, const mpw *, size_t, const mpw *, mpw *, mpw *)
 
void mpbpowmodsld_w (const mpbarrett *, const mpw *, size_t, const mpw *, mpw *, mpw *)
 
void mpbtwopowmod_w (const mpbarrett *, size_t, const mpw *, mpw *, mpw *)
 
void mpbsm2powmod (const mpbarrett *, const mpw *, const mpw *, const mpw *, const mpw *)
 
void mpbsm3powmod (const mpbarrett *, const mpw *, const mpw *, const mpw *, const mpw *, const mpw *, const mpw *)
 
int mpbpprime_w (const mpbarrett *, randomGeneratorContext *, int, mpw *)
 
void mpbnrnd (const mpbarrett *, randomGeneratorContext *, mpnumber *)
 
void mpbnmulmod (const mpbarrett *, const mpnumber *, const mpnumber *, mpnumber *)
 
void mpbnsqrmod (const mpbarrett *, const mpnumber *, mpnumber *)
 
void mpbnpowmod (const mpbarrett *, const mpnumber *, const mpnumber *, mpnumber *)
 
void mpbnpowmodsld (const mpbarrett *, const mpw *, const mpnumber *, mpnumber *)
 
size_t mpbbits (const mpbarrett *)
 

Detailed Description

Multi-precision integer routines using Barrett modular reduction, headers.

Author
Bob Deblier bob.d.nosp@m.ebli.nosp@m.er@te.nosp@m.lene.nosp@m.t.be

Function Documentation

◆ mpbaddmod_w()

void mpbaddmod_w ( const mpbarrett ,
size_t  ,
const mpw ,
size_t  ,
const mpw ,
mpw ,
mpw  
)

◆ mpbbits()

size_t mpbbits ( const mpbarrett )

◆ mpbcopy()

void mpbcopy ( mpbarrett ,
const mpbarrett  
)

◆ mpbfree()

void mpbfree ( mpbarrett )

◆ mpbinit()

void mpbinit ( mpbarrett ,
size_t   
)

◆ mpbmod_w()

void mpbmod_w ( const mpbarrett ,
const mpw ,
mpw ,
mpw  
)

◆ mpbmu_w()

void mpbmu_w ( mpbarrett ,
mpw  
)

◆ mpbmulmod_w()

void mpbmulmod_w ( const mpbarrett ,
size_t  ,
const mpw ,
size_t  ,
const mpw ,
mpw ,
mpw  
)

◆ mpbneg_w()

void mpbneg_w ( const mpbarrett ,
const mpw ,
mpw  
)

◆ mpbnmulmod()

void mpbnmulmod ( const mpbarrett ,
const mpnumber ,
const mpnumber ,
mpnumber  
)

◆ mpbnpowmod()

void mpbnpowmod ( const mpbarrett ,
const mpnumber ,
const mpnumber ,
mpnumber  
)

◆ mpbnpowmodsld()

void mpbnpowmodsld ( const mpbarrett ,
const mpw ,
const mpnumber ,
mpnumber  
)

◆ mpbnrnd()

void mpbnrnd ( const mpbarrett ,
randomGeneratorContext ,
mpnumber  
)

◆ mpbnsqrmod()

void mpbnsqrmod ( const mpbarrett ,
const mpnumber ,
mpnumber  
)

◆ mpbpowmod_w()

void mpbpowmod_w ( const mpbarrett ,
size_t  ,
const mpw ,
size_t  ,
const mpw ,
mpw ,
mpw  
)

◆ mpbpowmodsld_w()

void mpbpowmodsld_w ( const mpbarrett ,
const mpw ,
size_t  ,
const mpw ,
mpw ,
mpw  
)

◆ mpbpprime_w()

int mpbpprime_w ( const mpbarrett ,
randomGeneratorContext ,
int  ,
mpw  
)

◆ mpbrnd_w()

void mpbrnd_w ( const mpbarrett ,
randomGeneratorContext ,
mpw ,
mpw  
)

◆ mpbrndinv_w()

void mpbrndinv_w ( const mpbarrett ,
randomGeneratorContext ,
mpw ,
mpw ,
mpw  
)

◆ mpbrndodd_w()

void mpbrndodd_w ( const mpbarrett ,
randomGeneratorContext ,
mpw ,
mpw  
)

◆ mpbset()

void mpbset ( mpbarrett ,
size_t  ,
const mpw  
)

◆ mpbsetbin()

int mpbsetbin ( mpbarrett ,
const byte ,
size_t   
)

◆ mpbsethex()

int mpbsethex ( mpbarrett ,
const char *   
)

◆ mpbsm2powmod()

void mpbsm2powmod ( const mpbarrett ,
const mpw ,
const mpw ,
const mpw ,
const mpw  
)

◆ mpbsm3powmod()

void mpbsm3powmod ( const mpbarrett ,
const mpw ,
const mpw ,
const mpw ,
const mpw ,
const mpw ,
const mpw  
)

◆ mpbsqrmod_w()

void mpbsqrmod_w ( const mpbarrett ,
size_t  ,
const mpw ,
mpw ,
mpw  
)

◆ mpbsubmod_w()

void mpbsubmod_w ( const mpbarrett ,
size_t  ,
const mpw ,
size_t  ,
const mpw ,
mpw ,
mpw  
)

◆ mpbsubone()

void mpbsubone ( const mpbarrett ,
mpw  
)

◆ mpbtwopowmod_w()

void mpbtwopowmod_w ( const mpbarrett ,
size_t  ,
const mpw ,
mpw ,
mpw  
)

◆ mpbwipe()

void mpbwipe ( mpbarrett )

◆ mpbzero()

void mpbzero ( mpbarrett )

◆ operator<<()

std::ostream & operator<< ( std::ostream &  ,
const mpbarrett  
)