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

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