$$privateKey
$$privateKey : string
The private key string property storage.
Trait KeyPairTrait - Reusable implementation of `KeyPairInterface`.
setKeyPair(\CryptoManana\DataStructures\KeyPair $keyPair) : $this
Setter for the whole key pair as an array.
\CryptoManana\DataStructures\KeyPair | $keyPair | The private and public key pair as an object. |
Validation errors.
The encryption/signature algorithm object.
getKeyPair() : \CryptoManana\DataStructures\KeyPair
Getter for the whole key pair as an array.
Validation errors.
The private and public key pair as an object.
validatePrivateKeyResource(string $privateKey) : string
Internal method for the validation of the private key resource.
string | $privateKey | The private key input string. |
Validation errors.
The extracted public key string from the private key resource.
validateKeyPair(string $privateKey, string $publicKey)
Internal method for the validation of the private and public key pair string representations.
string | $privateKey | The private key input string. |
string | $publicKey | The public key input string. |
Validation errors.