aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/sph
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2012-12-29 14:07:46 +0100
committerJay Berkenbilt <ejb@ql.org>2012-12-31 11:36:51 +0100
commit0873e4230047553c366dff11444d56fe9977b61f (patch)
tree39b67f8ecfd255cb01f07ce434763be8c936b006 /libqpdf/sph
parentc9da66a018b6381eadfa3570d511b2a2341ebae8 (diff)
downloadqpdf-0873e4230047553c366dff11444d56fe9977b61f.tar.zst
SHA2 pipeline with support for 256, 384, and 512 bits
Implemented pipeline around sph sha calls using standard test vectors for full-byte values. Did not test or support partial byte values.
Diffstat (limited to 'libqpdf/sph')
-rw-r--r--libqpdf/sph/sph_sha2.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libqpdf/sph/sph_sha2.h b/libqpdf/sph/sph_sha2.h
index d5bda731..4bff9cd8 100644
--- a/libqpdf/sph/sph_sha2.h
+++ b/libqpdf/sph/sph_sha2.h
@@ -40,6 +40,10 @@
#ifndef SPH_SHA2_H__
#define SPH_SHA2_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <stddef.h>
#include "sph_types.h"
@@ -367,4 +371,8 @@ void sph_sha512_comp(const sph_u64 msg[16], sph_u64 val[8]);
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif