array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'it', ), 'this' => array ( 0 => 'function.rnp-locate-key.php', 1 => 'rnp_locate_key', 2 => 'Search for the key', ), 'up' => array ( 0 => 'ref.rnp.php', 1 => 'Rnp Funzioni', ), 'prev' => array ( 0 => 'function.rnp-load-keys-from-path.php', 1 => 'rnp_load_keys_from_path', ), 'next' => array ( 0 => 'function.rnp-op-encrypt.php', 1 => 'rnp_op_encrypt', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/rnp/functions/rnp-locate-key.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

rnp_locate_key

(PECL rnp >= 0.1.1)

rnp_locate_keySearch for the key

Descrizione

rnp_locate_key(RnpFFI $ffi, string $identifier_type, string $identifier): string|false

Note: only valid userids are checked while searching by userid.

Elenco dei parametri

ffi
The FFI object returned by rnp_ffi_create().
identifier_type
Identifier type string: "userid", "keyid", "fingerprint", "grip".
identifier
PGP User ID (name and email) for "userid" type, hexadecimal string that represents key id, fingerprint or key grip correspondingly.

Valori restituiti

Returns hexadecimal fingerprint of the key found on success o false in caso di fallimento.