comparison libtomcrypt/src/pk/dsa/dsa_free.c @ 1511:5916af64acd4 fuzz

merge from main
author Matt Johnston <matt@ucc.asn.au>
date Sat, 17 Feb 2018 19:29:51 +0800
parents 6dba84798cd5
children
comparison
equal deleted inserted replaced
1457:32f990cc96b1 1511:5916af64acd4
3 * LibTomCrypt is a library that provides various cryptographic 3 * LibTomCrypt is a library that provides various cryptographic
4 * algorithms in a highly modular and flexible manner. 4 * algorithms in a highly modular and flexible manner.
5 * 5 *
6 * The library is free for all purposes without any express 6 * The library is free for all purposes without any express
7 * guarantee it works. 7 * guarantee it works.
8 *
9 * Tom St Denis, [email protected], http://libtom.org
10 */ 8 */
11 #include "tomcrypt.h" 9 #include "tomcrypt.h"
12 10
13 /** 11 /**
14 @file dsa_free.c 12 @file dsa_free.c
22 @param key The key to free from memory 20 @param key The key to free from memory
23 */ 21 */
24 void dsa_free(dsa_key *key) 22 void dsa_free(dsa_key *key)
25 { 23 {
26 LTC_ARGCHKVD(key != NULL); 24 LTC_ARGCHKVD(key != NULL);
27 mp_clear_multi(key->g, key->q, key->p, key->x, key->y, NULL); 25 mp_cleanup_multi(&key->y, &key->x, &key->q, &key->g, &key->p, NULL);
26 key->type = key->qord = 0;
28 } 27 }
29 28
30 #endif 29 #endif
31 30
32 /* $Source$ */ 31 /* ref: $Format:%D$ */
33 /* $Revision$ */ 32 /* git commit: $Format:%H$ */
34 /* $Date$ */ 33 /* commit time: $Format:%ai$ */