/src/dropbear/libtomcrypt/src/pk/ecc/ecc_free.c
Line | Count | Source |
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 | | /* Implements ECC over Z/pZ for curve y^2 = x^3 - 3x + b |
11 | | * |
12 | | * All curves taken from NIST recommendation paper of July 1999 |
13 | | * Available at http://csrc.nist.gov/cryptval/dss.htm |
14 | | */ |
15 | | #include "tomcrypt.h" |
16 | | |
17 | | /** |
18 | | @file ecc_free.c |
19 | | ECC Crypto, Tom St Denis |
20 | | */ |
21 | | |
22 | | #ifdef LTC_MECC |
23 | | |
24 | | /** |
25 | | Free an ECC key from memory |
26 | | @param key The key you wish to free |
27 | | */ |
28 | | void ecc_free(ecc_key *key) |
29 | 224 | { |
30 | 224 | LTC_ARGCHKVD(key != NULL); |
31 | 224 | mp_clear_multi(key->pubkey.x, key->pubkey.y, key->pubkey.z, key->k, NULL); |
32 | 224 | } |
33 | | |
34 | | #endif |
35 | | /* ref: $Format:%D$ */ |
36 | | /* git commit: $Format:%H$ */ |
37 | | /* commit time: $Format:%ai$ */ |
38 | | |