aboutsummaryrefslogtreecommitdiff
path: root/hal.h
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-05-12 09:50:33 -0400
committerRob Austein <sra@hactrn.net>2016-05-12 09:50:33 -0400
commite95df39ced0199cf654e4fb276c543ec5fe6308a (patch)
treeec22588ef62da13e57abfb241291cedc1c62215d /hal.h
parent44b189bfea1a7d965098acdcc781a193209d9179 (diff)
Add hal_digest_algorithm_none; tweak handling of none handles.
Diffstat (limited to 'hal.h')
-rw-r--r--hal.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/hal.h b/hal.h
index cd3b9c0..9f25e62 100644
--- a/hal.h
+++ b/hal.h
@@ -4,7 +4,7 @@
* Memory map, access functions, and HAL for Cryptech cores.
*
* Authors: Joachim Strombergson, Paul Selkirk, Rob Austein
- * Copyright (c) 2015, NORDUnet A/S All rights reserved.
+ * Copyright (c) 2015-2016, NORDUnet A/S All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -227,6 +227,7 @@ typedef struct hal_hash_driver hal_hash_driver_t;
*/
typedef enum {
+ hal_digest_algorithm_none,
hal_digest_algorithm_sha1,
hal_digest_algorithm_sha256,
hal_digest_algorithm_sha512_224,
@@ -544,6 +545,8 @@ extern hal_error_t hal_ecdsa_verify(const hal_core_t *core,
* mechanism, not the server (HSM) side.
*/
+#define HAL_HANDLE_NONE (0)
+
typedef struct { uint32_t handle; } hal_client_handle_t;
typedef struct { uint32_t handle; } hal_session_handle_t;