2 * Copyright (C) 2011-2012 Free Software Foundation, Inc.
4 * This file is part of GNUTLS.
6 * The GNUTLS library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public License
8 * as published by the Free Software Foundation; either version 3 of
9 * the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>
21 /* Based on public domain code of LibTomCrypt by Tom St Denis.
22 * Adapted to gmp and nettle by Nikos Mavrogiannopoulos.
29 ECC Crypto, Tom St Denis
33 Free an ECC key from memory
34 @param key The key you wish to free
37 ecc_free (ecc_key
* key
)
39 mp_clear_multi (&key
->pubkey
.x
, &key
->pubkey
.y
, &key
->pubkey
.z
, &key
->k
,
40 &key
->prime
, &key
->order
, &key
->Gx
, &key
->Gy
, &key
->A
, &key
->B
, NULL
);
43 /* $Source: /cvs/libtom/libtomcrypt/src/pk/ecc/ecc_free.c,v $ */
44 /* $Revision: 1.6 $ */
45 /* $Date: 2007/05/12 14:32:35 $ */