rnp_key_export

Export a key

Description

stringfalse rnp_key_export(RnpFFI $ffi, string $key_fp, int $flags)

Parameters

ffi

The FFI object returned by rnp_ffi_create.

key_fp

Key fingerprint.

flags

See RNP_KEY_EXPORT_* predefined constants (except RNP_KEY_EXPORT_BASE64).

Return Values

OpenPGP packets of exported key (binary or ASCII-armored) on success or false on failure.