From 4778c8bdfbea09c052dd5f567ba1abdf46d3d9cc Mon Sep 17 00:00:00 2001 From: orignal Date: Mon, 24 Nov 2014 21:48:01 -0500 Subject: [PATCH] fixed excess data for P521 --- Identity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Identity.cpp b/Identity.cpp index b6b50f4c..f2be3ba7 100644 --- a/Identity.cpp +++ b/Identity.cpp @@ -63,7 +63,7 @@ namespace data case SIGNING_KEY_TYPE_ECDSA_SHA512_P521: { memcpy (m_StandardIdentity.signingKey, signingKey, 128); - size_t excessLen = i2p::crypto::ECDSAP521_KEY_LENGTH - 128; // 4 = 132 - 128 + excessLen = i2p::crypto::ECDSAP521_KEY_LENGTH - 128; // 4 = 132 - 128 excessBuf = new uint8_t[excessLen]; memcpy (excessBuf, signingKey + 128, excessLen); break;