Remove openssl imports from public header files
Currently, protocol.h includes openssl/curve25519.h, meaning code which
wishes to link against a roughtime library must also have the OpenSSL/
BoringSSL source available. That's an unneeded dependency.
This CL introduces three new symbols for the Ed25519 public key, private
key, and signature lengths need in the headers and adds static asserts
in protocol.cc to pin them to the libcrypto values.
Change-Id: I1ef78e66bf83ae98b0a82a12d4130c053c70c5e2
diff --git a/simple_server_main.cc b/simple_server_main.cc
index c008513..225859a 100644
--- a/simple_server_main.cc
+++ b/simple_server_main.cc
@@ -26,7 +26,7 @@
// root_private_key is an Ed25519 private key used by simple_server. The
// private part consists of all zeros and so is only for use in this example.
-constexpr uint8_t root_private_key[ED25519_PRIVATE_KEY_LEN] = {
+constexpr uint8_t root_private_key[roughtime::kPrivateKeyLength] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x6a, 0x27, 0xbc,