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

rnp_load_keys

PHP function Edit on GitHub ✎

(PECL rnp >= 0.1.1)

Load keys from PHP string

Description

rnp_load_keys(RnpFFI $ffi, string $format, string $input, int $flags): bool

Note that for G10, the input must be a directory (which must already exist).

Parameters

ffi

Ffi-description

format

Key-format

input

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

flags

Loadsave-flags

Return Values

Returns true on successFalseforfailure.

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