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

rnp_locate_key

PHP function Edit on GitHub ✎

(PECL rnp >= 0.1.1)

Search for the key

Description

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

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

Parameters

ffi

Ffi-description

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.

Return Values

Returns hexadecimal fingerprint of the key found on successFalseforfailure.

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