Encryption/decryption context with key information

Synopsis

Declared in <wallet/crypter.h>

class CCrypter;

Member Functions

Name

Description

CCrypter [constructor]

Constructs an unset crypter with buffers sized for the key and IV.

~CCrypter [destructor]

Wipes the key material from memory on destruction.

CleanKey

Wipes the key and IV from memory and marks the context as unset.

Decrypt

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

Encrypt

Encrypts plaintext key material with the configured key and IV.

SetKey

Sets the encryption key and IV directly.

SetKeyFromPassphrase

Derives the encryption key and IV from a passphrase and salt.

Friends

Name

Description

wallet::wallet_crypto_tests::TestCrypter

Test fixture granting access to CCrypter internals.

Created with MrDocs