From 660ab5e9990b050fe86dc4f8f5a7fa92cbc3dc75 Mon Sep 17 00:00:00 2001 From: Leonetienne Date: Thu, 26 May 2022 04:40:23 +0200 Subject: [PATCH] Unstupided mathematical expression --- GCryptLib/src/Key.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GCryptLib/src/Key.cpp b/GCryptLib/src/Key.cpp index a6d80da..f129c03 100644 --- a/GCryptLib/src/Key.cpp +++ b/GCryptLib/src/Key.cpp @@ -31,7 +31,7 @@ namespace Leonetienne::GCrypt { Key Key::LoadFromFile(const std::string& path) { // Read this many chars - const std::size_t maxChars = Key::BLOCK_SIZE_BITS / 8; + const std::size_t maxChars = Key::BLOCK_SIZE; // Open ifilestream for keyfile std::ifstream ifs(path, std::ios::in | std::ios::binary);