aboutsummaryrefslogtreecommitdiff
path: root/hal.h
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-07-18 10:58:45 +0200
committerRob Austein <sra@hactrn.net>2015-07-18 10:58:45 +0200
commit809f0c7e9a4c49aa52b77ec2ab58a970a3ade389 (patch)
tree238b49eaf0b923ad158ac4e3f9df112db369b7de /hal.h
parentb96b3aeb4ac1fae68e77bb38a1553855b8ef16f7 (diff)
Add support for dynamic allocation of hash and HMAC state, for cases
where it's unavoidable.
Diffstat (limited to 'hal.h')
-rw-r--r--hal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/hal.h b/hal.h
index 15ab8f9..7aeed42 100644
--- a/hal.h
+++ b/hal.h
@@ -567,6 +567,9 @@ extern hal_error_t hal_hmac_update(const hal_hmac_state_t state,
extern hal_error_t hal_hmac_finalize(const hal_hmac_state_t state,
uint8_t *hmac, const size_t length);
+extern void hal_hash_cleanup(hal_hash_state_t *state);
+
+extern void hal_hmac_cleanup(hal_hmac_state_t *state);
/*
* AES key wrap functions.