From 3d27550ab7c1be69eae27c051a0a0fdb1e2f1972 Mon Sep 17 00:00:00 2001 From: DexesTTP Date: Tue, 18 May 2021 22:57:07 +0200 Subject: [PATCH] LibCrypto: Make GCM movable --- Userland/Libraries/LibCrypto/Cipher/Mode/GCM.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibCrypto/Cipher/Mode/GCM.h b/Userland/Libraries/LibCrypto/Cipher/Mode/GCM.h index 0f5610ae63..9393dd5a80 100644 --- a/Userland/Libraries/LibCrypto/Cipher/Mode/GCM.h +++ b/Userland/Libraries/LibCrypto/Cipher/Mode/GCM.h @@ -37,7 +37,7 @@ public: this->cipher().encrypt_block(key_block, key_block); key_block.bytes().copy_to(m_auth_key); - m_ghash = make(m_auth_key); + m_ghash = Authentication::GHash(m_auth_key); } virtual String class_name() const override @@ -126,7 +126,7 @@ private: static constexpr auto block_size = T::BlockType::BlockSizeInBits / 8; u8 m_auth_key_storage[block_size]; Bytes m_auth_key { m_auth_key_storage, block_size }; - OwnPtr m_ghash; + Optional m_ghash; }; }