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
@@ -125,10 +125,10 @@ METHOD(public_key_t, encrypt, bool,
return FALSE;
}
METHOD(public_key_t, get_keysize, size_t,
METHOD(public_key_t, get_keysize, int,
private_pkcs11_public_key_t *this)
{
return this->k;
return this->k * 8;
}
/**