Commit Graph

47 Commits (master)

Author SHA1 Message Date
Andras Fekete 1d689c8e1b Fix library path 2024-04-30 12:41:33 -04:00
Andras Fekete 4c2f96ff64 Clean up wolfSSL path variable name 2024-04-04 13:28:23 -04:00
Eric Blankenhorn 6ade24305b Cleanup signature example 2023-04-13 10:24:10 -05:00
tim-weller-wolfssl 013a6da63d Phase 1 updates to wolfSSL examples based on testing with wolfSSL
release v5.5.4-stable.  Changes include minor build fixes and README
updates.
2023-03-25 09:15:11 -05:00
Lealem Amedie c8d596269d Getting files to run and pass nightly-CDT test 2021-07-06 13:57:19 -06:00
Lealem Amedie be264f0511 Adding documentation where needed. Made changes to code to assure files build and implement good coding practices 2021-06-29 16:02:52 -06:00
David Garske 5ba15f1426 Spelling fixes. 2021-06-09 09:07:40 -07:00
Daniele Lacamera 66a9a3bf87 Fixed linking order in ecc-sign-verify example 2020-07-29 16:33:14 +02:00
Eric Blankenhorn 4d3763952c Fix make order and types with Linux 2020-06-16 16:06:51 -05:00
David Garske 61bda8dbdf Improvements and cleanups to the sigtests. Updated the wolfsigtest.c to support three methods for loading RSA public keys. Added a `DEMO_RSA_VERIFY_ONLY` build option to show verify only. Added an example for using `wc_SignatureVerifyHash`. 2020-06-15 16:52:16 -07:00
kaleb-himes c1e3cdd5d7 implement peer review feedback 2020-02-26 10:13:39 -07:00
kaleb-himes 5404a201fa Changes based on peer feedback 2020-02-13 12:14:53 -07:00
kaleb-himes 370ac11609 Fix byteField calculation 2020-02-06 11:51:40 -07:00
kaleb-himes 14cab5be98 Add a pure ecc sign/verify example 2020-02-05 17:14:28 -07:00
Chris Conlon 9237d307b5 update copyright to 2020 2020-01-03 16:08:42 -08:00
Carie Pointer 30dc37a2ea Add SHA224 as an option for <hash> type in usage print statement and update hash type values to match the correct enum values found in types.h 2019-08-26 15:32:09 -07:00
kaleb-himes 1640acdff9 resolve compiler warnings and remove executable from tracking 2019-05-24 15:07:25 -04:00
Kaleb Himes b892a5c480
Correct usage typo in README for opensigtest 2019-04-30 10:10:17 -06:00
David Garske 30081a02ad Added support to show example of max for `eccsiglentest` using `DEBUG_SIG_TEST_MAX`. 2019-04-30 08:48:08 -07:00
David Garske 20e7712ae8 Fix to include last curve (BP512). Added max calc based on key's curve. 2019-04-10 21:11:05 -07:00
David Garske 165494cabb Added missing .c code file. Thanks Kaleb. 2019-04-09 09:05:21 -07:00
David Garske b185b89068 Remove execute bits on files. 2019-04-09 09:05:21 -07:00
David Garske 35344db150 Added test tool for checking the ECC maximum signature length. Iterates through each supported curve and loops the sign/verify to determine at run-time the maximum ECC signature size for each curve. 2019-04-09 09:05:21 -07:00
Sean Parkinson acd0595e1d Small RSA verification example 2019-03-18 11:43:15 +10:00
kaleb-himes c6ab48d9a5 Refactor PK examples out of crypto and mv non-sig specific to pk dir 2019-02-26 11:15:12 -07:00
Sean Parkinson a53a5b1a38 Add simple RSA sign and verify examples 2018-11-15 08:20:13 +10:00
David Garske fc71c6016d Added new examples for ECC and PKCS7. Moved the signature/firmware_sign example into new `ecc` folder. 2018-06-06 14:00:11 -07:00
David Garske ef20350409 Fix for scan-build issue with not used iRetval. Fix to Makefile for openssl. 2018-05-31 14:19:51 -07:00
David Garske e11ecf9179 Updated example to demonstrate using curveId parameter for make key and ECC verify. 2018-05-17 11:48:38 -07:00
David Garske 2ab4072d21 Fixups based on Kaleb's review. 2018-05-17 11:40:13 -07:00
David Garske beba82b2af Additional signature examples and tests. 2018-05-17 11:40:13 -07:00
dgarske b6ccb88d83 Merge pull request #82 from kaleb-himes/rsa-sign-ver-to-enc-dec-example
refactor sanity checks and a debug print
2017-10-24 14:08:06 -07:00
kaleb-himes 353bb08330 refactor sanity checks and a debug print 2017-10-24 12:13:50 -06:00
David Garske 698c5ecf63 Cleanups to signature example. Added return code checking and clarified the malloc values used. 2017-10-24 08:33:41 -07:00
kaleb-himes 9df79cae87 Cleanup 2017-10-23 16:00:56 -06:00
kaleb-himes dbceeabc1a An example of using Sign/Verify to achieve private encrypt/public decrypt w/ RSA 2017-10-23 15:58:21 -06:00
kaleb-himes 76cc800750 update ED25519 examples based on feedback 2017-04-12 11:41:36 -06:00
kaleb-himes 7bb3cc3ad1 ED25519 examples for key gen and .der output, sign/verify 2017-04-11 17:35:51 -06:00
David Garske f03ff6ec85 Updated ECC make key example to use wc_ecc_make_key_ex API, which supports ecc_curve_id. 2016-11-11 12:30:16 -08:00
David Garske ad8ca32d03 Added ability to perform verify against signature file. 2016-11-11 12:29:22 -08:00
David Garske e3fb299e37 Corrected the RSA w/DER encoding text and reverted accidental check-in to enable debugging. 2016-02-08 15:32:14 -08:00
David Garske 50c13eb28f Updated the signature example to support the new RSA w/encode. Updated some of the printf strings. Updated the wc_Signature response code handling for RSA. 2016-02-03 11:47:49 -08:00
David Garske 3c553c889f Updated README.md for signature example and added new 8=MD5+SHA. 2016-01-29 16:28:09 -08:00
David Garske 68c534c867 Added RSA support to signature example. 2015-11-16 11:15:14 -08:00
David Garske 0d7d3f42cf Updated the example to separate the ECC sign/verify from RSA. Working on adding RSA support. 2015-11-13 12:28:45 -08:00
David Garske d06125b4fa Fixed missing "fclose" in signature example. 2015-11-12 20:03:15 -08:00
David Garske 438f5c91c1 wolfSSL signature example. This example takes a file and creates a signature for it using the "wc_Signature*" wrapper functions. This example generates a new ECC key and dumps the key values, then creates a signature from a hash of the file and signs it. Then it performs a verification using the signature and public key. 2015-11-12 09:54:15 -08:00