You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with arm-none-eabi-gcc version 13.1.0 and optimization level -O3 (but also reproduced with levels [s, 1, 2]).
For a pubkey of: (1248267197097365432264186274468065254236796158617, 518980666782735319294616719874128744577850778311)
and a hash of cdfd35e9983ed989984e026546b241803bebd02b, it produces a signature of: (1012199123568660032231186032600072213159176233822, 416085392951447075179638451199529832674058226010), which is invalid.
When compiled to target the host (x86_64) it produces valid signatures. Other curves also work correctly.
The text was updated successfully, but these errors were encountered:
micro-ecc computes a wrong signature on secp160r1 on ARM Cortex M0.
The compile-time settings are:
with
arm-none-eabi-gcc
version 13.1.0 and optimization level-O3
(but also reproduced with levels [s, 1, 2]).For a pubkey of:
(1248267197097365432264186274468065254236796158617, 518980666782735319294616719874128744577850778311)
and a hash of
cdfd35e9983ed989984e026546b241803bebd02b
, it produces a signature of:(1012199123568660032231186032600072213159176233822, 416085392951447075179638451199529832674058226010)
, which is invalid.When compiled to target the host (x86_64) it produces valid signatures. Other curves also work correctly.
The text was updated successfully, but these errors were encountered: