Encrypts plaintext key material with the configured key and IV.
Synopsis
Declared in <wallet/crypter.h>
[[nodiscard]]
bool
Encrypt(
CKeyingMaterial const& vchPlaintext,
std::vector<unsigned char>& vchCiphertext) const;
Return Value
true if encryption succeeded.
|
Note
|
The return value should not be discarded. |
Parameters
Name |
Description |
vchPlaintext |
The key material to encrypt. |
vchCiphertext |
Receives the resulting ciphertext. |
Created with MrDocs