BeeCrypt 4.2.1
mpnumber.h File Reference

Multi-precision numbers, headers. More...

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

Go to the source code of this file.

Data Structures

struct  mpnumber
 

Functions

std::ostream & operator<< (std::ostream &, const mpnumber &)
 
void mpnzero (mpnumber *)
 
void mpnsize (mpnumber *, size_t)
 
void mpninit (mpnumber *, size_t, const mpw *)
 
void mpnfree (mpnumber *)
 
void mpncopy (mpnumber *, const mpnumber *)
 
void mpnwipe (mpnumber *)
 
void mpnset (mpnumber *, size_t, const mpw *)
 
void mpnsetw (mpnumber *, mpw)
 
int mpnsetbin (mpnumber *, const byte *, size_t)
 
int mpnsethex (mpnumber *, const char *)
 
int mpninv (mpnumber *, const mpnumber *, const mpnumber *)
 
size_t mpntrbits (mpnumber *, size_t)
 Truncate the mpnumber to the specified number of (least significant) bits.
 
size_t mpnbits (const mpnumber *)
 

Detailed Description

Multi-precision numbers, headers.

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

Function Documentation

◆ mpnbits()

size_t mpnbits ( const mpnumber * )

◆ mpncopy()

void mpncopy ( mpnumber * ,
const mpnumber *  )

References BEECRYPTAPI.

◆ mpnfree()

void mpnfree ( mpnumber * )

References BEECRYPTAPI.

◆ mpninit()

void mpninit ( mpnumber * ,
size_t ,
const mpw *  )

References BEECRYPTAPI.

◆ mpninv()

int mpninv ( mpnumber * ,
const mpnumber * ,
const mpnumber *  )

References BEECRYPTAPI.

◆ mpnset()

void mpnset ( mpnumber * ,
size_t ,
const mpw *  )

References BEECRYPTAPI.

◆ mpnsetbin()

int mpnsetbin ( mpnumber * ,
const byte * ,
size_t  )

References BEECRYPTAPI.

◆ mpnsethex()

int mpnsethex ( mpnumber * ,
const char *  )

References BEECRYPTAPI.

◆ mpnsetw()

void mpnsetw ( mpnumber * ,
mpw  )

References BEECRYPTAPI.

◆ mpnsize()

void mpnsize ( mpnumber * ,
size_t  )

References BEECRYPTAPI.

◆ mpntrbits()

size_t mpntrbits ( mpnumber * ,
size_t  )

Truncate the mpnumber to the specified number of (least significant) bits.

References BEECRYPTAPI.

◆ mpnwipe()

void mpnwipe ( mpnumber * )

References BEECRYPTAPI.

◆ mpnzero()

void mpnzero ( mpnumber * )

References BEECRYPTAPI.

◆ operator<<()

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

References BEECRYPTAPI.