Commit 70dccf5
committed
Add
The current `group::Wnaf` implementation assumes `PrimeField::to_repr`
returns a little endian encoding, so it doesn't work with our
implementations of the NIST P-curves, which return a big endian SEC1
encoding.
Following the general idea from RustCrypto/group#10, this adds an API
which is guaranteed to return a little endian encoding which will always
work with the current implementation of `group::Wnaf`.
This is largely a stopgap solution which allows us to begin using
`group::Wnaf` at all, though ideally we can find a more elegant upstream
solution.PrimeField::to_le_repr
1 parent e155572 commit 70dccf5
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
307 | 316 | | |
308 | 317 | | |
309 | 318 | | |
| |||
0 commit comments