Try (untested):

RSAES_OAEP_SHA_Encryptor e;
//...
Integer m;
e.GetMaterial().GetValue("Modulus", m);
int length = m.BitCount();

On Wed, 26 Jan 2005 [EMAIL PROTECTED] wrote:



Hi all,

I would like to retrieve the key length (ie 512, 1024 o ...) for a RSA key. I
guess I have to ask the BitCount() from the Integer representing the modulus,
but I'can't access these data from, for instance, a RSAES_OAEP_SHA_Encryptor
object.

How can I do that ?

Thanks for your help




Reply via email to