diff options
| author | J08nY | 2023-10-05 16:57:58 +0200 |
|---|---|---|
| committer | J08nY | 2023-10-05 16:57:58 +0200 |
| commit | 44e49254cdef200528205464b00701433d788a75 (patch) | |
| tree | 403795eb6a009e967a0a1714a8150617f7943394 /pyecsca/codegen | |
| parent | 94f3a877bf16b98b1b81f251cc4f28260c09e4e8 (diff) | |
| download | pyecsca-codegen-44e49254cdef200528205464b00701433d788a75.tar.gz pyecsca-codegen-44e49254cdef200528205464b00701433d788a75.tar.zst pyecsca-codegen-44e49254cdef200528205464b00701433d788a75.zip | |
Add debug prints to sliding W mult for CI.
Diffstat (limited to 'pyecsca/codegen')
| -rw-r--r-- | pyecsca/codegen/templates/mult_sliding_w.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pyecsca/codegen/templates/mult_sliding_w.c b/pyecsca/codegen/templates/mult_sliding_w.c index 87135cc..7321292 100644 --- a/pyecsca/codegen/templates/mult_sliding_w.c +++ b/pyecsca/codegen/templates/mult_sliding_w.c @@ -20,11 +20,15 @@ static void scalar_mult_inner(bn_t *scalar, point_t *point, curve_t *curve, poin {% elif scalarmult.recoding_direction == ProcessingDirection.RTL %} wsliding_t *ws = bn_wsliding_rtl(scalar, {{ scalarmult.width }}); {% endif %} + printf("ws %p\n", ws); + printf("len = %li\n", ws->length); for (long i = 0; i < ws->length; i++) { point_dbl(q, curve, q); uint8_t val = ws->data[i]; + printf("i = %li, val = %i\n", i, val); if (val) { + printf("adding %i\n", (val - 1) / 2); point_accumulate(q, points[(val - 1) / 2], curve, q); } } |
