CVSROOT: /cvs Module name: src Changes by: js...@cvs.openbsd.org 2025/08/03 09:44:00
Modified files: lib/libcrypto/ec: ecp_hp_methods.c Log message: 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@