Fix decrypt_data_into_keyslot

This commit is contained in:
Michael Scire 2018-02-27 19:59:51 -08:00
parent 0508ee29d8
commit 694872b4cc
2 changed files with 1 additions and 3 deletions

View file

@ -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; SECURITY_ENGINE->CRYPTO_KEYTABLE_DST_REG = keyslot_dst << 8;
flush_dcache_range(wrapped_key, (const uint8_t *)wrapped_key + wrapped_key_size); 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)) { 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)) {

View file

@ -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_addr_info_t addr_info; /* This should really be an array...but for our use case it works. */
} se_ll_t; } se_ll_t;
/* TODO: Define constants for the C driver. */
/* WIP, API subject to change. */ /* WIP, API subject to change. */