- uint64_t t;
- char str[16];
- uint8_t key[8], data[8];
-
-
- calibrateTimer();
- print_overhead();
-
- memset(key, 0, 8);
- memset(data, 0, 8);
-
- startTimer(1);
- des_enc(data, data, key);
- t = stopTimer();
- uart_putstr_P(PSTR("\r\n\tencrypt time: "));
- ultoa((unsigned long)t, str, 10);
- uart_putstr(str);
-
- startTimer(1);
- des_dec(data, data, key);
- t = stopTimer();
- uart_putstr_P(PSTR("\r\n\tdecrypt time: "));
- ultoa((unsigned long)t, str, 10);
- uart_putstr(str);
- uart_putstr_P(PSTR("\r\n"));