aboutsummaryrefslogtreecommitdiff
path: root/rpc_internal.h
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-12-13 00:43:11 -0500
committerRob Austein <sra@hactrn.net>2015-12-13 00:43:11 -0500
commitc60b4bbd62865c4fe891dcbf7586c4718082d626 (patch)
treec7a4e2ba247241df3b3fecd79cee197c84646881 /rpc_internal.h
parent6f479d8615a60e94b3c19e090a4eba8a0256ec32 (diff)
Add rpc_hash.c. Convert dynamic allocator in hash.c to use private
pool of pre-configured state blocks, suitable for an embedded system.
Diffstat (limited to 'rpc_internal.h')
-rw-r--r--rpc_internal.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/rpc_internal.h b/rpc_internal.h
index 73e79f7..b861ec7 100644
--- a/rpc_internal.h
+++ b/rpc_internal.h
@@ -93,17 +93,17 @@ typedef struct {
typedef struct {
- hal_error_t (*get_digest_length)(const hal_rpc_hash_alg_t alg, size_t *length);
+ hal_error_t (*get_digest_length)(const hal_digest_algorithm_t alg, size_t *length);
- hal_error_t (*get_digest_algorithm_id)(const hal_rpc_hash_alg_t alg,
+ hal_error_t (*get_digest_algorithm_id)(const hal_digest_algorithm_t alg,
uint8_t *id, size_t *len, const size_t len_max);
- hal_error_t (*get_algorithm)(const hal_rpc_hash_handle_t hash, hal_rpc_hash_alg_t *alg);
+ hal_error_t (*get_algorithm)(const hal_rpc_hash_handle_t hash, hal_digest_algorithm_t *alg);
hal_error_t (*initialize)(const hal_rpc_client_handle_t client,
const hal_rpc_session_handle_t session,
hal_rpc_hash_handle_t *hash,
- const hal_rpc_hash_alg_t alg,
+ const hal_digest_algorithm_t alg,
const uint8_t * const key, const size_t key_length);
hal_error_t (*update)(const hal_rpc_hash_handle_t hash,