aboutsummaryrefslogtreecommitdiff
path: root/hal.h
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-09-08 13:13:48 -0400
committerRob Austein <sra@hactrn.net>2015-09-08 13:13:48 -0400
commit5106b886fe0d8af948bf28be2a571c247afc6020 (patch)
tree79c88af459e5e73d2ad38990ec19e37d0aeb32ce /hal.h
parentc334ad5442340a6f6ba22d3d56970b7fe376df6b (diff)
parent809f0c7e9a4c49aa52b77ec2ab58a970a3ade389 (diff)
Merge branch 'state_access'
Diffstat (limited to 'hal.h')
-rw-r--r--hal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/hal.h b/hal.h
index 4a31398..64377b4 100644
--- a/hal.h
+++ b/hal.h
@@ -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.