-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
74 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
diff --git a/src/curve25519/ed25519/tests/internal_fast_tests.c b/src/curve25519/ed25519/tests/internal_fast_tests.c | ||
index 6566e25..5e5db58 100644 | ||
--- a/src/curve25519/ed25519/tests/internal_fast_tests.c | ||
+++ b/src/curve25519/ed25519/tests/internal_fast_tests.c | ||
@@ -27,6 +27,7 @@ | ||
} \ | ||
} while (0) | ||
|
||
+#define MSG_LEN 200 | ||
|
||
int sha512_fast_test(int silent) | ||
{ | ||
@@ -293,7 +294,6 @@ int curvesigs_fast_test(int silent) | ||
0x0b, 0xd6, 0xc1, 0x97, 0x3f, 0x7d, 0x78, 0x0a, | ||
0xb3, 0x95, 0x18, 0x62, 0x68, 0x03, 0xd7, 0x82, | ||
}; | ||
- const int MSG_LEN = 200; | ||
unsigned char privkey[32]; | ||
unsigned char pubkey[32]; | ||
unsigned char signature[64]; | ||
@@ -333,7 +333,6 @@ int xeddsa_fast_test(int silent) | ||
0x69, 0xad, 0xa5, 0x76, 0xd6, 0x3d, 0xca, 0xf2, | ||
0xac, 0x32, 0x6c, 0x11, 0xd0, 0xb9, 0x77, 0x02, | ||
}; | ||
- const int MSG_LEN = 200; | ||
unsigned char privkey[32]; | ||
unsigned char pubkey[32]; | ||
unsigned char signature[64]; | ||
diff --git a/src/curve25519/ed25519/tests/internal_slow_tests.c b/src/curve25519/ed25519/tests/internal_slow_tests.c | ||
index 740ddbe..af870e6 100644 | ||
--- a/src/curve25519/ed25519/tests/internal_slow_tests.c | ||
+++ b/src/curve25519/ed25519/tests/internal_slow_tests.c | ||
@@ -26,6 +26,7 @@ | ||
} \ | ||
} while (0) | ||
|
||
+#define MSG_LEN 200 | ||
|
||
|
||
int curvesigs_slow_test(int silent, int iterations) | ||
@@ -43,7 +44,6 @@ int curvesigs_slow_test(int silent, int iterations) | ||
}; | ||
|
||
int count; | ||
- const int MSG_LEN = 200; | ||
unsigned char privkey[32]; | ||
unsigned char pubkey[32]; | ||
unsigned char signature[64]; | ||
@@ -110,7 +110,6 @@ int xeddsa_slow_test(int silent, int iterations) | ||
}; | ||
|
||
int count; | ||
- const int MSG_LEN = 200; | ||
unsigned char privkey[32]; | ||
unsigned char pubkey[32]; | ||
unsigned char signature[96]; | ||
@@ -177,7 +176,6 @@ int xeddsa_to_curvesigs_slow_test(int silent, int iterations) | ||
}; | ||
|
||
int count; | ||
- const int MSG_LEN = 200; | ||
unsigned char privkey[32]; | ||
unsigned char pubkey[32]; | ||
unsigned char signature[96]; | ||
@@ -294,7 +292,6 @@ int generalized_xveddsa_slow_test(int silent, int iterations) | ||
*/ | ||
|
||
int count; | ||
- const int MSG_LEN = 200; | ||
unsigned char privkey[32]; | ||
unsigned char pubkey[32]; | ||
unsigned char signature[96]; |