diff options
author | Rob Austein <sra@hactrn.net> | 2016-10-14 19:24:34 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-10-14 19:24:34 -0400 |
commit | 46e73ec4d2bb235a4905a21feb33705b696edf5f (patch) | |
tree | 5e6c48507fd45e4d1793a1d4688b5cc0661bd444 /hal_internal.h | |
parent | 015eefa32f54f84c56bb7c6d36c0edcc104a69e8 (diff) |
Keystore attribute code. Not really tested.
Passes PKCS #11 "make test" but nothing uses the new attribute code yet.
Refactored some of the flash block update code.
Attribute code is annoyingly verbose, might be possible to refactor
some of that.
Diffstat (limited to 'hal_internal.h')
-rw-r--r-- | hal_internal.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/hal_internal.h b/hal_internal.h index 61d8489..3e6cf29 100644 --- a/hal_internal.h +++ b/hal_internal.h @@ -769,6 +769,17 @@ extern hal_error_t hal_ks_index_delete(hal_ks_index_t *ksi, int *hint); /* + * Delete all of blocks in a key, returning the block numbers. + */ + +extern hal_error_t hal_ks_index_delete_range(hal_ks_index_t *ksi, + const hal_uuid_t * const name, + const unsigned max_blocks, + unsigned *n_blocks, + unsigned *blocknos, + int *hint); + +/* * Replace a key block with a new one, return new block number. * Name of block does not change. This is an optimization of * a delete immediately followed by an add for the same name. |