The build option used for wolfSSL are:
./configure --enable-ecc CFLAGS="-DWOLFSSL_PUBLIC_MP"
make
sudo make install
sudo ldconfig
The ecc_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 ecc_key struct.
The ecc_sign.c: example takes a random message and private key, creates a signature then verifies it.
The ecc_verify.c example uses NIST test vectors to demonstrate hashing a message and verifying an ECC signature.
The ecc_pub example code shows how to extracting an ECC public key from private key.