ALGORITHM_NAME
ALGORITHM_NAME
The internal name of the algorithm.
Class Rsa4096 - The RSA-4096 encryption algorithm object.
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.
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.
changeOutputFormat(string $bytes, boolean|integer|null $direction = true) : string
Internal method for converting the output format representation via the chosen format.
| string | $bytes | The bytes for conversion. | 
| boolean|integer|null | $direction | Flag for encryption direction (encrypt =>  | 
The formatted bytes.
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.