28 #ifndef _RTXBIGNUMBER_H_ 29 #define _RTXBIGNUMBER_H_ 52 const OSOCTET* b, OSSIZE szB,
53 OSOCTET* c, OSSIZE szC);
68 const OSOCTET* b, OSSIZE szB,
69 OSOCTET* c, OSSIZE szC);
84 const OSOCTET* b, OSSIZE szB,
85 OSOCTET* c, OSSIZE szC);
102 const OSOCTET* b, OSSIZE szB,
103 OSOCTET* c, OSSIZE szC,
104 OSOCTET* rem, OSSIZE szRem);
119 const OSOCTET* b, OSSIZE szB,
120 OSOCTET* c, OSSIZE szC);
135 const OSOCTET* b, OSSIZE szB,
136 OSOCTET* rem, OSSIZE szRem);
149 char* str, OSSIZE szStr);
int rtxModBigNum(const OSOCTET *a, OSSIZE szA, const OSOCTET *b, OSSIZE szB, OSOCTET *rem, OSSIZE szRem)
Division by module big numbers: a % b = rem.
int rtxSubBigNum(const OSOCTET *a, OSSIZE szA, const OSOCTET *b, OSSIZE szB, OSOCTET *c, OSSIZE szC)
Substraction big numbers: a - b = c.
int rtxAddBigNum(const OSOCTET *a, OSSIZE szA, const OSOCTET *b, OSSIZE szB, OSOCTET *c, OSSIZE szC)
Addition big numbers: a + b = c.
int rtxDivBigNum(const OSOCTET *a, OSSIZE szA, const OSOCTET *b, OSSIZE szB, OSOCTET *c, OSSIZE szC)
Division big numbers: a / b = c.
int rtxMulBigNum(const OSOCTET *a, OSSIZE szA, const OSOCTET *b, OSSIZE szB, OSOCTET *c, OSSIZE szC)
Multiplication big numbers: a * b = c.
Common run-time context definitions.
int rtxStrToBigNum(const char *str, OSOCTET *a, OSSIZE szA)
Convert string to big number.
int rtxDivRemBigNum(const OSOCTET *a, OSSIZE szA, const OSOCTET *b, OSSIZE szB, OSOCTET *c, OSSIZE szC, OSOCTET *rem, OSSIZE szRem)
Division big numbers with reminder: a / b = c.
int rtxBigNumToStr(const OSOCTET *a, OSSIZE szA, char *str, OSSIZE szStr)
Convert big number to string.