Skip to content

Commit

Permalink
fix github issue #43, ecc_point uses DYNAMIC_TYPE ECC instead of BIGINT
Browse files Browse the repository at this point in the history
  • Loading branch information
toddouska committed Mar 23, 2015
1 parent 9f2454f commit b841bc6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wolfcrypt/src/ecc.c
Expand Up @@ -1379,7 +1379,7 @@ ecc_point* ecc_new_point(void)
{
ecc_point* p;

p = (ecc_point*)XMALLOC(sizeof(ecc_point), 0, DYNAMIC_TYPE_BIGINT);
p = (ecc_point*)XMALLOC(sizeof(ecc_point), 0, DYNAMIC_TYPE_ECC);
if (p == NULL) {
return NULL;
}
Expand All @@ -1393,7 +1393,7 @@ ecc_point* ecc_new_point(void)

#ifndef ALT_ECC_SIZE
if (mp_init_multi(p->x, p->y, p->z, NULL, NULL, NULL) != MP_OKAY) {
XFREE(p, 0, DYNAMIC_TYPE_BIGINT);
XFREE(p, 0, DYNAMIC_TYPE_ECC);
return NULL;
}
#else
Expand All @@ -1418,7 +1418,7 @@ void ecc_del_point(ecc_point* p)
mp_clear(p->x);
mp_clear(p->y);
mp_clear(p->z);
XFREE(p, 0, DYNAMIC_TYPE_BIGINT);
XFREE(p, 0, DYNAMIC_TYPE_ECC);
}
}

Expand Down

0 comments on commit b841bc6

Please sign in to comment.