Encrypts a secret with the master key using the given IV.
Synopsis
Declared in <wallet/crypter.h>
[[nodiscard]]
bool
EncryptSecret(
CKeyingMaterial const& vMasterKey,
CKeyingMaterial const& vchPlaintext,
uint256 const& nIV,
std::vector<unsigned char>& vchCiphertext);
Return Value
true if encryption succeeded.
|
Note
|
The return value should not be discarded. |
Parameters
Name |
Description |
vMasterKey |
The master key used as the encryption key. |
vchPlaintext |
The secret to encrypt. |
nIV |
Source of the initialization vector. |
vchCiphertext |
Receives the resulting ciphertext. |
Created with MrDocs