change key for a new round of experiments

This commit is contained in:
2020-02-25 20:18:09 -05:00
parent d0af1d9819
commit bf6153062d
3 changed files with 19 additions and 1 deletions

View File

@@ -14,6 +14,21 @@ static inline int hardware_aes(unsigned long long cmd,
return ((BOOTROM_FUNC_I) ADDR_HARDWARE_AES)(cmd, src, dst, len, opts, key, iv);
}
static inline int get_random(void *buf, int len)
{
return ((BOOTROM_FUNC_I) ADDR_GET_RANDOM)(buf, len);
}
static inline unsigned int get_entropy()
{
return ((BOOTROM_FUNC_I) ADDR_GET_ENTROPY)();
}
static inline void sha1(void *src, int len, void *dst)
{
return ((BOOTROM_FUNC_V) ADDR_SHA1)(src, len, dst);
}
/* Timing */
static inline int clock_gate(int device, int power)
{