sign-ed25519: Drop some uses of libsodium
authorAlexander Larsson <alexl@redhat.com>
Thu, 6 Jul 2023 14:41:30 +0000 (16:41 +0200)
committerAlexander Larsson <alexl@redhat.com>
Fri, 7 Jul 2023 15:16:30 +0000 (17:16 +0200)
commit501575c1e44cf2a7d58c39944da405f802023325
treee438318987432b404b6ce55cdc891693526ef589
parent5b7277513b951c7fe352b53d1d90fbcd7c4b5597
sign-ed25519: Drop some uses of libsodium

This adds some defines for ed25519 key sizes and drops uses
of the libsodium defines for these, as well as replacing sodium_bin2hex
use with ot_bin2hex. Some code that wes optionally built before are now
always built.

The goal for this is to support both libsodium and openssl.

Also fixes return value of _load_pk_from_stream(). It used
to always return FALSE.
src/libostree/ostree-sign-ed25519.c