Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SW_HW_Platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Farnoud Farahmand
SW_HW_Platform
Commits
5a8fa488
Commit
5a8fa488
authored
Sep 08, 2019
by
Farnoud Farahmand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pre final version. hardware results are not verified
parent
39e28dc7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
PQCgenKAT_encrypt.c
c_baremetal/PQCgenKAT_encrypt.c
+11
-11
No files found.
c_baremetal/PQCgenKAT_encrypt.c
View file @
5a8fa488
...
...
@@ -197,17 +197,17 @@ frequency during the runtime) */
xil_printf
(
"----------------------------------------
\r\n
"
);
//
if ( mlen != mlen1 ) {
//
xil_printf("crypto_encrypt_open returned bad 'mlen': Got <%llu>, expected <%llu>\r\n", mlen1, mlen);
//
cleanup_platform();
//
return -1;
//
}
//
//
if ( memcmp(m, m1, mlen) ) {
//
xil_printf("crypto_encrypt_open returned bad 'm' value\r\n");
//
cleanup_platform();
//
return -1;
//
}
if
(
mlen
!=
mlen1
)
{
xil_printf
(
"crypto_encrypt_open returned bad 'mlen': Got <%llu>, expected <%llu>
\r\n
"
,
mlen1
,
mlen
);
cleanup_platform
();
return
-
1
;
}
if
(
memcmp
(
m
,
m1
,
mlen
)
)
{
xil_printf
(
"crypto_encrypt_open returned bad 'm' value
\r\n
"
);
cleanup_platform
();
return
-
1
;
}
free
(
m
);
free
(
m1
);
...
...
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