HomePhabricator

cmake: Only use OpenSSL Ed25519 implementation when possible

Authored by Anderson Toshiyuki Sasaki <ansasaki@redhat.com> on Tue, Nov 5, 4:17 PM.

Description

cmake: Only use OpenSSL Ed25519 implementation when possible

It is possible for OpenSSL to have the type EVP_PKEY_ED25519 in
openssl/evp.h, but not the single shot functions EVP_DigestSign() and
EVP_DigestVerify() which are required to generate Ed25519 signatures.

Only switch to use OpenSSL Ed25519 implementation when OpenSSL have all
required types and functions.

Fixes: T197

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 21655e396c8dc60ca8fcbecc4fec2711f9b29bfd)

Details

Committed
asnThu, Nov 7, 4:14 PM
Parents
rLIBSSH8a6ddc0a4892: gitlab-ci: Mips is dead
Branches
Unknown
Tags
Unknown