Main Page Modules Data Structures File List Data Fields Globals Related Pages

# beecrypt/mp32number.h File Reference

Multiprecision numbers, header. More...

`#include "types.h"`

Go to the source code of this file.

## Data Structures

struct | mp32number

## Functions

void | mp32nzero (mp32number *n)
void | mp32nsize (mp32number *n, uint32 size)
void | mp32ninit (mp32number *n, uint32 size, const uint32 *data)
void | mp32nfree (mp32number *n)
void | mp32ncopy (mp32number *n, const mp32number *copy)
void | mp32nwipe (mp32number *n)
void | mp32nset (mp32number *n, uint32 size, const uint32 *data)
void | mp32nsetw (mp32number *n, uint32 val)
void | mp32nsethex (mp32number *n, const char *hex)

## Detailed Description

Multiprecision numbers, header.

Definition in file mp32number.h.

## Function Documentation

void mp32ncopy | ( | mp32number * | n,
|  | const mp32number * | copy
| ) |

| Definition at line 100 of file mp32number.c. Referenced by dhaes_pContextInitDecrypt, dhaes_pContextInitEncrypt, dldp_pCopy, dlkp_pCopy, dlpk_pCopy, mp32nsize, rsakpCopy, and rsapkCopy.

void mp32nfree | ( | mp32number * | n | ) |

Definition at line 90 of file mp32number.c.

References BEECRYPTAPI, and uint32.

Referenced by dhaes_pContextEncrypt, dhaes_pContextFree, dhaes_pContextSetup, dldp_pFree, dldp_pgonGenerator_w, dldp_pgoqGenerator_w, dlkp_pFree, dlpk_pFree, elgv1sign, elgv3sign, hashFunctionContextDigestMatch, keyedHashFunctionContextDigestMatch, mp32bnmulmod, mp32bnpowmod, mp32bnpowmodsld, mp32bnrnd, mp32bnsqrmod, mp32nsize, pgpCleanDig, pgpFreeDig, rsakpFree, and rsapkFree.

void mp32ninit | ( | mp32number * | n,
|  | uint32 | size,
|  | const uint32 * | data
| ) |

| Definition at line 75 of file mp32number.c. References BEECRYPTAPI, and uint32. Referenced by mp32nsize.

void mp32nset | ( | mp32number * | n,
|  | uint32 | size,
|  | const uint32 * | data
| ) |

| Definition at line 112 of file mp32number.c. Referenced by mp32ncopy, and mp32prndconone_w.

void mp32nsethex | ( | mp32number * | n,
|  | const char * | hex
| ) |

| Definition at line 171 of file mp32number.c. Referenced by pgpHexSet, pgpPrtPubkeyParams, pgpPrtSigParams, verifyGPGSignature, and verifyPGPSignature.

void mp32nsetw | ( | mp32number * | n,
|  | uint32 | val
| ) |

| Definition at line 146 of file mp32number.c. Referenced by dldp_pgonMakeSafe, dldp_pgoqMakeSafe, and rsakpMake.

void mp32nsize | ( | mp32number * | n,
|  | uint32 | size
| ) |

| Definition at line 42 of file mp32number.c. References BEECRYPTAPI, mp32ncopy, mp32nfree, mp32ninit, mp32nzero, and uint32. Referenced by dldp_pgonGenerator_w, dldp_pgoqGenerator_w, elgv1sign, elgv3sign, hashFunctionContextDigest, keyedHashFunctionContextDigest, mp32bnmulmod, mp32bnpowmod, mp32bnpowmodsld, mp32bnrnd, mp32bnsqrmod, rsakpMake, rsapri, and rsapricrt.

void mp32nwipe | ( | mp32number * | n | ) |

| Definition at line 105 of file mp32number.c. Referenced by dhaes_pContextEncrypt, and dhaes_pContextSetup.

void mp32nzero | ( | mp32number * | n | ) |

| Definition at line 35 of file mp32number.c. Referenced by dhaes_pContextEncrypt, dhaes_pContextInit, dhaes_pContextSetup, dldp_pgoqMake, dldp_pInit, dlkp_pInit, dlpk_pInit, hashFunctionContextDigestMatch, keyedHashFunctionContextDigestMatch, mp32nsize, verifyGPGSignature, and verifyPGPSignature.