On Fri, Apr 23, 2021 at 09:23:46PM +0200, Theo Buehler wrote:
> I need this for some elliptic curve work in libcrypto. It may be useful
> for others. This is based on portgen but I needed to tweak it quite a
> bit to build. The tests fetch test cases from the internet, so I added
> workarounds for that to make them work with ports-privsep. I added a fix
> for an annoying leak on top.
> 
> Tested on amd64 and sparc64, all tests pass on both architectures.
> 
> COMMENT =               fast elliptic curve digital signatures
> 
> HOMEPAGE =            https://github.com/AntonKueltz/fastecdsa
> 
> pkg/DESCR:
> 
> Fast elliptic curve cryptography, specifically digital signatures.  There
> is no nonce reuse, no branching on secret material, and all points are
> validated before any operations are performed on them.  Timing side
> channels are mitigated via Montgomery point multiplication.  Nonces are
> generated per RFC6979.

I tested this on my amd64 snapshot and works fine.

Regression test finished successfully.
Ran 64 tests in 20.149s

I also checked benchmark test.
$ python3 setup.py benchmark
running benchmark
1000 signatures and verifications with curve P192 took 3.19 seconds
1000 signatures and verifications with curve P224 took 3.84 seconds
1000 signatures and verifications with curve P256 took 5.01 seconds
1000 signatures and verifications with curve P384 took 9.35 seconds
1000 signatures and verifications with curve P521 took 16.25 seconds
1000 signatures and verifications with curve W25519 took 4.84 seconds
1000 signatures and verifications with curve W448 took 12.11 seconds
1000 signatures and verifications with curve secp192k1 took 3.17 seconds
1000 signatures and verifications with curve secp224k1 took 3.91 seconds
1000 signatures and verifications with curve secp256k1 took 4.85 seconds
1000 signatures and verifications with curve brainpoolP160r1 took 2.36 seconds
1000 signatures and verifications with curve brainpoolP192r1 took 3.15 seconds
1000 signatures and verifications with curve brainpoolP224r1 took 3.84 seconds
1000 signatures and verifications with curve brainpoolP256r1 took 4.86 seconds
1000 signatures and verifications with curve brainpoolP320r1 took 6.92 seconds
1000 signatures and verifications with curve brainpoolP384r1 took 9.40 seconds
1000 signatures and verifications with curve brainpoolP512r1 took 15.78 seconds

ok inoguchi@

Reply via email to