aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca/codegen/bn.c
diff options
context:
space:
mode:
authorJ08nY2019-11-25 17:45:35 +0100
committerJ08nY2019-11-25 17:45:35 +0100
commit8a56c7a95e662862cfe78b834ccb091e95d5372f (patch)
tree1fd57480b7fc681f00c0bfb6c0e5cfea86762f87 /pyecsca/codegen/bn.c
parentc8d0bff46001bd5636825c5b0bb4c896cb34a4e6 (diff)
downloadpyecsca-codegen-8a56c7a95e662862cfe78b834ccb091e95d5372f.tar.gz
pyecsca-codegen-8a56c7a95e662862cfe78b834ccb091e95d5372f.tar.zst
pyecsca-codegen-8a56c7a95e662862cfe78b834ccb091e95d5372f.zip
Add libtommath, HOST build, and a simple PRNG.
Diffstat (limited to 'pyecsca/codegen/bn.c')
-rw-r--r--pyecsca/codegen/bn.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/pyecsca/codegen/bn.c b/pyecsca/codegen/bn.c
new file mode 100644
index 0000000..dfd433a
--- /dev/null
+++ b/pyecsca/codegen/bn.c
@@ -0,0 +1,9 @@
+#include "bn.h"
+
+bn_err bn_init(bn_t *bn) {
+ return mp_init(bn);
+}
+
+void bn_clear(bn_t *bn) {
+ mp_clear(bn);
+} \ No newline at end of file