]>
Commit | Line | Data |
---|---|---|
23e3fea5 | 1 | /* |
2 | Timing code for optimized implementation of Haraka. | |
3 | */ | |
4 | ||
5 | #include "stdio.h" | |
6 | #include "stdlib.h" | |
7 | #include <string.h> | |
8 | #include <stdint.h> | |
9 | #include "haraka.h" | |
10 | #include "timing.h" | |
11 | #include <stdalign.h> | |
12 | ||
13 | ||
b6b666a8 | 14 | static void phex(uint8_t* str) |
23e3fea5 | 15 | { |
b6b666a8 | 16 | uint8_t len = 64; |
23e3fea5 | 17 | |
18 | unsigned char i; | |
19 | for (i = 0; i < len; ++i) | |
20 | printf("%lx, ", str[i]); | |
21 | printf("\n"); | |
22 | } | |
23 | int main() { | |
b6b666a8 | 24 | uint8_t a[64]; |
25 | uint8_t b[16] = {0}; | |
26 | for(int i = 0; i <64;i++)a[i] = i; | |
23e3fea5 | 27 | load_constants(); |
28 | haraka512((uint8_t*)b,(uint8_t*)a); | |
29 | phex(b); | |
30 | } |