diff options
author | Rob Austein <sra@hactrn.net> | 2015-06-21 22:17:46 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2015-06-21 22:17:46 -0400 |
commit | bca97e11e8cd4e8236eef3cdabf659963ce9f0cc (patch) | |
tree | 1cef06568c7edc96fda8bfc22c66998a8415bf8a /cryptech.h | |
parent | f23b4c6fd3ebee70ff7f8df5f088cfe27ff48a29 (diff) |
Add digest algorithm IDs.
Diffstat (limited to 'cryptech.h')
-rw-r--r-- | cryptech.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |