Encrypts a secret with the master key using the given IV.
Declared in <wallet/crypter.h>
[[nodiscard]]
bool
EncryptSecret(
CKeyingMaterial const& vMasterKey,
CKeyingMaterial const& vchPlaintext,
uint256 const& nIV,
std::vector<unsigned char>& vchCiphertext);
| 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. |