mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-19 15:58:56 +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:
parent
71c54198fa
commit
b17a282b4b
Notes:
sideshowbarker
2024-07-18 12:34:22 +09:00
Author: https://github.com/IdanHo
Commit: b17a282b4b
Pull-request: https://github.com/SerenityOS/serenity/pull/7928
Reviewed-by: https://github.com/linusg
4 changed files with 25 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue