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

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


Detailed Description

Multi-precision numbers, headers.

Author:
Bob Deblier <bob.deblier@telenet.be>

Function Documentation

BEECRYPTAPI size_t mpnbits ( const mpnumber  ) 

BEECRYPTAPI void mpncopy ( mpnumber ,
const mpnumber  
)

BEECRYPTAPI void mpnfree ( mpnumber  ) 

BEECRYPTAPI void mpninit ( mpnumber ,
size_t  ,
const mpw  
)

BEECRYPTAPI int mpninv ( mpnumber ,
const mpnumber ,
const mpnumber  
)

BEECRYPTAPI void mpnset ( mpnumber ,
size_t  ,
const mpw  
)

BEECRYPTAPI int mpnsetbin ( mpnumber ,
const byte ,
size_t   
)

BEECRYPTAPI int mpnsethex ( mpnumber ,
const char *   
)

BEECRYPTAPI void mpnsetw ( mpnumber ,
mpw   
)

BEECRYPTAPI void mpnsize ( mpnumber ,
size_t   
)

BEECRYPTAPI size_t mpntrbits ( mpnumber ,
size_t   
)

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

BEECRYPTAPI void mpnwipe ( mpnumber  ) 

BEECRYPTAPI void mpnzero ( mpnumber  ) 

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


Generated on Fri Jun 19 13:38:56 2009 for BeeCrypt by  doxygen 1.5.8