PHP 8.2.4 Released!


(PECL rnp >= 0.1.1)

rnp_op_sign_cleartextPerform signing operation on a textual data, return cleartext signed message


    RnpFFI $ffi,
    string $data,
    array $keys_fp,
    array $options = ?
): string|false

Список параметров


Объект FFI, возвращаемый функцией rnp_ffi_create.


Data to be signed.


Array with key fingerprints. At least one key must be provided. Keys should be present in ffi.


An associative array with options.

Key Data type Описание
"armor" boolean Enable ASCII-armored output. Disabled by default.
"hash" string Set hash algorithm used during signature calculation.
"creation_time" integer Set signature creation time in seconds since Jan, 1 1970 UTC. By default current time is used.
"expiration_time" integer Set signature expiration time in seconds since the creation time. 0 value is used to mark signature as non-expiring (default value).

Возвращаемые значения

Cleartext signed message containing source data with additional headers and ASCII-armored signature on success или false в случае возникновения ошибки.

add a note

User Contributed Notes

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