Use bits instead of bytes for a private/public key

This commit is contained in:
Martin Willi
2010-08-10 18:46:30 +02:00
parent 33ddaaabec
commit a944d2092b
24 changed files with 71 additions and 53 deletions
@@ -60,11 +60,11 @@ struct private_key_t {
chunk_t crypto, chunk_t *plain);
/**
* Get the strength of the key in bytes.
* Get the strength of the key in bits.
*
* @return strength of the key in bytes
* @return strength of the key in bits
*/
size_t (*get_keysize) (private_key_t *this);
int (*get_keysize) (private_key_t *this);
/**
* Get the public part from the private key.
@@ -165,11 +165,11 @@ struct public_key_t {
bool (*equals)(public_key_t *this, public_key_t *other);
/**
* Get the strength of the key in bytes.
* Get the strength of the key in bits.
*
* @return strength of the key in bytes
* @return strength of the key in bits
*/
size_t (*get_keysize) (public_key_t *this);
int (*get_keysize) (public_key_t *this);
/**
* Get the fingerprint of the key.