aboutsummaryrefslogtreecommitdiff
path: root/src/model/c/src/montgomery_array.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/c/src/montgomery_array.h')
-rw-r--r--src/model/c/src/montgomery_array.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/model/c/src/montgomery_array.h b/src/model/c/src/montgomery_array.h
new file mode 100644
index 0000000..2bafc56
--- /dev/null
+++ b/src/model/c/src/montgomery_array.h
@@ -0,0 +1,16 @@
+/*
+ * montgomery_array.h
+ *
+ * Created on: Mar 3, 2015
+ * Author: psjm
+ */
+
+#ifndef MONTGOMERY_ARRAY_H_
+#define MONTGOMERY_ARRAY_H_
+
+void mont_prod_array(int length, uint32_t *A, uint32_t *B, uint32_t *M,
+ uint32_t *temp, uint32_t *s);
+void mont_exp_array(int length, uint32_t *X, uint32_t *E, uint32_t *M,
+ uint32_t *Nr, uint32_t *P, uint32_t *ONE, uint32_t *temp, uint32_t *temp2, uint32_t *Z);
+
+#endif /* MONTGOMERY_ARRAY_H_ */