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, 4 insertions, 8 deletions
diff --git a/crypto/newhope/newhope_test.cc b/crypto/newhope/newhope_test.cc
index d94eee8f..6637393f 100644
--- a/crypto/newhope/newhope_test.cc
+++ b/crypto/newhope/newhope_test.cc
@@ -23,8 +23,6 @@
#include "internal.h"
-namespace bssl {
-
// Set to 10 for quick execution. Tested up to 1,000,000.
static const int kNumTests = 10;
@@ -130,13 +128,11 @@ static bool TestInvalidAcceptMsg(void) {
return true;
}
-} // namespace bssl
-
int main(void) {
- for (int i = 0; i < bssl::kNumTests; i++) {
- if (!bssl::TestKeys() ||
- !bssl::TestInvalidSK() ||
- !bssl::TestInvalidAcceptMsg()) {
+ for (int i = 0; i < kNumTests; i++) {
+ if (!TestKeys() ||
+ !TestInvalidSK() ||
+ !TestInvalidAcceptMsg()) {
return 1;
}
}