mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 12:21:18 +00:00
crypto: fix aes-128 dec on arm64/cortex-a57
This commit is contained in:
parent
f23f490cb4
commit
3fff114b14
1 changed files with 2 additions and 2 deletions
|
@ -205,7 +205,7 @@ namespace ams::crypto::impl {
|
|||
AMS_UNUSED(src_size, dst_size);
|
||||
|
||||
/* Get the key. */
|
||||
const u8 *key8 = reinterpret_cast<const u8 *>(m_round_keys) + (RoundCount + BlockSize);
|
||||
const u8 *key8 = reinterpret_cast<const u8 *>(m_round_keys) + (RoundCount * BlockSize);
|
||||
|
||||
/* Read the block. */
|
||||
uint8x16_t block = vld1q_u8(static_cast<const u8 *>(src));
|
||||
|
@ -232,7 +232,7 @@ namespace ams::crypto::impl {
|
|||
}
|
||||
|
||||
/* Specializations when building specifically for cortex-a57 (or for apple M* processors). */
|
||||
#if defined(ATMOSPHERE_CPU_CORTEX_A57) || defined(ATMOSPHERE_OS_MACOS)
|
||||
#if defined(ATMOSPHERE_CPU_ARM_CORTEX_A57) || defined(ATMOSPHERE_OS_MACOS)
|
||||
|
||||
namespace {
|
||||
|
||||
|
|
Loading…
Reference in a new issue