From 12ad762666944d609f47ad850326b55f700facf7 Mon Sep 17 00:00:00 2001 From: jakcron Date: Mon, 20 Aug 2018 19:24:23 +0800 Subject: [PATCH] [fnd::ecdsa] Add sEcdsa240Key/ --- lib/libfnd/include/fnd/ecdsa.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/lib/libfnd/include/fnd/ecdsa.h b/lib/libfnd/include/fnd/ecdsa.h index af38511..aa9e48b 100644 --- a/lib/libfnd/include/fnd/ecdsa.h +++ b/lib/libfnd/include/fnd/ecdsa.h @@ -56,6 +56,28 @@ namespace fnd return !operator==(other); } }; + + struct sEcdsa240Key + { + sEcdsa240Point pub; + sEcdsa240PrivateKey pvt; + + void operator=(const sEcdsa240Key& other) + { + this->pub = other.pub; + this->pvt = other.pvt; + } + + bool operator==(const sEcdsa240Key& other) const + { + return this->pub == other.pub && this->pvt == other.pvt; + } + + bool operator!=(const sEcdsa240Key& other) const + { + return !operator==(other); + } + }; #pragma pack (pop) } }