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
{{ message }}
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.
The problem is that from_canvas just forces the value into the scalar. Instead we have to check that the value is in [1, order-1] and return an error if not. We could do this in the P256 code. But it's a pretty common functionality such that I think it would make sense to have it in the library.
The problem is that
from_canvas
just forces the value into the scalar. Instead we have to check that the value is in[1, order-1]
and return an error if not. We could do this in the P256 code. But it's a pretty common functionality such that I think it would make sense to have it in the library.Originally posted by @franziskuskiefer in #134 (comment)
nat_mod
should check that scalars are valid instead taking the remainderhacspec/utils/abstract-integers/src/nat_mod.rs
Lines 41 to 43 in fa47716
The text was updated successfully, but these errors were encountered: