mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 04:37:22 +00:00
LibCrypto: Add bitwise operations (and/or/xor)
This commit is contained in:
parent
fbb1d9afe5
commit
02c53fd1f9
Notes:
sideshowbarker
2024-07-19 05:46:34 +09:00
Author: https://github.com/alimpfard
Commit: 02c53fd1f9
Pull-request: https://github.com/SerenityOS/serenity/pull/2509
Reviewed-by: https://github.com/linusg
5 changed files with 333 additions and 0 deletions
|
@ -107,12 +107,19 @@ public:
|
|||
|
||||
SignedBigInteger plus(const SignedBigInteger& other) const;
|
||||
SignedBigInteger minus(const SignedBigInteger& other) const;
|
||||
SignedBigInteger bitwise_or(const SignedBigInteger& other) const;
|
||||
SignedBigInteger bitwise_and(const SignedBigInteger& other) const;
|
||||
SignedBigInteger bitwise_xor(const SignedBigInteger& other) const;
|
||||
SignedBigInteger bitwise_not() const;
|
||||
SignedBigInteger shift_left(size_t num_bits) const;
|
||||
SignedBigInteger multiplied_by(const SignedBigInteger& other) const;
|
||||
SignedDivisionResult divided_by(const SignedBigInteger& divisor) const;
|
||||
|
||||
SignedBigInteger plus(const UnsignedBigInteger& other) const;
|
||||
SignedBigInteger minus(const UnsignedBigInteger& other) const;
|
||||
SignedBigInteger bitwise_or(const UnsignedBigInteger& other) const;
|
||||
SignedBigInteger bitwise_and(const UnsignedBigInteger& other) const;
|
||||
SignedBigInteger bitwise_xor(const UnsignedBigInteger& other) const;
|
||||
SignedBigInteger multiplied_by(const UnsignedBigInteger& other) const;
|
||||
SignedDivisionResult divided_by(const UnsignedBigInteger& divisor) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue