From 694872b4cce390d9ee796d984726f2cc9947a02b Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Tue, 27 Feb 2018 19:59:51 -0800 Subject: [PATCH] Fix decrypt_data_into_keyslot --- exosphere/src/se.c | 2 +- exosphere/src/se.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/exosphere/src/se.c b/exosphere/src/se.c index d19863a12..50d6c9592 100644 --- a/exosphere/src/se.c +++ b/exosphere/src/se.c @@ -205,7 +205,7 @@ void decrypt_data_into_keyslot(unsigned int keyslot_dst, unsigned int keyslot_sr SECURITY_ENGINE->CRYPTO_KEYTABLE_DST_REG = keyslot_dst << 8; flush_dcache_range(wrapped_key, (const uint8_t *)wrapped_key + wrapped_key_size); - /* TODO: trigger_se_aes_op(OP_START, NULL, 0, wrapped_key, wrapped_key_size); */ + trigger_se_blocking_op(OP_START, NULL, 0, wrapped_key, wrapped_key_size); } void se_aes_crypt_insecure_internal(unsigned int keyslot, uint32_t out_ll_paddr, uint32_t in_ll_paddr, size_t size, unsigned int crypt_config, bool encrypt, unsigned int (*callback)(void)) { diff --git a/exosphere/src/se.h b/exosphere/src/se.h index 4f598d298..b10a81e75 100644 --- a/exosphere/src/se.h +++ b/exosphere/src/se.h @@ -157,8 +157,6 @@ typedef struct { se_addr_info_t addr_info; /* This should really be an array...but for our use case it works. */ } se_ll_t; -/* TODO: Define constants for the C driver. */ - /* WIP, API subject to change. */