]> pd.if.org Git - zpackage/blob - libtomcrypt/src/pk/katja/katja_free.c
remove md2 md4 md5 hashes
[zpackage] / libtomcrypt / src / pk / katja / katja_free.c
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 katja_free.c
13   Free an Katja key, Tom St Denis
14 */
15
16 #ifdef LTC_MKAT
17
18 /**
19   Free an Katja key from memory
20   @param key   The RSA key to free
21 */
22 void katja_free(katja_key *key)
23 {
24    LTC_ARGCHK(key != NULL);
25    mp_clear_multi( key->d,  key->N,  key->dQ,  key->dP,
26                    key->qP,  key->p,  key->q, key->pq, NULL);
27 }
28
29 #endif
30
31 /* ref:         $Format:%D$ */
32 /* git commit:  $Format:%H$ */
33 /* commit time: $Format:%ai$ */