include/beecrypt/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.deblier@telenet.be>

Function Documentation

size_t mpnbits ( const mpnumber  ) 
void mpncopy ( mpnumber ,
const mpnumber  
)
void mpnfree ( mpnumber  ) 
void mpninit ( mpnumber ,
size_t  ,
const mpw  
)
int mpninv ( mpnumber ,
const mpnumber ,
const mpnumber  
)
void mpnset ( mpnumber ,
size_t  ,
const mpw  
)
int mpnsetbin ( mpnumber ,
const byte ,
size_t   
)
int mpnsethex ( mpnumber ,
const char *   
)
void mpnsetw ( mpnumber ,
mpw   
)
void mpnsize ( mpnumber ,
size_t   
)
size_t mpntrbits ( mpnumber ,
size_t   
)

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

void mpnwipe ( mpnumber  ) 
void mpnzero ( mpnumber  ) 
std::ostream& operator<< ( std::ostream &  ,
const mpnumber  
)

Generated on 30 Jan 2013 for BeeCrypt by  doxygen 1.6.1