Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<rnp_ffi_set_pass_providerrnp_import_signatures>
^Rnp FunctionsLast updated: Mon, 26 Oct 2026

rnp_import_keys

(PECL rnp >= 0.1.1)

rnp_import_keys — Import keys from PHP string to the keyring and receive JSON describing new/updated keys

Description

function rnp_import_keys(RnpFFI $ffi, string $input, int $flags): string|false

Parameters

ffi

The FFI object returned by rnp_ffi_create().

input

OpenPGP packets containing key(s) to be loaded. Can be either binary or ASCII armored.

flags

See RNP_LOAD_SAVE_* predefined constants.

Return Values

JSON string with information about new and updated keys on success or false on failure.


<rnp_ffi_set_pass_providerrnp_import_signatures>
^Rnp FunctionsLast updated: Mon, 26 Oct 2026