turn around the order when free'ing an rsa_key struct

This commit is contained in:
Steffen Jaeckel 2017-03-28 23:42:51 +02:00
parent ec327b3d86
commit 856d542a1c

View File

@ -24,7 +24,7 @@
void rsa_free(rsa_key *key)
{
LTC_ARGCHKVD(key != NULL);
mp_clear_multi(key->e, key->d, key->N, key->dQ, key->dP, key->qP, key->p, key->q, NULL);
mp_clear_multi(key->q, key->p, key->qP, key->dP, key->dQ, key->N, key->d, key->e, NULL);
}
#endif