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

rnp_key_export_autocrypt

PHP function Edit on GitHub ✎

(PECL rnp >= 0.1.1)

Export minimal key for autocrypt feature (just 5 packets: key, uid, signature, encryption subkey, signature)

Description

rnp_key_export_autocrypt(RnpFFI $ffi, string $key_fp, string $subkey_fp, string $uid, int $flags): string|false

Parameters

ffi

Ffi-description

key_fp

Primary key fingerprint.

subkey_fp

Subkey to export. Can be an empty string to pick the first suitable subkey.

uid

User ID to export. Can be an empty string if exported key has only one uid.

flags

Only RNP_KEY_EXPORT_BASE64 is currently supported. Enabling it would export base64-encoded key data instead of binary.

Return Values

OpenPGP packets of exported key on successFalseforfailure.

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