summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCrypto/BigInt
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-02-25 21:10:47 +0100
committerAndreas Kling <kling@serenityos.org>2021-02-26 16:59:56 +0100
commite265054c12a4fb596b26789e18f342711cf3ef95 (patch)
tree6539a9026bea3294693a9ae932b3528b3761d695 /Userland/Libraries/LibCrypto/BigInt
parentbe9df404fd180e1b3cab0c1bddce1f589de8e9f0 (diff)
downloadserenity-e265054c12a4fb596b26789e18f342711cf3ef95.zip
Everywhere: Remove a bunch of redundant 'AK::' namespace prefixes
This is basically just for consistency, it's quite strange to see multiple AK container types next to each other, some with and some without the namespace prefix - we're 'using AK::Foo;' a lot and should leverage that. :^)
Diffstat (limited to 'Userland/Libraries/LibCrypto/BigInt')
-rw-r--r--Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.h2
-rw-r--r--Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.h8
2 files changed, 5 insertions, 5 deletions
diff --git a/Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.h b/Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.h
index b2ff1dd118..753a27c47c 100644
--- a/Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.h
+++ b/Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.h
@@ -64,7 +64,7 @@ public:
return { UnsignedBigInteger::create_invalid(), false };
}
- static SignedBigInteger import_data(const AK::StringView& data) { return import_data((const u8*)data.characters_without_null_termination(), data.length()); }
+ static SignedBigInteger import_data(const StringView& data) { return import_data((const u8*)data.characters_without_null_termination(), data.length()); }
static SignedBigInteger import_data(const u8* ptr, size_t length);
size_t export_data(Bytes, bool remove_leading_zeros = false) const;
diff --git a/Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.h b/Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.h
index 07d2ca4848..becae66749 100644
--- a/Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.h
+++ b/Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.h
@@ -42,7 +42,7 @@ class UnsignedBigInteger {
public:
UnsignedBigInteger(u32 x) { m_words.append(x); }
- explicit UnsignedBigInteger(AK::Vector<u32, STARTING_WORD_SIZE>&& words)
+ explicit UnsignedBigInteger(Vector<u32, STARTING_WORD_SIZE>&& words)
: m_words(move(words))
{
}
@@ -53,7 +53,7 @@ public:
static UnsignedBigInteger create_invalid();
- static UnsignedBigInteger import_data(const AK::StringView& data) { return import_data((const u8*)data.characters_without_null_termination(), data.length()); }
+ static UnsignedBigInteger import_data(const StringView& data) { return import_data((const u8*)data.characters_without_null_termination(), data.length()); }
static UnsignedBigInteger import_data(const u8* ptr, size_t length)
{
return UnsignedBigInteger(ptr, length);
@@ -64,7 +64,7 @@ public:
static UnsignedBigInteger from_base10(const String& str);
String to_base10() const;
- const AK::Vector<u32, STARTING_WORD_SIZE>& words() const { return m_words; }
+ const Vector<u32, STARTING_WORD_SIZE>& words() const { return m_words; }
void set_to_0();
void set_to(u32 other);
@@ -116,7 +116,7 @@ private:
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;
+ Vector<u32, STARTING_WORD_SIZE> m_words;
// Used to indicate a negative result, or a result of an invalid operation
bool m_is_invalid { false };