Commit e4a593d
authored
This is the main way `subtle` constructs `Choice` so it's important for
backwards compatibility.
It seems like if we had `from_u8_lsb`, we could avoid the panic
condition by always masking the input `u8`. We don't yet, but this
commit also leaves a comment to consider deprecating both this
`From<u8>` impl and `Choice::new` in the future.
1 parent 2041dad commit e4a593d
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
388 | 389 | | |
389 | 390 | | |
390 | 391 | | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
391 | 403 | | |
392 | 404 | | |
393 | 405 | | |
| |||
0 commit comments