Add wrapper for async SMCs

This commit is contained in:
Michael Scire
2018-02-17 16:00:53 -08:00
parent 8ea1ac0ecc
commit 49e1e6f41e
2 changed files with 50 additions and 1 deletions

View File

@@ -108,6 +108,8 @@ void set_se_ctr(const char *ctr);
void se_crypt_aes(unsigned int keyslot, unsigned char *dst, unsigned int dst_size, const unsigned char *src, unsigned int src_size, unsigned int config, unsigned int mode, unsigned int (*callback)(void));
void se_exp_mod(unsigned int keyslot, unsigned char *buf, unsigned int size, unsigned int (*callback)(void));
void se_generate_random(unsigned int keyslot, unsigned char *dst, unsigned int size);
/* TODO: SE context save API, consider extending AES API for secure world vs non-secure world operations. */
/* In particular, smc_crypt_aes takes in raw DMA lists, and we need to support that. */