wallet::CCrypter::Decrypt

Decrypts ciphertext into key material with the configured key and IV.

Synopsis

Declared in <wallet/crypter.h>

[[nodiscard]]
bool
Decrypt(
    std::span<unsigned char const> ciphertext,
    CKeyingMaterial& plaintext) const;

Return Value

true if decryption succeeded.

NOTE

The return value should not be discarded.

Parameters

NameDescription
ciphertextThe ciphertext to decrypt.
plaintextReceives the recovered key material.