| author | |
| committer | |
| log | 98b10d94bf88a7e07690663008eb3f3dc8bfceca |
| tree | cbad45efeaa53608f9981759e8ecc3c9741cd9aa |
| parent | 25515980134ce457dad0a8cefa3f2d458e4163f7 |
There was a typo here and the neg function referenced a non-existent
variable.1 files changed, 1 insertions(+), 2 deletions(-)
lib/std/crypto/pcurves/p256/scalar.zig+1-2| ... | ... | @@ -63,8 +63,7 @@ pub fn add(a: CompressedScalar, b: CompressedScalar, endian: builtin.Endian) Non |
| 63 | 63 | |
| 64 | 64 | /// Return -s (mod L) |
| 65 | 65 | pub fn neg(s: CompressedScalar, endian: builtin.Endian) NonCanonicalError!CompressedScalar { |
| 66 | _ = s; | |
| 67 | return (try Scalar.fromBytes(a, endian)).neg().toBytes(endian); | |
| 66 | return (try Scalar.fromBytes(s, endian)).neg().toBytes(endian); | |
| 68 | 67 | } |
| 69 | 68 | |
| 70 | 69 | /// Return (a-b) (mod L) |