DerivedKeyConfig is comparable
This commit is contained in:
parent
4cf886c91f
commit
4059c6a9c9
@ -60,6 +60,14 @@ namespace cpputils {
|
||||
uint32_t _p;
|
||||
};
|
||||
|
||||
inline bool operator==(const DerivedKeyConfig &lhs, const DerivedKeyConfig &rhs) {
|
||||
return lhs.salt() == rhs.salt() && lhs.N() == rhs.N() && lhs.r() == rhs.r() && lhs.p() == rhs.p();
|
||||
}
|
||||
|
||||
inline bool operator!=(const DerivedKeyConfig &lhs, const DerivedKeyConfig &rhs) {
|
||||
return !operator==(lhs, rhs);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user