/* noekeon.c */
/*
- This file is part of the Crypto-avr-lib/microcrypt-lib.
+ This file is part of the AVR-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify
#include <avr/pgmspace.h>
#endif
#include "noekeon.h"
-// #include "uart.h"
+// #include "cli.h"
#define ROUND_NR 16
((uint8_t*)state)[RC_POS] ^= const1;
theta(key, state);
((uint8_t*)state)[RC_POS] ^= const2;
+ pi1(state);
gamma(state);
pi2(state);
- pi1(state);
}
uint8_t rc_tab[]
changendian(dkey);
theta((uint32_t*)nullv, (uint32_t*)dkey);
-// uart_putstr_P(PSTR("\r\nTheta: "));
-// uart_hexdump(dkey, 16);
+// cli_putstr_P(PSTR("\r\nTheta: "));
+// cli_hexdump(dkey, 16);
for(i=ROUND_NR-1; i>=0; --i){
#ifdef __AVR__