From 089ac96f2ba6eb3ea6eecbe4eae8aee0a85f2cb5 Mon Sep 17 00:00:00 2001 From: Scott Powell Date: Wed, 19 Mar 2025 17:30:35 +1100 Subject: * verify() fix moved to Identity class --- src/Identity.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/Identity.cpp') diff --git a/src/Identity.cpp b/src/Identity.cpp index e7c57d7e..138c66b7 100644 --- a/src/Identity.cpp +++ b/src/Identity.cpp @@ -2,6 +2,7 @@ #include #define ED25519_NO_SEED 1 #include +#include namespace mesh { @@ -14,7 +15,12 @@ Identity::Identity(const char* pub_hex) { } bool Identity::verify(const uint8_t* sig, const uint8_t* message, int msg_len) const { +#if 0 + // NOTE: memory corruption bug was found in this function!! return ed25519_verify(sig, message, msg_len, pub_key); +#else + return Ed25519::verify(sig, this->pub_key, message, msg_len); +#endif } bool Identity::readFrom(Stream& s) { -- cgit v1.2.3-70-g09d2