diff options
author | Paul Selkirk <paul@psgd.org> | 2018-04-19 18:36:12 -0400 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2018-04-19 18:36:12 -0400 |
commit | 96ef896aa0c2b6b8a433401fde5b1d9ea607b6aa (patch) | |
tree | 14d01f4518413d57c0cba19cd7270183e06e38ea /hal_internal.h | |
parent | 99956039e4e93bf075d4f75f3b8adba9f2ddffec (diff) |
Reconstruct the hashsig hash tree(s) on device restart.
Diffstat (limited to 'hal_internal.h')
-rw-r--r-- | hal_internal.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/hal_internal.h b/hal_internal.h index d3bf706..ae62ff0 100644 --- a/hal_internal.h +++ b/hal_internal.h @@ -125,17 +125,17 @@ static inline hal_error_t hal_io_wait_valid2(const hal_core_t *core1, const hal_ /* * Static memory allocation on start-up. Don't use this except where - * really necessary. By design, there's no way to free this, we don't - * want to have to manage a heap. Intent is just to allow allocation - * things like the large-ish ks_index arrays used by ks_flash.c from a - * memory source external to the executable image file (eg, from the - * secondary SDRAM chip on the Cryptech Alpha board). + * really necessary. Intent is just to allow allocation of things like + * the large-ish ks_index arrays used by ks_flash.c from a memory source + * external to the executable image file (eg, from the secondary SDRAM + * chip on the Cryptech Alpha board). * * We shouldn't need this except on the HSM, so for now we don't bother * with implementing a version of this based on malloc() or sbrk(). */ extern void *hal_allocate_static_memory(const size_t size); +extern hal_error_t hal_free_static_memory(const void * const ptr); /* * Longest hash block and digest we support at the moment. |