Why the public key generated doesn't match the bit-length specified??

Unanswered Question
Feb 19th, 2009

Hello!

I generated a 512 bits key on a router by running the command "crypto key generate rsa". Here is the output:

How many bits in the modulus [512]: <cr>

% Generating 512 bit RSA keys, keys will be non-exportable...[OK]

Then I checked the key by running "show crypto key mypubkey rsa" and here is the output:

Key Data:

305C300D 06092A86 4886F70D 01010105 00034B00 30480241 00B000A8 22C680DC

AC788B8D 536BFF8A 999F7905 8F6D6878 73C07ECC 2BB2478A ACF270DB 08FF854F

99827407 294C63C4 1B5E9EBB CD3277E3 88A48EFD 033F3806 C9020301 0001

It's not 512 bits. It's about 764 bits long!!! And I always see the "0001" at the end for every key generated. Can anyone please tell me how to calculate the key length and what the 0001 is for?? Is this the real public key or just a fingerprint stuff? Thanks a lot!

Difan

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.

Actions

This Discussion