Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/newhope/newhope_test.cc')
-rw-r--r--crypto/newhope/newhope_test.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/crypto/newhope/newhope_test.cc b/crypto/newhope/newhope_test.cc
index 6637393f..d94eee8f 100644
--- a/crypto/newhope/newhope_test.cc
+++ b/crypto/newhope/newhope_test.cc
@@ -23,6 +23,8 @@
#include "internal.h"
+namespace bssl {
+
// Set to 10 for quick execution. Tested up to 1,000,000.
static const int kNumTests = 10;
@@ -128,11 +130,13 @@ static bool TestInvalidAcceptMsg(void) {
return true;
}
+} // namespace bssl
+
int main(void) {
- for (int i = 0; i < kNumTests; i++) {
- if (!TestKeys() ||
- !TestInvalidSK() ||
- !TestInvalidAcceptMsg()) {
+ for (int i = 0; i < bssl::kNumTests; i++) {
+ if (!bssl::TestKeys() ||
+ !bssl::TestInvalidSK() ||
+ !bssl::TestInvalidAcceptMsg()) {
return 1;
}
}