aboutsummaryrefslogtreecommitdiff
path: root/hal.h
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2019-02-05 13:11:19 -0500
committerPaul Selkirk <paul@psgd.org>2019-02-12 16:28:42 -0500
commit9bf6075da2640dc57d5a9de5825a249cb3f827c3 (patch)
tree8a720993729ee5493da20132d39c3fc687e6074b /hal.h
parente4fa00258cd920d4ea91b024ee007f5b44bac196 (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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/hal.h b/hal.h
index 9986de7..ce8ee2f 100644
--- a/hal.h
+++ b/hal.h
@@ -366,8 +366,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,