How can I get a dsa or rsa key size from a public key or private key by nss interfaces?
For public keys, SECKEY_PublicKeyStrength or SECKEY_PublicKeyStrengthInBits(). For private keys, Pk11_SignatureLen() For symmetric keys, PK11_GetKeyStrength()
Some of these may return values in units of 8-bit bytes rather than bits. But in practice, RSA and DSA keys are multiples of 8 bits anyway.
-- Nelson B
