Commit cd0712fa authored by abhi's avatar abhi

newer aes code, passes test and bench

parent 694cb659
This diff is collapsed.
......@@ -5,7 +5,7 @@
#include <stdint.h>
void o_aes(const obliv uint8_t in[16], obliv uint8_t out[16], obliv uint8_t key[16]) obliv;
void oaes_fast128(obliv uint8_t out[16], obliv uint8_t key[16], const obliv uint8_t in[16]) obliv;
#endif
\ No newline at end of file
......@@ -110,7 +110,7 @@ void test_main(void*varg) {
for (int jj = 0; jj < blocks; jj++) {
if (fast) {
o_aes(&input[jj*16], key, &input[jj*16]);
oaes_fast128(&input[jj*16], key, &input[jj*16]);
} else {
oaes_128(&input[jj*16], key, &input[jj*16]);
}
......
......@@ -56,7 +56,7 @@ void test_main(void*varg) {
}
//oaes_128(output, key, input);
o_aes(output, key, input);
oaes_fast128(output, key, input);
bool success = true;
for (int ii = 0; ii < 16; ii++) {
......@@ -102,7 +102,7 @@ void test_main(void*varg) {
}
//oaes_128(output, key, input);
o_aes(output, key, input);
oaes_fast128(output, key, input);
bool success = true;
for (int ii = 0; ii < 16; ii++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment