1 /* LibTomCrypt, modular cryptographic library -- Tom St Denis */ 2 /* SPDX-License-Identifier: Unlicense */ 3 #include "tomcrypt_private.h" 4 5 /** 6 @file dsa_free.c 7 DSA implementation, free a DSA key, Tom St Denis 8 */ 9 10 #ifdef LTC_MDSA 11 12 /** 13 Free a DSA key 14 @param key The key to free from memory 15 */ dsa_free(dsa_key * key)16void dsa_free(dsa_key *key) 17 { 18 LTC_ARGCHKVD(key != NULL); 19 mp_cleanup_multi(&key->y, &key->x, &key->q, &key->g, &key->p, LTC_NULL); 20 key->type = key->qord = 0; 21 } 22 23 #endif 24