Add #defines for ED25519 key and signature lengths.
Change-Id: I3299f8fc4602c24688339dbffb1d7939282ad6b3
Reviewed-on: https://boringssl-review.googlesource.com/6723
Reviewed-by: Adam Langley <agl@google.com>
diff --git a/include/openssl/curve25519.h b/include/openssl/curve25519.h
index 572272d..30c6470 100644
--- a/include/openssl/curve25519.h
+++ b/include/openssl/curve25519.h
@@ -61,6 +61,10 @@
* Ed25519 is a signature scheme using a twisted-Edwards curve that is
* birationally equivalent to curve25519. */
+#define ED25519_PRIVATE_KEY_LEN 64
+#define ED25519_PUBLIC_KEY_LEN 32
+#define ED25519_SIGNATURE_LEN 64
+
/* ED25519_keypair sets |out_public_key| and |out_private_key| to a freshly
* generated, public–private key pair. */
OPENSSL_EXPORT void ED25519_keypair(uint8_t out_public_key[32],