Skip to content
Snippets Groups Projects
Commit 63278ea7 authored by codecraft's avatar codecraft :crocodile:
Browse files

Change the format of the output a bit

parent 81e2c439
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@
#include <stdio.h>
#define CURVE25519_PUB_TO_ED25519_PUB
#define PRIV_FORCE;
int main(void) {
uint8_t priv_in[32] = {0, 5, 23, 5, 23, 5, 6, 43, 34, 46, 43,
......@@ -11,6 +12,8 @@ int main(void) {
uint8_t priv_out[32];
#ifdef PRIV_FORCE
printf("priv_force_sign test:\n\n");
printf("with sign set to false\n\n");
priv_force_sign(priv_out, priv_in, false);
print_priv("RESULT: PRIV_OUT: ", priv_out);
......@@ -21,13 +24,12 @@ int main(void) {
#endif
#ifdef CURVE25519_PUB_TO_ED25519_PUB
printf("curve25519_pub_to_ed25519_pub test: \n\n");
printf("with sign set to false\n\n");
curve25519_pub_to_ed25519_pub(priv_out, priv_in, false);
print_priv("RESULT: PRIV_OUT: ", priv_out);
printf("\n\nset sign to true\n\n");
curve25519_pub_to_ed25519_pub(priv_out, priv_in, true);
print_priv("RESULT: PRIV_OUT: ", priv_out);
#endif
printf("sc_neg test: \n\n");
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment