summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ecdsa/ecs_lib.c
diff options
context:
space:
mode:
authorjsing <>2023-03-07 06:28:36 +0000
committerjsing <>2023-03-07 06:28:36 +0000
commit1a1a85dd49b0d95ad37da975c7f03d879de1a8f1 (patch)
tree06b1106ed32703f0e6d26673ee1c52d2e310c0ef /src/lib/libcrypto/ecdsa/ecs_lib.c
parent4320ee92fb55c991eec4cdc78f60c762533babb7 (diff)
downloadopenbsd-1a1a85dd49b0d95ad37da975c7f03d879de1a8f1.tar.gz
openbsd-1a1a85dd49b0d95ad37da975c7f03d879de1a8f1.tar.bz2
openbsd-1a1a85dd49b0d95ad37da975c7f03d879de1a8f1.zip
Limit bn_mul_mont() usage to sizes less than or equal to 8192 bits.
The assembly bn_mul_mont() implementations effectively use alloca() to allocate space for computation (at up to 8x the input size), without any limitation. This means that sufficiently large inputs lead to the stack being blown. Prevent this by using the C based implementation instead. Thanks to Jiayi Lin <jlin139 at asu dot edu> for reporting this to us. ok beck@ tb@
Diffstat (limited to 'src/lib/libcrypto/ecdsa/ecs_lib.c')
0 files changed, 0 insertions, 0 deletions