ALGORITHM_NAME
ALGORITHM_NAME
The internal name of the algorithm.
Class Dsa3072 - The DSA-3072 digital signature algorithm object.
verifyDataSignature(string $signatureData, string $plainData) : boolean
Verifies that the signature is correct for the given plain data.
string | $signatureData | The signature input string. |
string | $plainData | The plain input string. |
Validation errors.
The verification result.
setSignatureDigestion(integer $signingAlgorithm) : $this
Setter for the signature's internal digestion algorithm property.
integer | $signingAlgorithm | The digestion algorithm integer code value. |
Validation errors.
The signature algorithm object.
verifyObjectSignature(string $signatureData, object|\stdClass $object) : boolean
Verifies that the signature is correct for the given object.
string | $signatureData | The signature input string. |
object|\stdClass | $object | The object used for signing. |
Validation errors.
The verification result.
verifyFileSignature(string $signatureData, string $filename) : boolean
Verifies that the signature is correct for a given plain file.
string | $signatureData | The signature input string. |
string | $filename | The full path and name of the file for signing. |
Validation errors.
The verification result.
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 signing direction (sign => |
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.