Monero
Loading...
Searching...
No Matches
hw::trezor::protocol::crypto::chacha Namespace Reference

Functions

void decrypt (const void *ciphertext, size_t length, const uint8_t *key, const uint8_t *iv, char *plaintext, size_t *plaintext_len)

Variables

const unsigned IV_SIZE = 12
const unsigned TAG_SIZE = 16

Function Documentation

◆ decrypt()

void hw::trezor::protocol::crypto::chacha::decrypt ( const void * ciphertext,
size_t length,
const uint8_t * key,
const uint8_t * iv,
char * plaintext,
size_t * plaintext_len = nullptr )

Chacha20Poly1305 decryption with tag verification. RFC 7539.

Variable Documentation

◆ IV_SIZE

const unsigned hw::trezor::protocol::crypto::chacha::IV_SIZE = 12

◆ TAG_SIZE

const unsigned hw::trezor::protocol::crypto::chacha::TAG_SIZE = 16