[PATCH v2] ecc: rename source files with curves data

2019-12-05 Thread dbaryshkov
From: Dmitry Eremin-Solenikov In preparation to adding GOST curves support, rename source files and use curve name as eccdata parameter. Signed-off-by: Dmitry Eremin-Solenikov --- .gitignore| 14 ++--- Makefile.in | 54 +

Re: [PATCH] ecc: rename source files with curves data

2019-12-05 Thread Dmitry Eremin-Solenikov
Hello, чт, 5 дек. 2019 г. в 18:45, Dmitry Eremin-Solenikov : > > Any feedback on this change? > > I'm going to send patches adding 3 256-bit curves and 2 512-bit curves > with another 256-bit and 512-bit curves waiting some restructuring of > the code. > It would be too easy to mix curves w/o this

Re: [PATCH] ecc: rename source files with curves data

2019-12-05 Thread Dmitry Eremin-Solenikov
Any feedback on this change? I'm going to send patches adding 3 256-bit curves and 2 512-bit curves with another 256-bit and 512-bit curves waiting some restructuring of the code. It would be too easy to mix curves w/o this patch. вс, 24 нояб. 2019 г. в 17:22, : > > From: Dmitry Eremin-Solenikov

Re: patch: fix check for __builtin_bswap64

2019-12-05 Thread Jeffrey Walton
On Thu, Dec 5, 2019 at 3:08 AM Niels Möller wrote: > ... > > Does OpenBSBs runtime linker look in /usr/local/lib by default? The > configure script also supports --with-lib-path=/usr/local/lib, which > will add a -L flag and in addition attempt to guess the proper > -R/-Wl,-rpath flags. The runti

Re: [RFC] ecc: switch away from affine points representation

2019-12-05 Thread Niels Möller
Dmitry Eremin-Solenikov writes: > Would it be ok to change ecc_point size to become a per curve option? If needed, yes. (I've also been considering switching to using extended X,Y,Z,T coordinates as internal representation for twisted edwards curves, but unclear if it's worth the effort. See th

Re: patch: fix check for __builtin_bswap64

2019-12-05 Thread Niels Möller
George Koehler writes: > If the C compiler lacks __builtin_bswap64, then Nettle may call a > function named __builtin_bswap64 and get a link error. The problem is > that ./configure doesn't check for link errors. I append a small diff > to switch from AC_TRY_COMPILE to AC_TRY_LINK. Thanks, app