Interface for a key loader.
This interface can be used to load both public and private keys.
Definition at line 20 of file KeyLoaderInterface.php.
static fpoirotte\Pssht\KeyLoader\KeyLoaderInterface::loadPrivate |
( |
|
$data, |
|
|
|
$passphrase = '' |
|
) |
| |
|
static |
Load a private key.
- Parameters
-
string | $data | Data representing the private key to load. |
string | $passphrase | (optional) Passphrase for the private key. |
- Return values
-
KeyInterface | Private key as loaded from the data. |
static fpoirotte\Pssht\KeyLoader\KeyLoaderInterface::loadPublic |
( |
|
$data | ) |
|
|
static |
Load a public key.
- Parameters
-
string | $data | Data representing the public key to load. |
- Return values
-
KeyInterface | Public key as loaded from the data. |
The documentation for this interface was generated from the following file: