Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wine-mirror
GitHub Repository: wine-mirror/wine
Path: blob/master/libs/tomcrypt/src/pk/dsa/dsa_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 dsa_free.c
13
DSA implementation, free a DSA key, Tom St Denis
14
*/
15
16
#ifdef LTC_MDSA
17
18
/**
19
Free a DSA key
20
@param key The key to free from memory
21
*/
22
void dsa_free(dsa_key *key)
23
{
24
LTC_ARGCHKVD(key != NULL);
25
mp_cleanup_multi(&key->y, &key->x, &key->q, &key->g, &key->p, NULL);
26
key->type = key->qord = 0;
27
}
28
29
#endif
30
31