From 7cb8dc92005a0955d1db8e3038ce66a8e071ab3f Mon Sep 17 00:00:00 2001 From: Nagi5Yeq Date: Fri, 5 Jul 2019 00:45:46 +0800 Subject: fix ge448_mixadd2 name --- README.md | 2 +- ge448.c | 4 ++-- ge448_gen.c | 2 +- sc448.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bbec377..d2f15ff 100644 --- a/README.md +++ b/README.md @@ -4,4 +4,4 @@ A naive implementation of ed448, may have many bugs... **Not finished yet.** -Mainly modified from [SUPERCOP](https://bench.cr.yp.to/supercop.html) ed25519 ref implementation. \ No newline at end of file +Mainly modified from [SUPERCOP](https://bench.cr.yp.to/supercop.html) ed25519 ref implementation. diff --git a/ge448.c b/ge448.c index 5916e42..90a184e 100644 --- a/ge448.c +++ b/ge448.c @@ -41,7 +41,7 @@ static const ge448_aff ge448_base_multiples_affine[745] = { }; /* point addition from rfc8032 */ -static void ge25519_mixadd2(ge448_p3 *r, const ge448_aff *q) +static void ge448_mixadd2(ge448_p3 *r, const ge448_aff *q) { fe448 a, b, c, d, e, f, g, h; a = r->z; /* A=Z1*Z2 (Z2=1) */ @@ -267,6 +267,6 @@ void ge448_scalarmult_base(ge448_p3 *r, const sc448 *s) for (i = 1; i < 149; i++) { choose_t(&t, (unsigned long long)i, b[i]); - ge25519_mixadd2(r, &t); + ge448_mixadd2(r, &t); } } diff --git a/ge448_gen.c b/ge448_gen.c index dfe5ed3..664eead 100644 --- a/ge448_gen.c +++ b/ge448_gen.c @@ -96,4 +96,4 @@ int main() output(&neutral); } return 0; -} \ No newline at end of file +} diff --git a/sc448.h b/sc448.h index 245763e..04d4f94 100644 --- a/sc448.h +++ b/sc448.h @@ -47,4 +47,4 @@ void sc448_window3(signed char r[149], const sc448 *s); void sc448_2interleave2(unsigned char r[223], const sc448 *s1, const sc448 *s2); -#endif \ No newline at end of file +#endif -- cgit