[fnd::ecdsa] Add sEcdsa240Key/

This commit is contained in:
jakcron 2018-08-20 19:24:23 +08:00
parent 9b759b8d35
commit 12ad762666

View file

@ -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)
}
}