aboutsummaryrefslogtreecommitdiff
path: root/external/unbound/validator/val_secalgo.h
diff options
context:
space:
mode:
Diffstat (limited to 'external/unbound/validator/val_secalgo.h')
-rw-r--r--external/unbound/validator/val_secalgo.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/external/unbound/validator/val_secalgo.h b/external/unbound/validator/val_secalgo.h
index 589f1f11d..52aaeb9f6 100644
--- a/external/unbound/validator/val_secalgo.h
+++ b/external/unbound/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.