Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wine-mirror
GitHub Repository: wine-mirror/wine
Path: blob/master/libs/tomcrypt/src/pk/rsa/rsa_free.c
4396 views
1
/* LibTomCrypt, modular cryptographic library -- Tom St Denis
2
*
3
* LibTomCrypt is a library that provides various cryptographic
4
* algorithms in a highly modular and flexible manner.
5
*
6
* The library is free for all purposes without any express
7
* guarantee it works.
8
*/
9
#include "tomcrypt.h"
10
11
/**
12
@file rsa_free.c
13
Free an RSA key, Tom St Denis
14
*/
15
16
#ifdef LTC_MRSA
17
18
/**
19
Free an RSA key from memory
20
@param key The RSA key to free
21
*/
22
void rsa_free(rsa_key *key)
23
{
24
LTC_ARGCHKVD(key != NULL);
25
mp_cleanup_multi(&key->q, &key->p, &key->qP, &key->dP, &key->dQ, &key->N, &key->d, &key->e, NULL);
26
}
27
28
#endif
29
30