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
Fixes some panics in `from_sec1_bytes` where it should error instead.
However the root cause of many places is that
`IntMod::from_{le,be}_bytes` previously does not require the input bytes
to be reduced. While this is a feature of how we represent field
elements up to equivalence, in practice in cryptographic applications
other implementations always require the input to be in canonical
(reduced) from. To match other implementations and prevent future
errors, I have renamed the former `from_{le,be}_bytes` to
`from_{le,be}_bytes_unchecked` and added new checked versions that
return `Option`.
Also fixed implementations of `Decompress` for p256,k256 such that it
rejects when the input `x` bytes are not reduced.
0 commit comments