Sets the encryption key and IV directly.

Synopsis

Declared in <wallet/crypter.h>

[[nodiscard]]
bool
SetKey(
    CKeyingMaterial const& new_key,
    std::span<unsigned char const> new_iv);

Return Value

true if the key and IV were the expected sizes and were set.

Note

The return value should not be discarded.

Parameters

Name

Description

new_key

The key material to use.

new_iv

The initialization vector to use.

Created with MrDocs