curve: move selftest to own file

Move the curve selftest to its own file.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
keypair: do selftest before generating and verifying keypair

Be paraniod and make a selftest.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>