1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #include <tommath.h>
- #include "dbhelpers.h"
- #ifdef BN_MP_CLEAR_C
- void
- mp_clear (mp_int * a)
- {
-
- if (a->dp != NULL) {
-
- m_burn(a->dp, a->alloc * sizeof(*a->dp));
-
- XFREE(a->dp);
-
- a->dp = NULL;
- a->alloc = a->used = 0;
- a->sign = MP_ZPOS;
- }
- }
- #endif
|