Raw
in package
AbstractYes
Raw DSA Key Handler
Tags
Table of Contents
Methods
- load() : array<string|int, mixed>
- Break a public or private key down into its constituent components
- savePrivateKey() : string
- Convert a private key to the appropriate format.
- savePublicKey() : string
- Convert a public key to the appropriate format
Methods
load()
Break a public or private key down into its constituent components
public
static load(array<string|int, mixed> $key[, string $password = '' ]) : array<string|int, mixed>
Parameters
- $key : array<string|int, mixed>
- $password : string = ''
-
optional
Tags
Return values
array<string|int, mixed>savePrivateKey()
Convert a private key to the appropriate format.
public
static savePrivateKey(BigInteger $p, BigInteger $q, BigInteger $g, BigInteger $y, BigInteger $x[, string $password = '' ]) : string
Parameters
- $p : BigInteger
- $q : BigInteger
- $g : BigInteger
- $y : BigInteger
- $x : BigInteger
- $password : string = ''
-
optional
Tags
Return values
stringsavePublicKey()
Convert a public key to the appropriate format
public
static savePublicKey(BigInteger $p, BigInteger $q, BigInteger $g, BigInteger $y) : string
Parameters
- $p : BigInteger
- $q : BigInteger
- $g : BigInteger
- $y : BigInteger