ops - Which crypto options are required of this key a bitwise OR ofĬonstants from, which are:.These keys might refer to subkeys, which are often employed in encrypting and signing ids - An array of Buffers, each one containing a 64-bit ID of a PGP key.PGP key IDs, and a flag specifying which operation is requested, the fetch method shouldĬall back with a KeyManager, if it could find one.įetch(ids,ops,cb) is called with three arguments: Shouldn't use the KeyRing described above, but should instead provide a custom KeyFetcher.Īll usable KeyFetchers must implement one method: fetch. In a more general decryption/verification scenario, you might need to fetch the appropriateĭecryption and/or verification keys from secondary or remote storage. That KeyManager with custom fields, they will be available here. Note that the same KeyManager that you loaded into your KeyFetcher shows up here. If parts of the message were signed, make a get_data_signer call on each Literal in the message. This example shows that unbox handles both decryption and verification. Specify 'utf8', 'ascii', 'binary', 'base64' or 'hex' if you want to override that encoding. If none is supplied, kbpgp will use the encoding specified in the PGP message you can The former call takes an optional parameter which is an encoding Literal objects support the toString(enc)Īnd toBuffer() methods. Unbox calls back with two arguments: an Error if something went wrong, and an array
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |