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
Copy file name to clipboardExpand all lines: src/scalar.rs
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1658,9 +1658,24 @@ mod test {
1658
1658
// encoding with high bit set, to check that the parser isn't pre-masking the high bit
1659
1659
let non_canonical_bytes_because_highbit = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128];
1660
1660
1661
+
let canonical_l_minus_one = [237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15];
1662
+
let canonical_zero = [0u8;32];
1663
+
let canonical_255_minus_1 = [132,52,71,117,71,74,127,151,35,182,58,139,233,42,231,109,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,15];
1664
+
let non_canonical_l = [237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16];
1665
+
let non_canonical_l_plus_one = [237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,17];
1666
+
let non_canonical_full = [0xFF;32];
1667
+
let non_canonical_255_minus_1 = [0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0b0111_1111];
0 commit comments