Commit Graph

108 Commits (5807e9b595c6c3f7103d59b79dd4663dcdf88ed2)

Author SHA1 Message Date
Emma Stensland 6d28833ed3 fixed duplicate unlink(out_file) 2026-07-14 15:15:29 -06:00
Emma Stensland 8c968eb572 F-1296 F-2112 F-2893 F-2900 F-3899 F-4121 F-4127: Fix error handling in TLS, DTLS, and protocol examples 2026-07-14 15:06:41 -06:00
Emma Stensland 8f0f1af04a F-1298 F-1302 F-1307 F-1712 F-1713 F-1719 F-1720 F-1721 F-1722 F-2093 F-3466 F-3472 F-3477 F-4131 F-4132 F-4600 F-5612 F-6286 F-6289 F-6536: Fix error handling in crypto and signature examples 2026-07-14 15:06:41 -06:00
Emma Stensland 210e9caf3e F-1715 F-2114 F-3224 F-3690 F-4120 F-4123 F-4124 F-5614 F-5615: replace hardcoded/UAF-prone secrets and keys with RNG-generated values, zeroize key material before free, and flag non-constant-time secret comparisons 2026-07-14 13:33:25 -06:00
Emma Stensland 320dca9c66 F-1302 F-1303 F-1304 F-1308 F-3471 F-3691 F-4601: fix buffer overflows, malloc/realloc NULL checks, and padding validation in crypto file-encryption examples 2026-07-14 13:33:25 -06:00
Emma Stensland 99cdfa1e3a F-1295 F-1697 F-3684 F-6287: fix duplicate wolfSSL_write call, wc_FreeDhKey double-free/key2 leak, fileSize dead-code checks, and unsigned keySz < 0 check 2026-07-10 16:56:42 -06:00
night1rider f86be21227 Propagate failure from EVP decrypt_file error paths
Set a non-success ret before each error goto so the function no longer returns WOLFSSL_SUCCESS on failure, using AES_GCM_AUTH_E when EVP_DecryptFinal_ex rejects a tampered GCM tag, and correct the mislabeled perror strings.
2026-06-30 10:01:32 -06:00
Hosam Elkoulak cdcebdc1e2 move var declarations to the beginning of the block 2026-06-17 13:45:28 +02:00
Hosam Elkoulak 7744b613d7 Move declarations to the beginning of the block 2026-06-16 17:26:27 +02:00
Hosam Elkoulak 7727575e95 Fix logic when to opt out in case of empty password 2026-06-16 17:25:11 +02:00
Hosam Elkoulak c8d9c3b193 Add error checks for fseek and ftell function calls 2026-06-16 17:23:58 +02:00
Hosam Elkoulak 2da7daf2b9 Avoid overflowing the key array by providing a separate array for the password 2026-06-16 17:22:26 +02:00
Hosam Elkoulak 53855725f2 Zero byte files are now supported by Ascon file encrypt + fix for loop index, it should be defined as long as well for huge files 2026-06-12 17:29:15 +02:00
Hosam Elkoulak 7c26f5dbaf Decrypt in blocks and some fixes 2026-06-08 21:03:45 +02:00
Hosam Elkoulak c5584726bf Some more fixes 2026-06-05 18:50:48 +02:00
Hosam Elkoulak 6ffa7eac4c Fix input len at cleanup 2026-05-29 23:51:15 +02:00
Hosam Elkoulak c2a0ec1471 More fixes for ascon file encrypt 2026-05-29 23:29:07 +02:00
Hosam Elkoulak d36f572a33 Fixes for ascon-file-encrypt 2026-05-26 00:41:28 +02:00
Hosam Elkoulak ae042f171c Fixes for ascon-file-encrypt 2026-05-01 08:33:16 +02:00
Hosam Elkoulak d000810206 Two examples for Ascon-AEAD128 and Ascon-Hash256
Fix typos

No need to input key size as the size for ascon AEAD algorithm is fixed

