From 747a9345e3a272fef7b568e9b26fe43920000e2f Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Tue, 27 Jun 2023 18:04:56 +0300 Subject: [PATCH] Some more thinning --- include/crypto/aes_engine.hpp | 2 +- include/helpers.hpp | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/include/crypto/aes_engine.hpp b/include/crypto/aes_engine.hpp index 3cb75bac..96ec900e 100644 --- a/include/crypto/aes_engine.hpp +++ b/include/crypto/aes_engine.hpp @@ -93,7 +93,7 @@ namespace Crypto { constexpr void updateNormalKey(std::size_t slotId) { if (m_generator.has_value() && hasKeyX(slotId) && hasKeyY(slotId)) { - auto &keySlot = m_slots.at(slotId); + auto& keySlot = m_slots.at(slotId); AESKey keyX = keySlot.keyX.value(); AESKey keyY = keySlot.keyY.value(); diff --git a/include/helpers.hpp b/include/helpers.hpp index 40e8c0b7..53c57c7c 100644 --- a/include/helpers.hpp +++ b/include/helpers.hpp @@ -104,9 +104,6 @@ namespace Helpers { return (value >> offset) & ones<T, bits>(); } - // For values < 0x99 - static constexpr inline u8 incBCDByte(u8 value) { return ((value & 0xf) == 0x9) ? value + 7 : value + 1; } - #ifdef HELPERS_APPLE_CLANG template <class To, class From> constexpr To bit_cast(const From& from) noexcept {