[ Index ]

PHP Cross Reference of DokuWiki




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

XML Formatted DSA Key Handler While XKMS defines a private key format for RSA it does not do so for DSA. Quoting that standard:

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

Defines 2 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

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

savePublicKey(BigInteger $p, BigInteger $q, BigInteger $g, BigInteger $y)   X-Ref
Convert a public key to the appropriate format

See https://www.w3.org/TR/xmldsig-core/#sec-DSAKeyValue

param: \phpseclib3\Math\BigInteger $p
param: \phpseclib3\Math\BigInteger $q
param: \phpseclib3\Math\BigInteger $g
param: \phpseclib3\Math\BigInteger $y
return: string