Add minimal buffer encrypt and decrypt example for AES-GCM#562
Merged
tmael merged 1 commit intowolfSSL:masterfrom Mar 12, 2026
Merged
Add minimal buffer encrypt and decrypt example for AES-GCM#562tmael merged 1 commit intowolfSSL:masterfrom
tmael merged 1 commit intowolfSSL:masterfrom
Conversation
55c8812 to
9ecc516
Compare
tmael
reviewed
Mar 11, 2026
tmael
reviewed
Mar 11, 2026
9ecc516 to
5ef7c0f
Compare
tmael
requested changes
Mar 11, 2026
Contributor
tmael
left a comment
There was a problem hiding this comment.
Good example. You should probably print the ciphertext and authentication tag, similar to the following output:
$ ./aesgcm-oneshot
Encrypt with AES128-GCM
Plaintext: 090909090909090909090909090909090909090909090909090909090909090909
Ciphertext: 6ce876da0652d9e02ddb344429b268342d1d30868515ebbdf15eab20359fb10d84
Auth Tag: 625191be5c1900b389c53c720a9236c6
Decrypt with AES128-GCM
Decrypted: 090909090909090909090909090909090909090909090909090909090909090909
5ef7c0f to
5462a46
Compare
tmael
reviewed
Mar 12, 2026
tmael
requested changes
Mar 12, 2026
Contributor
tmael
left a comment
There was a problem hiding this comment.
Looks good. One more. missing underscore in __attribute__((target("rdseed")))
5462a46 to
62476b1
Compare
tmael
approved these changes
Mar 12, 2026
Contributor
tmael
left a comment
There was a problem hiding this comment.
Thanks @padelsbach! Looks good.
tmael
reviewed
Mar 12, 2026
|
|
||
| /* Optional setup path: seed wolfSSL RNG via RDSEED when available. */ | ||
| #if defined(__x86_64__) | ||
| #define RDSEED_ENABLED 1 |
Contributor
There was a problem hiding this comment.
Note: The user needs WC_RNG_SEED_CB to use rdseed as well.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.