mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
LibCrypto: Document word order (endianness) of bigint
This commit is contained in:
parent
d33e3b7d8a
commit
67b24cb3a6
Notes:
sideshowbarker
2024-07-19 03:34:04 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/67b24cb3a68 Pull-request: https://github.com/SerenityOS/serenity/pull/3168 Reviewed-by: https://github.com/alimpfard
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);
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue