php8.5
Home/ Manual/ rnp / functions/ rnp_key_export_revocation

rnp_key_export_revocation

PHP function Edit on GitHub ✎

(PECL rnp >= 0.1.1)

Generate and export primary key revocation signature

Description

rnp_key_export_revocation(RnpFFI $ffi, string $key_fp, int $flags, [array $options]): string|false

Note: to revoke a key you'll need to import this signature into the keystore or use rnp_key_revoke() function.

Parameters

ffi

Ffi-description

key_fp

Key fingerprint of the primary key to be revoked.

flags

RNP_KEY_EXPORT_ARMORED or 0.

options

An associative array with options.

KeyData typeDescription
"hash"stringSet hash algorithm used during signature calculation.
"code"stringCode reason for revocation code. Possible values: 'no', 'superseded', 'compromised', 'retired'. If not defined, then value 'no' will be used by default.
"reason"stringTextual representation of the reason for revocation.

Return Values

Exported revocation signature on successFalseforfailure.

Source: reference/rnp/functions/rnp-key-export-revocation.xml · from the official PHP manual (php/doc-en)