From 492962502f0e03225e85cf0539afc4df17166f24 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Mon, 17 Jul 2023 20:39:12 -0400 Subject: [PATCH] LibCrypto: Make create_aligned_buffer() static I ended up not needing this, but there's no reason for this function to not be static. --- Userland/Libraries/LibCrypto/Cipher/Mode/Mode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibCrypto/Cipher/Mode/Mode.h b/Userland/Libraries/LibCrypto/Cipher/Mode/Mode.h index 63074bb9ef..6c8e554727 100644 --- a/Userland/Libraries/LibCrypto/Cipher/Mode/Mode.h +++ b/Userland/Libraries/LibCrypto/Cipher/Mode/Mode.h @@ -24,7 +24,7 @@ public: T const& cipher() const { return m_cipher; } - ErrorOr create_aligned_buffer(size_t input_size) const + static ErrorOr create_aligned_buffer(size_t input_size) { size_t remainder = (input_size + T::block_size()) % T::block_size(); if (remainder == 0)