« rnp_op_sign
rnp_op_sign_detached »

rnp_op_sign_cleartext

(PECL rnp >= 0.1.1)

rnp_op_sign_cleartext — Perform signing operation on a textual data, return cleartext signed message

説明

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

パラメータ

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 説明
"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 を返します.

関連キーワード:
cleartext   signed   signature   signing   textual   keys   armored   hash   integer   seconds   since   expiration   detached   RnpFFI   fingerprints   provided   Keys   associative   type   armor   boolean   Enable   algorithm   expiring   Cleartext
関連する関数・ページ:
function.rnp-op-sign-detached   function.rnp-op-sign   function.rnp-op-encrypt   ref.rnp   book.rnp   function.gnupg-verify

他のマニュアルの関連ページ