1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 20:17:44 +00:00

LibCrypto: Add hash methods to {Signed, Unsigned}BigInteger

These just use hash the underlying bytes that make up the integer words
This commit is contained in:
Idan Horowitz 2021-06-08 23:43:44 +03:00 committed by Linus Groh
parent 71c54198fa
commit b17a282b4b
4 changed files with 25 additions and 0 deletions

View file

@ -99,6 +99,8 @@ public:
SignedBigInteger multiplied_by(const UnsignedBigInteger& other) const;
SignedDivisionResult divided_by(const UnsignedBigInteger& divisor) const;
u32 hash() const;
void set_bit_inplace(size_t bit_index);
bool operator==(const SignedBigInteger& other) const;