mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
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:
@@ -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
|
||||
|
||||
@@ -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_
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user