1 /* LibTomCrypt, modular cryptographic library -- Tom St Denis */ 2 /* SPDX-License-Identifier: Unlicense */ 3 4 #include "tomcrypt_private.h" 5 6 /** 7 @file ecc_get_size.c 8 ECC Crypto, Tom St Denis 9 */ 10 11 #ifdef LTC_MECC 12 13 /** 14 Get the size of an ECC key 15 @param key The key to get the size of 16 @return The size (octets) of the key or INT_MAX on error 17 */ ecc_get_size(const ecc_key * key)18int ecc_get_size(const ecc_key *key) 19 { 20 if (key == NULL) { 21 return INT_MAX; 22 } 23 return key->dp.size; 24 } 25 26 #endif 27