encryption - on DSA key size -
when execute
ssh-keygen -t ssh-dss
it generates 2 files: 1 containing public , other, private key.
the ssh-keygen man-page says generates 1024bit key, when open public key file, 580 characters line (which 4640 bits in ascii).
am missing or thinking wrong? i've tried reading algorithm, it's hard calculate, considering size of prime numbers involved.
is there way can validate if it's 1024bit key quantity of characters in id_dsa.pub file?
the files ssh-keygen stores public , private keys have predefined format (pem, ...), not dump of keys (remember, example, private key encrypted).
in link (https://martin.kleppmann.com/2013/05/24/improving-security-of-ssh-private-keys.html) find explanations different formats, , usage of tools "openssl asn1parse" display them:
the private key asn.1 data structure, serialized byte string using der, , base64-encoded. asn.1 comparable json (it supports various data types such integers, booleans, strings , lists/sequences can nested in tree structure). it’s used cryptographic purposes, has somehow fallen out of fashion web generation (i don’t know why, seems pretty decent format).
a method find public key size in asn1 tag stores , verify length of data.
Comments
Post a Comment