From 46e73ec4d2bb235a4905a21feb33705b696edf5f Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Fri, 14 Oct 2016 19:24:34 -0400 Subject: 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. --- hal_internal.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'hal_internal.h') diff --git a/hal_internal.h b/hal_internal.h index 61d8489..3e6cf29 100644 --- a/hal_internal.h +++ b/hal_internal.h @@ -768,6 +768,17 @@ extern hal_error_t hal_ks_index_delete(hal_ks_index_t *ksi, unsigned *blockno, 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 -- cgit v1.2.3