aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca/codegen/hash/hash.c
diff options
context:
space:
mode:
authorJ08nY2019-11-21 19:10:50 +0100
committerJ08nY2019-11-21 19:10:50 +0100
commitc8d0bff46001bd5636825c5b0bb4c896cb34a4e6 (patch)
tree2b3029c6ca37e56e86daa34069ab39da3b1a5400 /pyecsca/codegen/hash/hash.c
downloadpyecsca-codegen-c8d0bff46001bd5636825c5b0bb4c896cb34a4e6.tar.gz
pyecsca-codegen-c8d0bff46001bd5636825c5b0bb4c896cb34a4e6.tar.zst
pyecsca-codegen-c8d0bff46001bd5636825c5b0bb4c896cb34a4e6.zip
Initialize.
Diffstat (limited to 'pyecsca/codegen/hash/hash.c')
-rw-r--r--pyecsca/codegen/hash/hash.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/pyecsca/codegen/hash/hash.c b/pyecsca/codegen/hash/hash.c
new file mode 100644
index 0000000..ddbdb00
--- /dev/null
+++ b/pyecsca/codegen/hash/hash.c
@@ -0,0 +1,10 @@
+
+#include "hash.h"
+
+#if HASH == HASH_NONE
+#include "none.c"
+#elif HASH == HASH_SHA1
+#include "sha1.c"
+#elif HASH == HASH_SHA224 || HASH == HASH_SHA256 || HASH == HASH_SHA384 || HASH == HASH_SHA512
+#include "sha2.c"
+#endif \ No newline at end of file