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
13 Retrieve the size of an RSA key, Steffen Jaeckel.
19 Retrieve the size in bytes of an RSA key.
20 @param key The RSA key
21 @return The size in bytes of the RSA key or INT_MAX on error.
23 int rsa_get_size(rsa_key *key)
26 LTC_ARGCHK(key != NULL);
30 ret = mp_unsigned_bin_size(key->N);
38 /* ref: $Format:%D$ */
39 /* git commit: $Format:%H$ */
40 /* commit time: $Format:%ai$ */