Hi Jeff,

Thanks for the tip. I had a hard time converting to an Integer, but doing a search for BitCount on the archive found this very helpful post that showed exactly how to do it:

http://www.mail-archive.com/[email protected]/msg02042.html

But without your help I wouldn't have known what to search for, so thank you again!

Kevin

Jeffrey Walton wrote:
Hi Kevin,

Load it into an Integer, and then call BitCount() or similar (it's been a
while, so I don't recall the proper function name).

Jeff

----- Original Message ----- From: "Kevin Hock" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, August 26, 2005 6:03 PM
Subject: Determine bit length from key



Hi,

If I have a private or public key of say, RSA type, is there a method
I can use to determine it's bit length (e.g. 512, 1024, etc)? I'd like
to load a key from a file and know how "long" it is.

Thanks,

Kevin





Reply via email to