summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibTLS/Record.cpp
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/LibTLS/Record.cpp
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/LibTLS/Record.cpp')
-rw-r--r--Userland/Libraries/LibTLS/Record.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibTLS/Record.cpp b/Userland/Libraries/LibTLS/Record.cpp
index f9822dc377..3b0eefcf71 100644
--- a/Userland/Libraries/LibTLS/Record.cpp
+++ b/Userland/Libraries/LibTLS/Record.cpp
@@ -127,7 +127,7 @@ void TLSv12::update_packet(ByteBuffer& packet)
u8 iv[16];
Bytes iv_bytes { iv, 16 };
Bytes { m_context.crypto.local_aead_iv, 4 }.copy_to(iv_bytes);
- AK::fill_with_random(iv_bytes.offset(4), 8);
+ fill_with_random(iv_bytes.offset(4), 8);
memset(iv_bytes.offset(12), 0, 4);
// write the random part of the iv out
@@ -164,7 +164,7 @@ void TLSv12::update_packet(ByteBuffer& packet)
VERIFY(buffer_position == buffer.size());
auto iv = ByteBuffer::create_uninitialized(iv_size);
- AK::fill_with_random(iv.data(), iv.size());
+ fill_with_random(iv.data(), iv.size());
// write it into the ciphertext portion of the message
ct.overwrite(header_size, iv.data(), iv.size());