aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca
diff options
context:
space:
mode:
authorAndrej Bátora2023-10-18 14:21:58 +0200
committerGitHub2023-10-18 14:21:58 +0200
commita1911ee8acbcf875ed8889f5686cc34b05c236c2 (patch)
tree965bccac4ecac171fcda66f9f07b9ded4b1c7eec /pyecsca
parent56a48c2d056ec559a73c42ae2eed9caf7102b027 (diff)
parent9987dc7dd762c44c56cca8b80379bfdc0b515bb3 (diff)
downloadpyecsca-codegen-a1911ee8acbcf875ed8889f5686cc34b05c236c2.tar.gz
pyecsca-codegen-a1911ee8acbcf875ed8889f5686cc34b05c236c2.tar.zst
pyecsca-codegen-a1911ee8acbcf875ed8889f5686cc34b05c236c2.zip
Merge branch 'J08nY:master' into bugfix/simulator
Diffstat (limited to 'pyecsca')
-rw-r--r--pyecsca/codegen/templates/mult_diff_ldr.c2
-rw-r--r--pyecsca/codegen/templates/mult_simple_ldr.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/pyecsca/codegen/templates/mult_diff_ldr.c b/pyecsca/codegen/templates/mult_diff_ldr.c
index ae74053..b6d2b97 100644
--- a/pyecsca/codegen/templates/mult_diff_ldr.c
+++ b/pyecsca/codegen/templates/mult_diff_ldr.c
@@ -2,7 +2,7 @@
#include "point.h"
void scalar_mult_inner(bn_t *scalar, point_t *point, curve_t *curve, point_t *out) {
- point_t *p0 = point_copy(&curve->neutral);
+ point_t *p0 = point_copy(curve->neutral);
point_t *p1 = point_copy(point);
{%- if scalarmult.complete %}
int nbits = bn_bit_length(&curve->n) - 1;
diff --git a/pyecsca/codegen/templates/mult_simple_ldr.c b/pyecsca/codegen/templates/mult_simple_ldr.c
index c393290..ceb257a 100644
--- a/pyecsca/codegen/templates/mult_simple_ldr.c
+++ b/pyecsca/codegen/templates/mult_simple_ldr.c
@@ -2,7 +2,7 @@
#include "point.h"
void scalar_mult_inner(bn_t *scalar, point_t *point, curve_t *curve, point_t *out) {
- point_t *p0 = point_copy(&curve->neutral);
+ point_t *p0 = point_copy(curve->neutral);
point_t *p1 = point_copy(point);
{%- if scalarmult.complete %}
int nbits = bn_bit_length(&curve->n) - 1;