Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lwc
/
candidates
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
017a9cea
authored
Sep 26, 2020
by
Hongjun Wu
Committed by
Sebastian Renner
Sep 26, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tinyjambu with for loop
parent
109ff80f
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
18 deletions
+7
-18
tinyjambu/Implementations/crypto_aead/tinyjambu128/opt/encrypt.c
+2
-3
tinyjambu/Implementations/crypto_aead/tinyjambu128/ref/encrypt.c
+1
-3
tinyjambu/Implementations/crypto_aead/tinyjambu192/opt/encrypt.c
+1
-3
tinyjambu/Implementations/crypto_aead/tinyjambu192/ref/encrypt.c
+1
-3
tinyjambu/Implementations/crypto_aead/tinyjambu256/opt/encrypt.c
+1
-3
tinyjambu/Implementations/crypto_aead/tinyjambu256/ref/encrypt.c
+1
-3
No files found.
tinyjambu/Implementations/crypto_aead/tinyjambu128/opt/encrypt.c
View file @
017a9cea
...
@@ -7,8 +7,7 @@
...
@@ -7,8 +7,7 @@
Implemented by: Hongjun Wu
Implemented by: Hongjun Wu
*/
*/
#include <string.h>
#include <stdio.h>
#include "crypto_aead.h"
#include "crypto_aead.h"
#define FrameBitsIV 0x10
#define FrameBitsIV 0x10
...
@@ -150,7 +149,7 @@ int crypto_aead_encrypt(
...
@@ -150,7 +149,7 @@ int crypto_aead_encrypt(
((
unsigned
int
*
)
mac
)[
1
]
=
state
[
2
];
((
unsigned
int
*
)
mac
)[
1
]
=
state
[
2
];
*
clen
=
mlen
+
8
;
*
clen
=
mlen
+
8
;
memcpy
(
c
+
mlen
,
mac
,
8
);
for
(
j
=
0
;
j
<
8
;
j
++
)
c
[
mlen
+
j
]
=
mac
[
j
];
return
0
;
return
0
;
}
}
...
...
tinyjambu/Implementations/crypto_aead/tinyjambu128/ref/encrypt.c
View file @
017a9cea
...
@@ -7,8 +7,6 @@
...
@@ -7,8 +7,6 @@
Implemented by: Hongjun Wu
Implemented by: Hongjun Wu
*/
*/
#include <string.h>
#include <stdio.h>
#include "crypto_aead.h"
#include "crypto_aead.h"
#define FrameBitsIV 0x10
#define FrameBitsIV 0x10
...
@@ -133,7 +131,7 @@ int crypto_aead_encrypt(
...
@@ -133,7 +131,7 @@ int crypto_aead_encrypt(
((
unsigned
int
*
)
mac
)[
1
]
=
state
[
2
];
((
unsigned
int
*
)
mac
)[
1
]
=
state
[
2
];
*
clen
=
mlen
+
8
;
*
clen
=
mlen
+
8
;
memcpy
(
c
+
mlen
,
mac
,
8
)
;
for
(
j
=
0
;
j
<
8
;
j
++
)
c
[
mlen
+
j
]
=
mac
[
j
]
;
return
0
;
return
0
;
}
}
...
...
tinyjambu/Implementations/crypto_aead/tinyjambu192/opt/encrypt.c
View file @
017a9cea
...
@@ -7,8 +7,6 @@
...
@@ -7,8 +7,6 @@
Implemented by Hongjun Wu
Implemented by Hongjun Wu
*/
*/
#include <string.h>
#include <stdio.h>
#include "crypto_aead.h"
#include "crypto_aead.h"
#define FrameBitsIV 0x10
#define FrameBitsIV 0x10
...
@@ -165,7 +163,7 @@ int crypto_aead_encrypt(
...
@@ -165,7 +163,7 @@ int crypto_aead_encrypt(
((
unsigned
int
*
)
mac
)[
1
]
=
state
[
2
];
((
unsigned
int
*
)
mac
)[
1
]
=
state
[
2
];
*
clen
=
mlen
+
8
;
*
clen
=
mlen
+
8
;
memcpy
(
c
+
mlen
,
mac
,
8
);
for
(
j
=
0
;
j
<
8
;
j
++
)
c
[
mlen
+
j
]
=
mac
[
j
];
return
0
;
return
0
;
}
}
...
...
tinyjambu/Implementations/crypto_aead/tinyjambu192/ref/encrypt.c
View file @
017a9cea
...
@@ -7,8 +7,6 @@
...
@@ -7,8 +7,6 @@
Implemented by: Hongjun Wu
Implemented by: Hongjun Wu
*/
*/
#include <string.h>
#include <stdio.h>
#include "crypto_aead.h"
#include "crypto_aead.h"
#define FrameBitsIV 0x10
#define FrameBitsIV 0x10
...
@@ -134,7 +132,7 @@ int crypto_aead_encrypt(
...
@@ -134,7 +132,7 @@ int crypto_aead_encrypt(
((
unsigned
int
*
)
mac
)[
1
]
=
state
[
2
];
((
unsigned
int
*
)
mac
)[
1
]
=
state
[
2
];
*
clen
=
mlen
+
8
;
*
clen
=
mlen
+
8
;
memcpy
(
c
+
mlen
,
mac
,
8
)
;
for
(
j
=
0
;
j
<
8
;
j
++
)
c
[
mlen
+
j
]
=
mac
[
j
]
;
return
0
;
return
0
;
}
}
...
...
tinyjambu/Implementations/crypto_aead/tinyjambu256/opt/encrypt.c
View file @
017a9cea
...
@@ -7,8 +7,6 @@
...
@@ -7,8 +7,6 @@
Implemented by: Hongjun Wu
Implemented by: Hongjun Wu
*/
*/
#include <string.h>
#include <stdio.h>
#include "crypto_aead.h"
#include "crypto_aead.h"
#define FrameBitsIV 0x10
#define FrameBitsIV 0x10
...
@@ -150,7 +148,7 @@ int crypto_aead_encrypt(
...
@@ -150,7 +148,7 @@ int crypto_aead_encrypt(
((
unsigned
int
*
)
mac
)[
1
]
=
state
[
2
];
((
unsigned
int
*
)
mac
)[
1
]
=
state
[
2
];
*
clen
=
mlen
+
8
;
*
clen
=
mlen
+
8
;
memcpy
(
c
+
mlen
,
mac
,
8
)
;
for
(
j
=
0
;
j
<
8
;
j
++
)
c
[
mlen
+
j
]
=
mac
[
j
]
;
return
0
;
return
0
;
}
}
...
...
tinyjambu/Implementations/crypto_aead/tinyjambu256/ref/encrypt.c
View file @
017a9cea
...
@@ -7,8 +7,6 @@
...
@@ -7,8 +7,6 @@
Implemented by Hongjun Wu
Implemented by Hongjun Wu
*/
*/
#include <string.h>
#include <stdio.h>
#include "crypto_aead.h"
#include "crypto_aead.h"
#define FrameBitsIV 0x10
#define FrameBitsIV 0x10
...
@@ -134,7 +132,7 @@ int crypto_aead_encrypt(
...
@@ -134,7 +132,7 @@ int crypto_aead_encrypt(
((
unsigned
int
*
)
mac
)[
1
]
=
state
[
2
];
((
unsigned
int
*
)
mac
)[
1
]
=
state
[
2
];
*
clen
=
mlen
+
8
;
*
clen
=
mlen
+
8
;
memcpy
(
c
+
mlen
,
mac
,
8
);
for
(
j
=
0
;
j
<
8
;
j
++
)
c
[
mlen
+
j
]
=
mac
[
j
];
return
0
;
return
0
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment