rnp_locate_key

Search for the key

説明

stringfalse rnp_locate_key(RnpFFI $ffi, string $identifier_type, string $identifier)

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

パラメータ

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.

戻り値

Returns hexadecimal fingerprint of the key found on success失敗した場合に false を返します.