Commit 017a9cea by Hongjun Wu Committed by Sebastian Renner

tinyjambu with for loop

parent 109ff80f
......@@ -7,8 +7,7 @@
Implemented by: Hongjun Wu
*/
#include <string.h>
#include <stdio.h>
#include "crypto_aead.h"
#define FrameBitsIV 0x10
......@@ -150,7 +149,7 @@ int crypto_aead_encrypt(
((unsigned int*)mac)[1] = state[2];
*clen = mlen + 8;
memcpy(c + mlen, mac, 8);
for (j = 0; j < 8; j++) c[mlen+j] = mac[j];
return 0;
}
......
......@@ -7,8 +7,6 @@
Implemented by: Hongjun Wu
*/
#include <string.h>
#include <stdio.h>
#include "crypto_aead.h"
#define FrameBitsIV 0x10
......@@ -133,7 +131,7 @@ int crypto_aead_encrypt(
((unsigned int*)mac)[1] = state[2];
*clen = mlen + 8;
memcpy(c + mlen, mac, 8);
for (j = 0; j < 8; j++) c[mlen+j] = mac[j];
return 0;
}
......
......@@ -7,8 +7,6 @@
Implemented by Hongjun Wu
*/
#include <string.h>
#include <stdio.h>
#include "crypto_aead.h"
#define FrameBitsIV 0x10
......@@ -165,7 +163,7 @@ int crypto_aead_encrypt(
((unsigned int*)mac)[1] = state[2];
*clen = mlen + 8;
memcpy(c + mlen, mac, 8);
for (j = 0; j < 8; j++) c[mlen+j] = mac[j];
return 0;
}
......
......@@ -7,8 +7,6 @@
Implemented by: Hongjun Wu
*/
#include <string.h>
#include <stdio.h>
#include "crypto_aead.h"
#define FrameBitsIV 0x10
......@@ -134,7 +132,7 @@ int crypto_aead_encrypt(
((unsigned int*)mac)[1] = state[2];
*clen = mlen + 8;
memcpy(c + mlen, mac, 8);
for (j = 0; j < 8; j++) c[mlen+j] = mac[j];
return 0;
}
......
......@@ -7,8 +7,6 @@
Implemented by: Hongjun Wu
*/
#include <string.h>
#include <stdio.h>
#include "crypto_aead.h"
#define FrameBitsIV 0x10
......@@ -150,7 +148,7 @@ int crypto_aead_encrypt(
((unsigned int*)mac)[1] = state[2];
*clen = mlen + 8;
memcpy(c + mlen, mac, 8);
for (j = 0; j < 8; j++) c[mlen+j] = mac[j];
return 0;
}
......
......@@ -7,8 +7,6 @@
Implemented by Hongjun Wu
*/
#include <string.h>
#include <stdio.h>
#include "crypto_aead.h"
#define FrameBitsIV 0x10
......@@ -134,7 +132,7 @@ int crypto_aead_encrypt(
((unsigned int*)mac)[1] = state[2];
*clen = mlen + 8;
memcpy(c + mlen, mac, 8);
for (j = 0; j < 8; j++) c[mlen+j] = mac[j];
return 0;
}
......
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 sign in to comment