| author | |
| committer | |
| log | caddd7eb18693f5ed02cca533b84811425d8f4d8 |
| tree | 1fc03c44488683c4f41fd583c161d41dba093a16 |
| parent | 2b6727c98fd7e07d65f6d4479f81dec4b69e8795 |
There was a typo here and the neg function referenced a non-existent
variable.1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/crypto/pcurves/p256/scalar.zig+1-1| ... | ... | @@ -63,7 +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 | return (try Scalar.fromBytes(a, endian)).neg().toBytes(endian); | |
| 66 | return (try Scalar.fromBytes(s, endian)).neg().toBytes(endian); | |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | /// Return (a-b) (mod L) |