LibCrypto: Document word order (endianness) of bigint

This commit is contained in:
Ben Wiederhake 2020-08-15 22:53:28 +02:00 committed by Andreas Kling
parent d33e3b7d8a
commit 67b24cb3a6
Notes: sideshowbarker 2024-07-19 03:34:04 +09:00

View file

@ -114,6 +114,8 @@ private:
ALWAYS_INLINE static u32 shift_left_get_one_word(const UnsignedBigInteger& number, size_t num_bits, size_t result_word_index);
static constexpr size_t BITS_IN_WORD = 32;
// Little endian
// m_word[0] + m_word[1] * 256 + m_word[2] * 65536 + ...
AK::Vector<u32, STARTING_WORD_SIZE> m_words;
// Used to indicate a negative result, or a result of an invalid operation