BeeCrypt 4.2.1
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 *  )

References BEECRYPTAPI.

◆ mpbbits()

size_t mpbbits ( const mpbarrett * )

◆ mpbcopy()

void mpbcopy ( mpbarrett * ,
const mpbarrett *  )

References BEECRYPTAPI.

◆ mpbfree()

void mpbfree ( mpbarrett * )

References BEECRYPTAPI.

◆ mpbinit()

void mpbinit ( mpbarrett * ,
size_t  )

References BEECRYPTAPI.

◆ mpbmod_w()

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

References BEECRYPTAPI.

◆ mpbmu_w()

void mpbmu_w ( mpbarrett * ,
mpw *  )

References BEECRYPTAPI.

◆ mpbmulmod_w()

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

References BEECRYPTAPI.

◆ mpbneg_w()

void mpbneg_w ( const mpbarrett * ,
const mpw * ,
mpw *  )

References BEECRYPTAPI.

◆ mpbnmulmod()

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

References BEECRYPTAPI.

◆ mpbnpowmod()

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

References BEECRYPTAPI.

◆ mpbnpowmodsld()

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

References BEECRYPTAPI.

◆ mpbnrnd()

void mpbnrnd ( const mpbarrett * ,
randomGeneratorContext * ,
mpnumber *  )

References BEECRYPTAPI.

◆ mpbnsqrmod()

void mpbnsqrmod ( const mpbarrett * ,
const mpnumber * ,
mpnumber *  )

References BEECRYPTAPI.

◆ mpbpowmod_w()

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

References BEECRYPTAPI.

◆ mpbpowmodsld_w()

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

References BEECRYPTAPI.

◆ mpbpprime_w()

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

References BEECRYPTAPI.

◆ mpbrnd_w()

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

References BEECRYPTAPI.

◆ mpbrndinv_w()

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

References BEECRYPTAPI.

◆ mpbrndodd_w()

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

References BEECRYPTAPI.

◆ mpbset()

void mpbset ( mpbarrett * ,
size_t ,
const mpw *  )

References BEECRYPTAPI.

◆ mpbsetbin()

int mpbsetbin ( mpbarrett * ,
const byte * ,
size_t  )

References BEECRYPTAPI.

◆ mpbsethex()

int mpbsethex ( mpbarrett * ,
const char *  )

References BEECRYPTAPI.

◆ mpbsm2powmod()

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

References BEECRYPTAPI.

◆ mpbsm3powmod()

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

References BEECRYPTAPI.

◆ mpbsqrmod_w()

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

References BEECRYPTAPI.

◆ mpbsubmod_w()

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

References BEECRYPTAPI.

◆ mpbsubone()

void mpbsubone ( const mpbarrett * ,
mpw *  )

References BEECRYPTAPI.

◆ mpbtwopowmod_w()

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

References BEECRYPTAPI.

◆ mpbwipe()

void mpbwipe ( mpbarrett * )

References BEECRYPTAPI.

◆ mpbzero()

void mpbzero ( mpbarrett * )

References BEECRYPTAPI.

◆ operator<<()

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

References BEECRYPTAPI.