Sets the encryption key and IV directly.
Declared in <wallet/crypter.h>
[[nodiscard]]
bool
SetKey(
CKeyingMaterial const& new_key,
std::span<unsigned char const> new_iv);
true if the key and IV were the expected sizes and were set.
The return value should not be discarded.
| Name | Description |
|---|---|
| new_key | The key material to use. |
| new_iv | The initialization vector to use. |