Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: test-lpc1768 oldheating gps motorhome ... more
Diff: bignum/bignum.h
- Revision:
- 54:9b3b189bc82c
- Parent:
- 53:3888bf121010
- Child:
- 55:975f706c67d2
--- a/bignum/bignum.h Wed Jun 19 12:33:14 2019 +0000 +++ b/bignum/bignum.h Wed Jun 19 15:34:17 2019 +0000 @@ -20,9 +20,9 @@ // Arithmetic operations extern void Bn1024Mul2048 (uint32_t* a1024, uint32_t* b1024, uint32_t* r2048); -extern void BnDiv (uint32_t* a, uint32_t* b, uint32_t* r); -extern void BnMod (uint32_t* a, uint32_t* b, uint32_t* r); -extern void BnDivMod(uint32_t* a, uint32_t* b, uint32_t* r, uint32_t* m); +extern void BnDiv (uint32_t* n, uint32_t* d, uint32_t* q ); +extern void BnRem (uint32_t* n, uint32_t* d, uint32_t* r); +extern void BnDivRem(uint32_t* n, uint32_t* d, uint32_t* q, uint32_t* r); // Asynchronous operations #define BIGNUM_CALC_NONE 0 @@ -30,10 +30,10 @@ #define BIGNUM_CALC_FINISHED 2 extern void BnAsyncMain(void); -extern int BnModExpStatus; -extern int BnModExpProgress; -extern uint64_t BnModExpMulHr; -extern uint64_t BnModExpModHr; -extern void BnModExpStart(uint32_t* message, uint32_t* exponent, uint32_t* modulus, uint32_t* result); +extern int BnExpModStatus; +extern int BnExpModProgress; +extern uint64_t BnMulHr; +extern uint64_t BnModHr; +extern void BnExpModStart(uint32_t* message, uint32_t* exponent, uint32_t* modulus, uint32_t* result);