wolfssl-examples/pk/ecc
aidan garske 413b997e7f ecc_sign_determinisitic.c test for for deterministic ECDSA Prime Field for SECP256R1, SECP384R1, and SECP521R .gitignore addition and binary file exclusion. 2024-07-03 11:54:26 -07:00
..
Makefile Clean up wolfSSL path variable name 2024-04-04 13:28:23 -04:00
README.md Peer review feedback. Adjust README.md and fix possible use of un-init variable. 2020-05-04 07:58:43 -07:00
ecc_keys.c Improved ECC sign/verify examples using raw key/signature elements. Add ECC public key export example. Cleanup ecc_keys.c example. 2020-05-04 07:52:27 -07:00
ecc_pub.c Improved ECC sign/verify examples using raw key/signature elements. Add ECC public key export example. Cleanup ecc_keys.c example. 2020-05-04 07:52:27 -07:00
ecc_sign.c Fix: ecc sign/verify examples calling wolfmath primitives without WOLFSSL_PUBLIC_MP check 2020-05-08 16:35:12 -06:00
ecc_sign_deterministic.c ecc_sign_determinisitic.c test for for deterministic ECDSA Prime Field for SECP256R1, SECP384R1, and SECP521R .gitignore addition and binary file exclusion. 2024-07-03 11:54:26 -07:00
ecc_verify.c Fix: ecc sign/verify examples calling wolfmath primitives without WOLFSSL_PUBLIC_MP check 2020-05-08 16:35:12 -06:00

README.md

Asymmetric ECC Examples

The build option used for wolfSSL are:

./configure --enable-ecc CFLAGS="-DWOLFSSL_PUBLIC_MP"
make
sudo make install
sudo ldconfig

ecc_keys

The ecc_keys.c example shows how to work with storing and loading keys after they have been generated.

  1. Creates a key structure
  2. Stores the private key in DER format.
  3. Loads DER private key back into a ecc_key struct.

ecc_sign

The ecc_sign.c: example takes a random message and private key, creates a signature then verifies it.

ecc_verify

The ecc_verify.c example uses NIST test vectors to demonstrate hashing a message and verifying an ECC signature.

ecc_pub

The ecc_pub example code shows how to extracting an ECC public key from private key.