Re: [PATCH v2 14/20] crypto: Curve25519 - generic C library implementations and selftest

2019-10-04 Thread Ard Biesheuvel
On Fri, 4 Oct 2019 at 15:57, Jason A. Donenfeld wrote: > > On Wed, Oct 02, 2019 at 04:17:07PM +0200, Ard Biesheuvel wrote: > >- replace .c #includes with Kconfig based object selection > > Cool! > > > +config CRYPTO_ARCH_HAVE_LIB_CURVE25519 > > + tristate > > + > > +config CRYPTO_ARCH_

Re: [PATCH v2 14/20] crypto: Curve25519 - generic C library implementations and selftest

2019-10-04 Thread Jason A. Donenfeld
On Wed, Oct 02, 2019 at 04:17:07PM +0200, Ard Biesheuvel wrote: >- replace .c #includes with Kconfig based object selection Cool! > +config CRYPTO_ARCH_HAVE_LIB_CURVE25519 > + tristate > + > +config CRYPTO_ARCH_HAVE_LIB_CURVE25519_BASE > + bool > + > +config CRYPTO_LIB_CURVE25519

[PATCH v2 14/20] crypto: Curve25519 - generic C library implementations and selftest

2019-10-02 Thread Ard Biesheuvel
From: "Jason A. Donenfeld" This contains two formally verified C implementations of the Curve25519 scalar multiplication function, one for 32-bit systems, and one for 64-bit systems whose compiler supports efficient 128-bit integer types. Not only are these implementations formally verified, but