rnp_op_sign_detached
(PECL rnp >= 0.1.1)
rnp_op_sign_detached — Perform signing operation, return detached signature(s)
Description
function rnp_op_sign_detached(
RnpFFI
string
array
array
): string|false
RnpFFI
$ffi,string
$data,array
$keys_fp,array
$options = ?): string|false
Parameters
ffi
The FFI object returned by rnp_ffi_create().
data
Data to be signed.
keys_fp
Array with key fingerprints. At least one key must be provided.
Keys should be present in ffi.
options
An associative array with options.
| Key | Data type | Description |
|---|---|---|
"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). |
Return Values
Detached signature(s) data on success or false on failure.
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
