mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:47:35 +00:00
LibCrypto: Document word order (endianness) of bigint
This commit is contained in:
parent
d33e3b7d8a
commit
67b24cb3a6
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
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;
|
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;
|
AK::Vector<u32, STARTING_WORD_SIZE> m_words;
|
||||||
|
|
||||||
// Used to indicate a negative result, or a result of an invalid operation
|
// Used to indicate a negative result, or a result of an invalid operation
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue