« rnp_load_keys_from_path
rnp_op_encrypt »

rnp_locate_key

(PECL rnp >= 0.1.1)

rnp_locate_key — Search for the key

説明

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

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 を返します.

関連キーワード:
identifier   type   locate   userid   fingerprint   grip   hexadecimal   load   keys   path   encrypt   RnpFFI   Note   valid   userids   checked   while   searching   returned   create   Identifier   keyid   User   email   represents
関連する関数・ページ:
function.rnp-list-keys   cubrid.resources   function.ssh2-fingerprint   function.rnp-load-keys-from-path   function.cubrid-lob2-new   function.pg-field-type-oid