gnupg_verify()
gnupg_verify - Verifies a signed text
Syntax
array gnupg_verify (
resource $identifier,
string $signed_text,
string $signature,
string &$plaintext)
Arguments
- identifier - The gnupg identifier, from a call to gnupg_init() or gnupg.
- signed_text - The signed text.
- signature - The signature. To verify a clearsigned text, set signature to FALSE.
- plaintext - The plain text. If this optional parameter is passed, it is filled with the plain text.
Description
Verifies the given signed_text and returns information about the signature.
Version
PHP PECL gnupg >= 0.1
Return value
On success, this function returns information about the signature. On failure, this function returns FALSE.