diff options
author | Rob Austein <sra@hactrn.net> | 2015-09-08 13:13:48 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2015-09-08 13:13:48 -0400 |
commit | 5106b886fe0d8af948bf28be2a571c247afc6020 (patch) | |
tree | 79c88af459e5e73d2ad38990ec19e37d0aeb32ce /hal.h | |
parent | c334ad5442340a6f6ba22d3d56970b7fe376df6b (diff) | |
parent | 809f0c7e9a4c49aa52b77ec2ab58a970a3ade389 (diff) |
Merge branch 'state_access'
Diffstat (limited to 'hal.h')
-rw-r--r-- | hal.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -511,6 +511,7 @@ typedef struct { const uint8_t * const digest_algorithm_id; size_t digest_algorithm_id_length; const void *driver; + unsigned can_restore_state : 1; } hal_hash_descriptor_t; /* @@ -560,6 +561,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. |