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 : <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:
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!