Commit 5a8fa488 by Farnoud Farahmand

pre final version. hardware results are not verified

parent 39e28dc7
......@@ -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);
......
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