aboutsummaryrefslogtreecommitdiff
path: root/cryptech.h
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-06-21 22:17:46 -0400
committerRob Austein <sra@hactrn.net>2015-06-21 22:17:46 -0400
commitbca97e11e8cd4e8236eef3cdabf659963ce9f0cc (patch)
tree1cef06568c7edc96fda8bfc22c66998a8415bf8a /cryptech.h
parentf23b4c6fd3ebee70ff7f8df5f088cfe27ff48a29 (diff)
Add digest algorithm IDs.
Diffstat (limited to 'cryptech.h')
-rw-r--r--cryptech.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cryptech.h b/cryptech.h
index b0a7c35..dba9f31 100644
--- a/cryptech.h
+++ b/cryptech.h
@@ -514,6 +514,8 @@ typedef struct {
size_t digest_length;
size_t hash_state_length;
size_t hmac_state_length;
+ const uint8_t * const digest_algorithm_id;
+ size_t digest_algorithm_id_length;
const void *driver;
} hal_hash_descriptor_t;
@@ -656,6 +658,8 @@ extern hal_error_t hal_rsa_key_gen(hal_rsa_key_t *key,
extern hal_error_t hal_rsa_key_to_der(hal_rsa_key_t key,
uint8_t *der, size_t *der_len, const size_t der_max);
+extern size_t hal_rsa_key_to_der_len(hal_rsa_key_t key);
+
extern hal_error_t hal_rsa_key_from_der(hal_rsa_key_t *key,
void *keybuf, const size_t keybuf_len,
const uint8_t * const der, const size_t der_len);