aboutsummaryrefslogtreecommitdiff
path: root/hal.h
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2018-08-15 17:30:14 -0400
committerPaul Selkirk <paul@psgd.org>2018-08-15 17:30:14 -0400
commit255ebc59bf1000af6715217679bc82d5bc4d536b (patch)
treedc2250e980c5aea753b781fc3b7641f898e000ad /hal.h
parenta0940d97b4aa3d45c77fbec95092829ca90b1eaf (diff)
Add support for Joachim's keywrap core.
Diffstat (limited to 'hal.h')
-rw-r--r--hal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/hal.h b/hal.h
index b544900..9986de7 100644
--- a/hal.h
+++ b/hal.h
@@ -109,6 +109,9 @@
#define ECDSA384_NAME "ecdsa384"
#define ECDSA384_VERSION "0.11"
+#define KEYWRAP_NAME "key wrap"
+#define KEYWRAP_VERSION "0.70"
+
/*
* C API error codes. Defined in this form so we can keep the tokens
* and error strings together. See errorstrings.c.
@@ -363,6 +366,8 @@ extern const hal_hash_descriptor_t *hal_hmac_get_descriptor(const hal_hmac_state
* AES key wrap functions.
*/
+extern int hal_aes_use_keywrap_core(int onoff);
+
extern hal_error_t hal_aes_keywrap(hal_core_t *core,
const uint8_t *kek, const size_t kek_length,
const uint8_t *plaintext, const size_t plaintext_length,