mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-05-13 23:35:06 +12:00
Some more thinning
This commit is contained in:
parent
432b4b847b
commit
747a9345e3
2 changed files with 1 additions and 4 deletions
include
|
@ -93,7 +93,7 @@ namespace Crypto {
|
||||||
|
|
||||||
constexpr void updateNormalKey(std::size_t slotId) {
|
constexpr void updateNormalKey(std::size_t slotId) {
|
||||||
if (m_generator.has_value() && hasKeyX(slotId) && hasKeyY(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 keyX = keySlot.keyX.value();
|
||||||
AESKey keyY = keySlot.keyY.value();
|
AESKey keyY = keySlot.keyY.value();
|
||||||
|
|
||||||
|
|
|
@ -104,9 +104,6 @@ namespace Helpers {
|
||||||
return (value >> offset) & ones<T, bits>();
|
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
|
#ifdef HELPERS_APPLE_CLANG
|
||||||
template <class To, class From>
|
template <class To, class From>
|
||||||
constexpr To bit_cast(const From& from) noexcept {
|
constexpr To bit_cast(const From& from) noexcept {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue