Replaced system SQLite with SQLCipher to support encrypted database
This commit is contained in:
23
Sources/DataLiteC/libtomcrypt/pk/dsa/dsa_free.c
Normal file
23
Sources/DataLiteC/libtomcrypt/pk/dsa/dsa_free.c
Normal file
@@ -0,0 +1,23 @@
|
||||
/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
|
||||
/* SPDX-License-Identifier: Unlicense */
|
||||
#include "tomcrypt_private.h"
|
||||
|
||||
/**
|
||||
@file dsa_free.c
|
||||
DSA implementation, free a DSA key, Tom St Denis
|
||||
*/
|
||||
|
||||
#ifdef LTC_MDSA
|
||||
|
||||
/**
|
||||
Free a DSA key
|
||||
@param key The key to free from memory
|
||||
*/
|
||||
void dsa_free(dsa_key *key)
|
||||
{
|
||||
LTC_ARGCHKVD(key != NULL);
|
||||
ltc_mp_cleanup_multi(&key->y, &key->x, &key->q, &key->g, &key->p, LTC_NULL);
|
||||
key->type = key->qord = 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user