From f723881280f8226dad2c4a989affc96d70e6c0d2 Mon Sep 17 00:00:00 2001 From: Kagami Hiiragi Date: Thu, 15 Jan 2015 00:29:34 +0300 Subject: [PATCH] Cosmetics --- ecdh.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ecdh.cc b/ecdh.cc index e8f0890..48b670c 100644 --- a/ecdh.cc +++ b/ecdh.cc @@ -3,8 +3,6 @@ #include #include -#define PRIVKEY_SIZE 32 -#define PUBKEY_SIZE 65 #define CHECK(cond) do { if (!(cond)) goto error; } while (0) using node::Buffer; @@ -13,6 +11,9 @@ using v8::FunctionTemplate; using v8::Object; using v8::String; +static const int PRIVKEY_SIZE = 32; +static const int PUBKEY_SIZE = 65; + int derive(const uint8_t* privkey_a, const uint8_t* pubkey_b, uint8_t* shared) { int rc = -1; int res;