-void trivium_init(const void* key, uint8_t keysize_b,
- const void* iv, uint8_t ivsize_b,
- trivium_ctx_t* ctx){
- uint16_t i;
- uint8_t c1=0,c2;
+static const uint8_t rev_table[16] PROGMEM = {
+ 0x00, 0x08, 0x04, 0x0C, /* 0000 1000 0100 1100 */
+ 0x02, 0x0A, 0x06, 0x0E, /* 0010 1010 0110 1110 */
+ 0x01, 0x09, 0x05, 0x0D, /* 0001 1001 0101 1101 */
+ 0x03, 0x0B, 0x07, 0x0F /* 0011 1011 0111 1111 */
+};