[ Index ]

PHP Cross Reference of DokuWiki




/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA/Formats/Keys/ -> XML.php (summary)

XML Formatted RSA Key Handler More info:

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: 171 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 functions


Functions that are not part of a class:

load($key, $password = '')   X-Ref
Break a public or private key down into its constituent components

return: array
param: string $key
param: string $password optional

savePrivateKey(BigInteger $n, BigInteger $e, BigInteger $d, array $primes, array $exponents, array $coefficients, $password = '')   X-Ref
Convert a private key to the appropriate format.

return: string
param: \phpseclib3\Math\BigInteger $n
param: \phpseclib3\Math\BigInteger $e
param: \phpseclib3\Math\BigInteger $d
param: array $primes
param: array $exponents
param: array $coefficients
param: string $password optional

savePublicKey(BigInteger $n, BigInteger $e)   X-Ref
Convert a public key to the appropriate format

return: string
param: \phpseclib3\Math\BigInteger $n
param: \phpseclib3\Math\BigInteger $e