abstract class Raw (View source)

Raw DSA Key Handler

Methods

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

Break a public or private key down into its constituent components

static string
savePrivateKey(BigInteger $p, BigInteger $q, BigInteger $g, BigInteger $y, BigInteger $x, string $password = '')

Convert a private key to the appropriate format.

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

Convert a public key to the appropriate format

Details

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

Break a public or private key down into its constituent components

Parameters

array $key
string $password optional

Return Value

array

static string savePrivateKey(BigInteger $p, BigInteger $q, BigInteger $g, BigInteger $y, BigInteger $x, string $password = '')

Convert a private key to the appropriate format.

Parameters

BigInteger $p
BigInteger $q
BigInteger $g
BigInteger $y
BigInteger $x
string $password optional

Return Value

string

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

Convert a public key to the appropriate format

Parameters

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

Return Value

string