]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - shacal1_enc.h
+SHACAL-[1,2]
[avr-crypto-lib.git] / shacal1_enc.h
diff --git a/shacal1_enc.h b/shacal1_enc.h
new file mode 100644 (file)
index 0000000..8c64340
--- /dev/null
@@ -0,0 +1,13 @@
+#ifndef SHACAL1_ENC_H_
+#define SHACAL1_ENC_H_
+
+#include <stdint.h>
+
+#define SHACAL1_BLOCKSIZE 160
+#define SHACAL1_BLOCKSIZE_B ((SHACAL1_BLOCKSIZE+7)/8)
+#define SHACAL1_KEYSIZE 512
+#define SHACAL1_KEYSIZE_B ((SHACAL1_KEYSIZE+7)/8)
+
+void shacal1_enc(void* buffer, void* key, uint16_t keysize_b);
+
+#endif /*SHACAL1_ENC_H_*/