trivium.h
void triviumCipher(TriviumContext *context, const uint8_t *input, uint8_t *output, size_t length)
Encrypt/decrypt data with the Trivium algorithm.
Definition: trivium.c:117
General definitions for cryptographic algorithms.
error_t triviumInit(TriviumContext *context, const uint8_t *key, size_t keyLen, const uint8_t *iv, size_t ivLen)
Initialize Trivium context using the supplied key and IV.
Definition: trivium.c:59
uint8_t triviumGenerateBit(TriviumContext *context)
Generate one bit of key stream.
Definition: trivium.c:154
uint8_t triviumGenerateByte(TriviumContext *context)
Generate one byte of key stream.
Definition: trivium.c:215