Skip to content

Commit 6b2b263

Browse files
Rust wrapper: make ECC::verify_hash C result check more strict
Fixes F-1989
1 parent 39facd1 commit 6b2b263

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • wrapper/rust/wolfssl-wolfcrypt/src

wrapper/rust/wolfssl-wolfcrypt/src/ecc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1964,7 +1964,7 @@ impl ECC {
19641964
if rc != 0 {
19651965
return Err(rc);
19661966
}
1967-
Ok(res != 0)
1967+
Ok(res == 1)
19681968
}
19691969
}
19701970

0 commit comments

Comments
 (0)