mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-08 02:14:41 -04:00
Fix async expMod output + smcUnwrapAesWrappedTitlekey
This commit is contained in:
parent
7e780301de
commit
1ffa239b5a
4 changed files with 18 additions and 13 deletions
|
@ -311,8 +311,8 @@ void se_exp_mod(unsigned int keyslot, void *buf, size_t size, unsigned int (*cal
|
|||
}
|
||||
|
||||
/* Endian swap the input. */
|
||||
for (size_t i = size; i > 0; i--) {
|
||||
stack_buf[i] = *((uint8_t *)buf + size - i);
|
||||
for (size_t i = 0; i < size; i++) {
|
||||
stack_buf[i] = *((uint8_t *)buf + size - i - 1);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue