[Cryptography Team] Reading ssh pub/private keys
Bert Freudenberg
bert at freudenbergs.de
Thu Mar 29 13:23:34 UTC 2007
Hi folks,
I have an ssh-format keypair and would like to extract the (p,q,g,x)
and (p,q,g,y) DSA tuples from that. The private key looks like this:
-----BEGIN DSA PRIVATE KEY-----
MIIBuwIB..............XCIa3cIp
-----END DSA PRIVATE KEY-----
and the public key:
ssh-dss AAAAB3NzaC1k.........nNEnWCasjXraVA==
So this looks like Base64-encoded numbers, but how are they encoded?
The only reference I found was this:
http://www.openssh.com/txt/draft-ietf-secsh-publickeyfile-02.txt
But it does not detail how the "binary blob" translates to DSA tuples.
- Bert -
More information about the Cryptography
mailing list