Mercurial > dropbear
comparison libtomcrypt/src/pk/dh/dh_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 |
---|---|
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 | |
10 #include "tomcrypt.h" | |
11 | |
12 #ifdef LTC_MDH | |
13 | |
14 /** | |
15 Free the allocated ram for a DH key | |
16 @param key The key which you wish to free | |
17 */ | |
18 void dh_free(dh_key *key) | |
19 { | |
20 LTC_ARGCHKVD(key != NULL); | |
21 mp_cleanup_multi(&key->prime, &key->base, &key->y, &key->x, NULL); | |
22 } | |
23 | |
24 #endif /* LTC_MDH */ | |
25 | |
26 /* ref: $Format:%D$ */ | |
27 /* git commit: $Format:%H$ */ | |
28 /* commit time: $Format:%ai$ */ |