Add an example for algorithm Ascon-Hash256
2026-04-27 17:22:49 +02:00
Paul Adelsbach 1ac9c87c3b Extend minimal and rdseed examples 2026-03-20 15:27:46 -07:00
Paul Adelsbach 62476b1871 Add minimal buffer encrypt and decrypt example for AES-GCM 2026-03-12 09:52:47 -07:00
JacobBarthelmeh b62a9c6009 change print buffer function name and use word32 for derSz 2026-02-18 17:02:01 -07:00
Jacob Barthelmeh 2aa1f85d3a improvements to example print out 2026-02-18 16:57:15 -07:00
JacobBarthelmeh 43a35469d9 adjust pkcs12 example to print out list of certificates found 2026-02-18 16:57:15 -07:00
JacobBarthelmeh 850b44732e
Merge pull request #540 from anhu/aes_modes_preamble
AES modes extravaganza. Makefile, README and misc. files
2025-12-18 17:48:16 -07:00
JacobBarthelmeh b8e2445c52
Merge pull request #549 from anhu/aes_modes_ofb_siv_xts
AES modes extravaganza. ofb, siv, xts
2025-12-18 17:44:44 -07:00
JacobBarthelmeh 0ecf716590
Merge pull request #547 from anhu/aes_modes_eax_ecb
AES modes extravaganza. eax and ecb
2025-12-18 17:39:22 -07:00
JacobBarthelmeh dbceabdba8
Merge pull request #546 from anhu/aes_modes_direct_keywrap
AES modes extravaganza. direct and keywrap
2025-12-18 17:35:29 -07:00
JacobBarthelmeh 153abeaaa3
Merge pull request #545 from anhu/aes_modes_cts
AES modes extravaganza. CTS
2025-12-18 17:25:27 -07:00
JacobBarthelmeh b179722658
Merge pull request #544 from anhu/aes_modes_ctr
AES modes extravaganza. CTR
2025-12-18 17:07:40 -07:00
JacobBarthelmeh eaff9c5f2c
Merge pull request #543 from anhu/aes_modes_cfb
AES modes extravaganza. CFB, CFB1, CFB8
2025-12-18 17:05:35 -07:00
JacobBarthelmeh 37da886140
Merge pull request #542 from anhu/aes_modes_ccm
AES modes extravaganza. CCM
2025-12-18 16:58:57 -07:00
JacobBarthelmeh dc54fd70a5
Merge pull request #541 from anhu/aes_modes_cbc
AES modes extravaganza. CBC
2025-12-18 16:55:08 -07:00
Anthony Hu 1d0c480da4 AES modes extravaganza. ofb, siv, xts 2025-12-18 11:41:40 -05:00
Anthony Hu e6fb240e62 AES modes extravaganza. gcm and gmac 2025-12-18 11:39:27 -05:00
Anthony Hu 2de853ecfd AES modes extravaganza. eax and ecb 2025-12-18 11:37:43 -05:00
Anthony Hu 0c586be167 AES modes extravaganza. direct and keywrap 2025-12-18 11:35:32 -05:00
Anthony Hu 482ade5848 AES modes extravaganza. CTS 2025-12-18 10:55:53 -05:00
Anthony Hu a6ac31c0e9 AES modes extravaganza. CTR 2025-12-18 10:27:06 -05:00
Anthony Hu e238b6f444 AES modes extravaganza. CFB, CFB1, CFB8 2025-12-18 10:24:11 -05:00
Anthony Hu 804bbf1e22 AES modes extravaganza. CCM 2025-12-18 10:18:53 -05:00
Anthony Hu ee87548495 AES modes extravaganza. CBC 2025-12-18 10:16:18 -05:00
Anthony Hu 6d68018caa AES modes extravaganza. Makefile, README and misc. files 2025-12-18 10:03:50 -05:00
Bridger Voss d393c3e9b2 old wc naming convention fixes 2025-07-09 10:08:59 -06:00
Eric Blankenhorn 6df432eaac Clarify aesgcm-file-encrypt demo 2025-05-13 17:00:40 -05:00
JacobBarthelmeh 912c585989
Merge pull request #411 from dgarske/keywrap
Example for key wrap using ECDH, HKDF and AES GCM
2025-03-26 03:50:37 +07:00
Sean Parkinson 4aa0d3758a AES-GCM one shot example
Add a simple example of using the AES-GCM oneshot API for encryption and
decryption.
2024-08-08 12:23:06 +10:00
Andras Fekete 4c2f96ff64 Clean up wolfSSL path variable name 2024-04-04 13:28:23 -04:00
philljj 96200032eb Add missing wc_AesInit calls. 2023-11-30 15:14:05 -06:00