abstract class XML (View source)

XML Formatted DSA Key Handler

Methods

static array
load(string $key, string $password = '')

Break a public or private key down into its constituent components

static string
savePublicKey(BigInteger $p, BigInteger $q, BigInteger $g, BigInteger $y)

Convert a public key to the appropriate format

Details

static array load(string $key, string $password = '')

Break a public or private key down into its constituent components

Parameters

string $key
string $password optional

Return Value

array

static string savePublicKey(BigInteger $p, BigInteger $q, BigInteger $g, BigInteger $y)

Convert a public key to the appropriate format

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

Parameters

BigInteger $p
BigInteger $q
BigInteger $g
BigInteger $y

Return Value

string