aboutsummaryrefslogtreecommitdiff
path: root/hal.h
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-05-31 23:40:17 -0400
committerRob Austein <sra@hactrn.net>2016-05-31 23:40:17 -0400
commit00f3181d2411068353efd6a5aadb3e70f064db2a (patch)
treed718597a46fc3484eb41f7222b48a48243edcf84 /hal.h
parentc51fa2770ba45837cf3af8576c813b7934cb709f (diff)
SHA-224 driver and soft core.
Diffstat (limited to 'hal.h')
-rw-r--r--hal.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/hal.h b/hal.h
index f62c89e..12ed579 100644
--- a/hal.h
+++ b/hal.h
@@ -79,7 +79,7 @@
#define SHA1_VERSION "0.50"
#define SHA256_NAME "sha2-256"
-#define SHA256_VERSION "0.81"
+#define SHA256_VERSION "1.80"
#define SHA512_NAME "sha2-512"
#define SHA512_VERSION "0.80"
@@ -233,6 +233,7 @@ typedef struct hal_hash_driver hal_hash_driver_t;
typedef enum {
hal_digest_algorithm_none,
hal_digest_algorithm_sha1,
+ hal_digest_algorithm_sha224,
hal_digest_algorithm_sha256,
hal_digest_algorithm_sha512_224,
hal_digest_algorithm_sha512_256,
@@ -266,6 +267,7 @@ typedef struct hal_hmac_state hal_hmac_state_t;
*/
extern const hal_hash_descriptor_t hal_hash_sha1[1];
+extern const hal_hash_descriptor_t hal_hash_sha224[1];
extern const hal_hash_descriptor_t hal_hash_sha256[1];
extern const hal_hash_descriptor_t hal_hash_sha512_224[1];
extern const hal_hash_descriptor_t hal_hash_sha512_256[1];