aboutsummaryrefslogtreecommitdiff
path: root/hal_rpc.c
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 /hal_rpc.c
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 'hal_rpc.c')
-rw-r--r--hal_rpc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hal_rpc.c b/hal_rpc.c
index 15f5f65..6ad198e 100644
--- a/hal_rpc.c
+++ b/hal_rpc.c
@@ -146,20 +146,20 @@ hal_error_t hal_rpc_logout(const hal_rpc_client_handle_t client)
return misc_dispatch->logout(client);
}
-hal_error_t hal_rpc_hash_get_digest_length(const hal_rpc_hash_alg_t alg, size_t *length)
+hal_error_t hal_rpc_hash_get_digest_length(const hal_digest_algorithm_t alg, size_t *length)
{
if (length == NULL)
return HAL_ERROR_BAD_ARGUMENTS;
return hash_dispatch->get_digest_length(alg, length);
}
-hal_error_t hal_rpc_hash_get_digest_algorithm_id(const hal_rpc_hash_alg_t alg,
+hal_error_t hal_rpc_hash_get_digest_algorithm_id(const hal_digest_algorithm_t alg,
uint8_t *id, size_t *len, const size_t len_max)
{
return hash_dispatch->get_digest_algorithm_id(alg, id, len, len_max);
}
-hal_error_t hal_rpc_hash_get_algorithm(const hal_rpc_hash_handle_t hash, hal_rpc_hash_alg_t *alg)
+hal_error_t hal_rpc_hash_get_algorithm(const hal_rpc_hash_handle_t hash, hal_digest_algorithm_t *alg)
{
if (hash.handle == hal_rpc_hash_handle_none.handle || alg == NULL)
return HAL_ERROR_BAD_ARGUMENTS;
@@ -169,7 +169,7 @@ hal_error_t hal_rpc_hash_get_algorithm(const hal_rpc_hash_handle_t hash, hal_rpc
hal_error_t hal_rpc_hash_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_len)
{
if (hash == NULL)