[ Index ] |
PHP Cross Reference of DokuWiki |
[Source view] [Print] [Project Stats]
PuTTY Formatted DSA Key Handler puttygen does not generate DSA keys with an N of anything other than 160, however, it can still load them and convert them. PuTTY will load them, too, but SSH servers won't accept them. Since PuTTY formatted keys are primarily used with SSH this makes keys with N > 160 kinda useless, hence this handlers not supporting such keys.
Author: | Jim Wigginton |
Copyright: | 2015 Jim Wigginton |
License: | http://www.opensource.org/licenses/mit-license.html MIT License |
Link: | http://phpseclib.sourceforge.net |
File Size: | 109 lines (3 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
load($key, $password = '') X-Ref |
Break a public or private key down into its constituent components param: string $key param: string $password optional return: array |
savePrivateKey(BigInteger $p, BigInteger $q, BigInteger $g, BigInteger $y, BigInteger $x, $password = false, array $options = []) X-Ref |
Convert a private key to the appropriate format. param: \phpseclib3\Math\BigInteger $p param: \phpseclib3\Math\BigInteger $q param: \phpseclib3\Math\BigInteger $g param: \phpseclib3\Math\BigInteger $y param: \phpseclib3\Math\BigInteger $x param: string $password optional param: array $options optional return: string |
savePublicKey(BigInteger $p, BigInteger $q, BigInteger $g, BigInteger $y) X-Ref |
Convert a public key to the appropriate format param: \phpseclib3\Math\BigInteger $p param: \phpseclib3\Math\BigInteger $q param: \phpseclib3\Math\BigInteger $g param: \phpseclib3\Math\BigInteger $y return: string |