LibCrypto: Introduce a falible API for SignedBigInteger::shift_left

This commit is contained in:
Jess 2025-02-19 02:20:30 +13:00 committed by Tim Flynn
commit 8fda05d8b7
Notes: github-actions[bot] 2025-02-19 14:02:02 +00:00
6 changed files with 48 additions and 8 deletions

View file

@ -120,6 +120,8 @@ public:
[[nodiscard]] UnsignedBigInteger multiplied_by(UnsignedBigInteger const& other) const;
[[nodiscard]] UnsignedDivisionResult divided_by(UnsignedBigInteger const& divisor) const;
[[nodiscard]] ErrorOr<UnsignedBigInteger> try_shift_left(size_t num_bits) const;
[[nodiscard]] u32 hash() const;
void set_bit_inplace(size_t bit_index);