The build option used for wolfSSL are:
./configure --enable-ed25519 --enable-keygen
make
sudo make install
sudo ldconfig
The ed25519_keys.c
example shows how to work with storing and loading keys after they have been generated.
- Creates a key structure
- Stores the private key in DER format.
- Loads DER private key back into a ed25519_key struct.
The ed25519_sign.c:
example takes a random message and private key, creates a signature then verifies it.
The ed25519_verify.c
example uses NIST test vectors to demonstrate hashing a message and verifying an Ed25519 signature.
The ed25519_pub
example code shows how to extracting an Ed25519 public key from private key.