git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/branches/REL_1@782
de75baf8-a10c-0410-a50a-
987c0e22f00f
virtual const char* getAlgorithm() const=0;
/**
- * Returns the size of the key.
+ * Returns the size of the key in bits.
*
* @return the key size, or 0 if indeterminate
*/
case XSECCryptoKey::KEY_RSA_PUBLIC:
case XSECCryptoKey::KEY_RSA_PAIR: {
XSECCryptoKeyRSA* rkey = static_cast<XSECCryptoKeyRSA*>(m_key);
- return rkey->getLength();
+ return 8 * rkey->getLength();
}
case XSECCryptoKey::KEY_SYMMETRIC: {