mirror of
https://github.com/odin-lang/Odin.git
synced 2026-08-14 09:44:26 +00:00
core/crypto/_fiat: Fix coditional in ensure
Callers in core also check so there is no user visible impact.
This commit is contained in:
@@ -38,7 +38,7 @@ fe_from_bytes :: proc "contextless" (
|
||||
out1: ^Montgomery_Domain_Field_Element,
|
||||
arg1: []byte,
|
||||
) -> bool {
|
||||
ensure_contextless(len(out1) <= 64, "p256r1: invalid scalar input buffer")
|
||||
ensure_contextless(len(arg1) <= 64, "p256r1: invalid scalar input buffer")
|
||||
|
||||
is_canonical := false
|
||||
s_len := len(arg1)
|
||||
|
||||
@@ -31,7 +31,7 @@ fe_from_bytes :: proc "contextless" (
|
||||
out1: ^Montgomery_Domain_Field_Element,
|
||||
arg1: []byte,
|
||||
) -> bool {
|
||||
ensure_contextless(len(out1) <= 64, "p384r1: invalid scalar input buffer")
|
||||
ensure_contextless(len(arg1) <= 64, "p384r1: invalid scalar input buffer")
|
||||
|
||||
is_canonical := false
|
||||
s_len := len(arg1)
|
||||
|
||||
Reference in New Issue
Block a user