aboutsummaryrefslogtreecommitdiff
path: root/validator/val_secalgo.h
diff options
context:
space:
mode:
Diffstat (limited to 'validator/val_secalgo.h')
-rw-r--r--validator/val_secalgo.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/validator/val_secalgo.h b/validator/val_secalgo.h
index 589f1f11db63..52aaeb9f6d36 100644
--- a/validator/val_secalgo.h
+++ b/validator/val_secalgo.h
@@ -60,6 +60,14 @@ int secalgo_nsec3_hash(int algo, unsigned char* buf, size_t len,
unsigned char* res);
/**
+ * Calculate the sha256 hash for the data buffer into the result.
+ * @param buf: buffer to digest.
+ * @param len: length of the buffer to digest.
+ * @param res: result is stored here (space 256/8 bytes).
+ */
+void secalgo_hash_sha256(unsigned char* buf, size_t len, unsigned char* res);
+
+/**
* Return size of DS digest according to its hash algorithm.
* @param algo: DS digest algo.
* @return size in bytes of digest, or 0 if not supported.