Skip to content

Commit

Permalink
crypto: lib/curve25519 - re-add selftests
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
zx2c4 authored and herbertx committed Dec 27, 2019
1 parent c782937 commit aa12796
Show file tree
Hide file tree
Showing 3 changed files with 1,339 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/crypto/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ libsha256-y := sha256.o
ifneq ($(CONFIG_CRYPTO_MANAGER_DISABLE_TESTS),y)
libblake2s-y += blake2s-selftest.o
libchacha20poly1305-y += chacha20poly1305-selftest.o
libcurve25519-y += curve25519-selftest.o
endif
Loading

0 comments on commit aa12796

Please sign in to comment.