ALGORITHM_NAME
ALGORITHM_NAME
The internal name of the algorithm.
Class AbstractAsymmetricEncryptionAlgorithm - The asymmetric algorithm abstraction representation.
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.
validateCipherOrSignatureData(string $cipherOrSignatureData)
Internal method for the validation of cipher/signature data used at decryption/verifying operations.
string | $cipherOrSignatureData | The encrypted input string or a signature string. |
Validation errors.