OSDN Git Service

crypto: lib/curve25519 - re-add selftests
authorJason A. Donenfeld <Jason@zx2c4.com>
Mon, 16 Dec 2019 18:53:26 +0000 (19:53 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 27 Dec 2019 10:18:03 +0000 (18:18 +0800)
commitaa127963f1cab2b93c74c9b128a84610203fb674
tree6b74802608e87ded121f412c125d18cf82718728
parentc782937e92826af464e65111e9f7a7a774b6c276
crypto: lib/curve25519 - re-add selftests

Somehow these were dropped when Zinc was being integrated, which is
problematic, because testing the library interface for Curve25519 is
important.. This commit simply adds them back and wires them in in the
same way that the blake2s selftests are wired in.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
lib/crypto/Makefile
lib/crypto/curve25519-selftest.c [new file with mode: 0644]
lib/crypto/curve25519.c