-
- Downloads
cmdgen: add a --dump option.
Also spelled '-O text', this takes a public or private key as input, and produces on standard output a dump of all the actual numbers involved in the key: the exponent and modulus for RSA, the p,q,g,y parameters for DSA, the affine x and y coordinates of the public elliptic curve point for ECC keys, and all the extra bits and pieces in the private keys too. Partly I expect this to be useful to me for debugging: I've had to paste key files a few too many times through base64 decoders and hex dump tools, then manually decode SSH marshalling and paste the result into the Python REPL to get an integer object. Now I should be able to get _straight_ to text I can paste into Python. But also, it's a way that other applications can use the key generator: if you need to generate, say, an RSA key in some format I don't support (I've recently heard of an XML-based one, for example), then you can run 'puttygen -t rsa --dump' and have it print the elements of a freshly generated keypair on standard output, and then all you have to do is understand the output format.
Showing
- Recipe 1 addition, 1 deletionRecipe
- cmdgen.c 74 additions, 3 deletionscmdgen.c
- misc.h 3 additions, 0 deletionsmisc.h
- ssh.h 22 additions, 0 deletionsssh.h
- sshdss.c 18 additions, 0 deletionssshdss.c
- sshecc.c 46 additions, 0 deletionssshecc.c
- sshpubk.c 44 additions, 0 deletionssshpubk.c
- sshrsa.c 22 additions, 0 deletionssshrsa.c
- test/testcrypt.py 28 additions, 4 deletionstest/testcrypt.py
- testcrypt.c 22 additions, 0 deletionstestcrypt.c
- testcrypt.h 9 additions, 0 deletionstestcrypt.h
- testsc.c 4 additions, 0 deletionstestsc.c
- utils.c 24 additions, 0 deletionsutils.c
Loading
Please register or sign in to comment