| ... | ... | @@ -74,7 +74,7 @@ pub const Edwards25519 = struct { |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /// Double an Edwards25519 point. |
| 77 | | pub inline fn dbl(p: Edwards25519) Edwards25519 { |
| 77 | pub fn dbl(p: Edwards25519) Edwards25519 { |
| 78 | 78 | const t0 = p.x.add(p.y).sq(); |
| 79 | 79 | var x = p.x.sq(); |
| 80 | 80 | var z = p.y.sq(); |
| ... | ... | @@ -91,7 +91,7 @@ pub const Edwards25519 = struct { |
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | /// Add two Edwards25519 points. |
| 94 | | pub inline fn add(p: Edwards25519, q: Edwards25519) Edwards25519 { |
| 94 | pub fn add(p: Edwards25519, q: Edwards25519) Edwards25519 { |
| 95 | 95 | const a = p.y.sub(p.x).mul(q.y.sub(q.x)); |
| 96 | 96 | const b = p.x.add(p.y).mul(q.x.add(q.y)); |
| 97 | 97 | const c = p.t.mul(q.t).mul(Fe.edwards25519d2); |