(PECL rnp >= 0.1.1)
rnp_key_export_autocrypt — Export minimal key for autocrypt feature (just 5 packets: key, uid, signature, encryption subkey, signature)
$ffi,$key_fp,$subkey_fp,$uid,$flags
ffiОб'єкт FFI, якого повертає rnp_ffi_create.
key_fpPrimary key fingerprint.
subkey_fpSubkey to export. Can be an empty string to pick the first suitable subkey.
uidUser 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.
OpenPGP packets of exported key on success або false в разі помилки.