]> Git Repo - secp256k1.git/commit - src/scalar_impl.h
Make `secp256k1_scalar_add_bit` conditional; make `secp256k1_scalar_split_lambda_var...
authorAndrew Poelstra <[email protected]>
Fri, 22 May 2015 16:51:51 +0000 (11:51 -0500)
committerAndrew Poelstra <[email protected]>
Sat, 1 Aug 2015 15:57:36 +0000 (10:57 -0500)
commited35d43a0cd2994b91650065c083c4e937c78600
tree7381ab36f8ad685b9e2f76da78113abd78b9d112
parent91c0ce95cabda52d03edfe52453a1004fbb01d1e
Make `secp256k1_scalar_add_bit` conditional; make `secp256k1_scalar_split_lambda_var` constant time

This has the effect of making `secp256k1_scalar_mul_shift_var` constant
time in both input scalars. Keep the _var name because it is NOT constant
time in the shift amount.

As used in `secp256k1_scalar_split_lambda_var`, the shift is always
the constant 272, so this function becomes constant time, and it
loses the `_var` suffix.
src/bench_internal.c
src/ecmult_impl.h
src/scalar.h
src/scalar_4x64_impl.h
src/scalar_8x32_impl.h
src/scalar_impl.h
src/tests.c
This page took 0.026668 seconds and 4 git commands to generate.