Move crypto-related symbols from ::crypto:: to ::nearby::crypto:: to deconflict

them with chromium ::crypto symbols of the same names.

PiperOrigin-RevId: 684566882
This commit is contained in:
hai007
2024-10-10 13:54:53 -07:00
committed by Copybara-Service
parent 526ebc8cfd
commit 05ae5583f8
42 changed files with 99 additions and 69 deletions
+2 -2
View File
@@ -26,7 +26,7 @@
#include <openssl/base.h>
#include <openssl/evp.h>
namespace crypto {
namespace nearby::crypto {
constexpr size_t kEd25519SignatureSize = 64;
constexpr size_t kEd25519PrivateKeySize = 32;
@@ -181,4 +181,4 @@ absl::Status Ed25519Verifier::Verify(absl::string_view data,
: absl::InternalError("Signature is invalid.");
}
} // namespace crypto
} // namespace nearby::crypto
+2 -2
View File
@@ -25,7 +25,7 @@
#include <openssl/digest.h>
#include <openssl/evp.h>
namespace crypto {
namespace nearby::crypto {
#ifdef OPENSSL_IS_BORINGSSL
using CryptoKeyUniquePtr = ::bssl::UniquePtr<EVP_PKEY>;
@@ -73,6 +73,6 @@ class CRYPTO_EXPORT Ed25519Verifier {
CryptoKeyUniquePtr public_key_;
};
} // namespace crypto
} // namespace nearby::crypto
#endif // THIRD_PARTY_NEARBY_INTERNAL_CRYPTO_ED25519_H_
+2 -2
View File
@@ -21,7 +21,7 @@
#include "gtest/gtest.h"
#include "absl/strings/escaping.h"
namespace crypto {
namespace nearby::crypto {
namespace {
using ::absl::StatusCode;
@@ -211,4 +211,4 @@ TEST(Ed25519SignerVerifierTest, NewKeypairFromRandomSeedRoundtrip) {
}
} // namespace
} // namespace crypto
} // namespace nearby::crypto