demo: clean-up on exit
This commit is contained in:
parent
f47c0f208d
commit
6fc385081e
@ -70,12 +70,16 @@ int myrng(unsigned char *dst, int len, void *dat)
|
|||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mp_int a, b, c, d, e, f;
|
||||||
|
|
||||||
|
static void _cleanup(void)
|
||||||
|
{
|
||||||
|
mp_clear_multi(&a, &b, &c, &d, &e, &f, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
char cmd[4096], buf[4096];
|
char cmd[4096], buf[4096];
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
mp_int a, b, c, d, e, f;
|
|
||||||
unsigned long t;
|
unsigned long t;
|
||||||
unsigned rr;
|
unsigned rr;
|
||||||
int i, n, err, cnt, ix;
|
int i, n, err, cnt, ix;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user