diff options
author | Paul Selkirk <paul@psgd.org> | 2019-02-05 13:11:19 -0500 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2019-04-09 18:08:45 -0400 |
commit | 1376b16e3bead769e56e531b1c121ea68b60f49f (patch) | |
tree | d82db424fb43708baae51210f9ec7afb47d991a3 /hal.h | |
parent | 411b5a9ee7d28d2bce9b297a865132e39712d93b (diff) |
Track Joachim's latest keywrap core - KEK remains in the AES core until it times out or is explicitly zeroed out.
Diffstat (limited to 'hal.h')
-rw-r--r-- | hal.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -378,8 +378,17 @@ extern const hal_hash_descriptor_t *hal_hmac_get_descriptor(const hal_hmac_state * AES key wrap functions. */ + extern int hal_aes_use_keywrap_core(int onoff); +extern hal_error_t hal_aes_keywrap_get_stats(unsigned *load, unsigned *skip); + +extern void hal_aes_keywrap_reset_stats(void); + +extern hal_error_t hal_aes_keywrap_zero(hal_core_t *core); + +extern hal_error_t hal_aes_keywrap_set_timeout(hal_core_t *core, uint32_t cycles); + extern hal_error_t hal_aes_keywrap(hal_core_t *core, const uint8_t *kek, const size_t kek_length, const uint8_t *plaintext, const size_t plaintext_length, |