Commit 80f272b
authored
feat(tests): add test cases for P256 for r,s above N (#2230)
Add new test cases for the `p256verify` precompile where the input
elements `r` or `s`are out of range by being greater than `N`.
Moreover, the equivalent signatures taking `r % N` or `s % N` are valid.
These have chance to detect implementations which don't perform
proper range checks and pass `r` or `s` to Montgomery form.1 parent a001e87 commit 80f272b
File tree
1 file changed
+16
-0
lines changed- tests/osaka/eip7951_p256verify_precompiles
1 file changed
+16
-0
lines changedLines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
235 | 239 | | |
236 | 240 | | |
237 | 241 | | |
| |||
286 | 290 | | |
287 | 291 | | |
288 | 292 | | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
289 | 305 | | |
290 | 306 | | |
291 | 307 | | |
| |||
0 commit comments