mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 20:31:14 +00:00
Fix LP0 TZRAM CMAC calculation
This commit is contained in:
parent
32bd5b3a73
commit
f624cccd0d
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ void save_se_and_power_down_cpu(void) {
|
||||||
flush_dcache_range(tzram_store_address, tzram_store_address + LP0_TZRAM_SAVE_SIZE);
|
flush_dcache_range(tzram_store_address, tzram_store_address + LP0_TZRAM_SAVE_SIZE);
|
||||||
|
|
||||||
/* Compute CMAC. */
|
/* Compute CMAC. */
|
||||||
se_compute_aes_256_cmac(KEYSLOT_SWITCH_LP0TZRAMKEY, tzram_cmac, sizeof(tzram_cmac), tzram_encryption_dst, LP0_TZRAM_SAVE_SIZE);
|
se_compute_aes_256_cmac(KEYSLOT_SWITCH_LP0TZRAMKEY, tzram_cmac, sizeof(tzram_cmac), tzram_encryption_src, LP0_TZRAM_SAVE_SIZE);
|
||||||
|
|
||||||
/* Write CMAC, lock registers. */
|
/* Write CMAC, lock registers. */
|
||||||
APBDEV_PMC_SECURE_SCRATCH112_0 = tzram_cmac[0];
|
APBDEV_PMC_SECURE_SCRATCH112_0 = tzram_cmac[0];
|
||||||
|
|
Loading…
Reference in a new issue