summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/insque.c
diff options
context:
space:
mode:
authorjsing <>2025-08-03 15:44:00 +0000
committerjsing <>2025-08-03 15:44:00 +0000
commit7037d4c7b0d5603ef79bf7e7f1b33c2cbbce89f2 (patch)
tree0883803e254aa25ae2a1d2f5d4b64a3b1352d9c1 /src/lib/libc/stdlib/insque.c
parent862ba5f367a460df8a40dceac15e0369f39cdddf (diff)
downloadopenbsd-7037d4c7b0d5603ef79bf7e7f1b33c2cbbce89f2.tar.gz
openbsd-7037d4c7b0d5603ef79bf7e7f1b33c2cbbce89f2.tar.bz2
openbsd-7037d4c7b0d5603ef79bf7e7f1b33c2cbbce89f2.zip
Implement constant time EC scalar multiplication.
Replace simplistic non-constant time scalar multiplication with a constant time version. This is actually faster since we compute multiples of the point, then double four times and add once. The multiple to add is selected conditionally, ensuring that the access patterns remain the same regardless of value. Inspired by Go's scalar multiplication code. ok tb@
Diffstat (limited to 'src/lib/libc/stdlib/insque.c')
0 files changed, 0 insertions, 0 deletions