]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - test_src/performance_test.h
fixing some decryption bugs in GCM128
[avr-crypto-lib.git] / test_src / performance_test.h
index d8b15655ee1a1882a77f76e738163845e72e97d6..867ef995af5150866c107835d2fdc1075b96f4b8 100644 (file)
@@ -1,6 +1,6 @@
 /* performance_test.h */
 /*
-    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 <stdint.h>
 #include <avr/pgmspace.h>
+#include <avr/io.h>
+#include <avr/interrupt.h>
+
+
+#define START_TIMER  TCCR1B=1
+#define STOP_TIMER   TCCR1B=0
 
 void calibrateTimer(void);
 void startTimer(uint8_t granularity);
 uint64_t stopTimer(void);
-void getOverhead(uint16_t* constoh, uint16_t* intoh);
+void getOverhead(uint16_t *constoh, uint16_t *intoh);
 
-void print_time_P(PGM_P s, uint64_t t);
+void print_time_P(PGM_P s, uint32_t t);
 void print_overhead(void);
 
 #endif /*PERFORMANCE_TEST_H_*/