1
/* LibTomCrypt, modular cryptographic library -- Tom St Denis
3
* LibTomCrypt is a library that provides various cryptographic
4
* algorithms in a highly modular and flexible manner.
6
* The library is free for all purposes without any express
9
* Tom St Denis, tomstdenis@gmail.com, http://libtomcrypt.com
12
/* Implements ECC over Z/pZ for curve y^2 = x^3 - 3x + b
14
* All curves taken from NIST recommendation paper of July 1999
15
* Available at http://csrc.nist.gov/cryptval/dss.htm
21
ECC Crypto, Tom St Denis
26
void ecc_sizes(int *low, int *high)
29
LTC_ARGCHKVD(low != NULL);
30
LTC_ARGCHKVD(high != NULL);
34
for (i = 0; ltc_ecc_sets[i].size != 0; i++) {
35
if (ltc_ecc_sets[i].size < *low) {
36
*low = ltc_ecc_sets[i].size;
38
if (ltc_ecc_sets[i].size > *high) {
39
*high = ltc_ecc_sets[i].size;
45
/* $Source: /cvs/libtom/libtomcrypt/src/pk/ecc/ecc_sizes.c,v $ */
46
/* $Revision: 1.4 $ */
47
/* $Date: 2006/06/09 01:38:14 $ */