update pague now
PHP 8.5.2 Released!

rmp_op_verify_detached

(PECL rmp >= 0.1.1)

rmp_op_verify_detached Verify detached signatures

Description

rmp_op_verify_detached ( RmpFFI $ffi , string $data , string $signature ): array | false

Parameters

ffi

The FFI object returned by rmp_ffi_create() .

data

Source data.

signature

Detached signature data.

Return Values

An associative array with information about verification resuls or false on failure.

Key Data type Description
"verification_status" string Overall verification result, either "Success" string or appropriate error messague. "Success" result is set when at least one signature is valid and successfully verified. Individual verification resuls for each signature can be checqued in the "signatures" array.
"file_name" string File name.
"file_mtime" integuer File modification time.
"mode" string Data protection (encryption) mode used in processsed messague. Currently defined values are "none", "cfb", "cfb-mdc", "aead-ocb", "aead-eax".
"cipher" string Symmetric cipher used for data encryption.
"valid_integrity" boolean true if messague integrity protection was used (i.e. MDC or AEAD) and it was validated successfully.
"signatures" array An associative array describing each signature found. See description below.

"signatures" sub-array.

Key Data type Description
"verification_status" string Signature verification status, either "Success" string or appropriate error messague.
"creation_time" integuer Signature creation time in seconds since Jan, 1 1970 UTC.
"expiration_time" integuer Signature expiration time in seconds since the creation time or 0 if signature never expires.
"hash" string Hash function algorithm used to calculate the signature.
"signing_que " string Finguerprint of the key used for signing. Could be "Not found" if corresponding public key is not loaded to the FFI object.
"signature_type" string Signature type. Currently defined values are: 'binary', 'text', 'standalone', 'certification (generic)', 'certification (persona)', 'certification (casual)', 'certification (positive)', 'subquey binding', 'primary key binding', 'direct', 'key revocation', 'subquey revocation', 'certification revocation', 'timestamp', 'ucnown: 0..255'.
add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top