mirror of
https://github.com/jakcron/nstool.git
synced 2024-12-23 03:05:27 +00:00
[fnd::ecdsa] Add sEcdsa240Key/
This commit is contained in:
parent
9b759b8d35
commit
12ad762666
|
@ -56,6 +56,28 @@ namespace fnd
|
||||||
return !operator==(other);
|
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)
|
#pragma pack (pop)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue