diff options
author | jsing <> | 2025-03-24 13:07:04 +0000 |
---|---|---|
committer | jsing <> | 2025-03-24 13:07:04 +0000 |
commit | 70275e713454e731b5cbf6545eff93592d1d9872 (patch) | |
tree | 6397da5be4e5b65da2b65dd38a2c3f1202843573 /src/lib/libc/stdlib/imaxabs.c | |
parent | e8c19f02f4b0497ce5d3eca5d72b3cdaeaff9f09 (diff) | |
download | openbsd-70275e713454e731b5cbf6545eff93592d1d9872.tar.gz openbsd-70275e713454e731b5cbf6545eff93592d1d9872.tar.bz2 openbsd-70275e713454e731b5cbf6545eff93592d1d9872.zip |
Explicitly pass group generator to mul_double_nonct() from EC_POINT_mul().
EC_POINT_mul() has a complex multi-use interface - there are effectively
three different ways it will behave, depending on which arguments are NULL.
In the case where we compute g_scalar * generator + p_scalar * point, the
mul_double_nonct() function pointer is called, however only g_scalar,
p_scalar and point are passed - it is expected that the lower level
implementation (in this case ec_wnaf_mul()) will use the generator from
the group.
Change mul_double_nonct(), ec_mul_double_nonct() and ec_wnaf_mul() so that
they take scalar1, point1, scalar2 and point2. This removes all knowledge
of g_scalar and the generator from the multiplication code, keeping it
limited to EC_POINT_mul(). While here also consistently pass scalar then
point, rather than a mix of scalar/point and point/scalar.
ok tb@
Diffstat (limited to 'src/lib/libc/stdlib/imaxabs.c')
0 files changed, 0 insertions, 0 deletions