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
10 /* Implements ECC over Z/pZ for curve y^2 = x^3 - 3x + b
12 * All curves taken from NIST recommendation paper of July 1999
13 * Available at http://csrc.nist.gov/cryptval/dss.htm
19 ECC Crypto, Tom St Denis
25 Get the size of an ECC key
26 @param key The key to get the size of
27 @return The size (octets) of the key or INT_MAX on error
29 int ecc_get_size(ecc_key *key)
31 LTC_ARGCHK(key != NULL);
32 if (ltc_ecc_is_valid_idx(key->idx))
35 return INT_MAX; /* large value known to cause it to fail when passed to ecc_make_key() */
39 /* ref: $Format:%D$ */
40 /* git commit: $Format:%H$ */
41 /* commit time: $Format:%ai$ */