diff options
Diffstat (limited to 'crypto/ec/ec_test.cc')
-rw-r--r-- | crypto/ec/ec_test.cc | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/crypto/ec/ec_test.cc b/crypto/ec/ec_test.cc index 864cd499..23befeb2 100644 --- a/crypto/ec/ec_test.cc +++ b/crypto/ec/ec_test.cc @@ -26,8 +26,6 @@ #include "../test/scoped_types.h" -namespace bssl { - // kECKeyWithoutPublic is an ECPrivateKey with the optional publicKey field // omitted. static const uint8_t kECKeyWithoutPublic[] = { @@ -163,8 +161,8 @@ static bool Testd2i_ECPrivateKey() { fprintf(stderr, "Failed to get public key in affine coordinates.\n"); return false; } - ScopedString x_hex(BN_bn2hex(x.get())); - ScopedString y_hex(BN_bn2hex(y.get())); + ScopedOpenSSLString x_hex(BN_bn2hex(x.get())); + ScopedOpenSSLString y_hex(BN_bn2hex(y.get())); if (!x_hex || !y_hex) { return false; } @@ -473,17 +471,15 @@ static bool ForEachCurve(bool (*test_func)(int nid)) { return true; } -} // namespace bssl - int main(void) { CRYPTO_library_init(); - if (!bssl::Testd2i_ECPrivateKey() || - !bssl::TestZeroPadding() || - !bssl::TestSpecifiedCurve() || - !bssl::ForEachCurve(bssl::TestSetAffine) || - !bssl::ForEachCurve(bssl::TestAddingEqualPoints) || - !bssl::TestArbitraryCurve()) { + if (!Testd2i_ECPrivateKey() || + !TestZeroPadding() || + !TestSpecifiedCurve() || + !ForEachCurve(TestSetAffine) || + !ForEachCurve(TestAddingEqualPoints) || + !TestArbitraryCurve()) { fprintf(stderr, "failed\n"); return 1; } |