Skip to content

Ascon examples#573

Open
helkoulak wants to merge 3 commits intowolfSSL:masterfrom
helkoulak:ascon-examples
Open

Ascon examples#573
helkoulak wants to merge 3 commits intowolfSSL:masterfrom
helkoulak:ascon-examples

Conversation

@helkoulak
Copy link
Copy Markdown

Two examples that show how to use the algorithms Ascon-Hash256 and Ascon-AEAD128

Fix typos

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

Add an example for algorithm Ascon-Hash256
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds two new usage examples for Ascon algorithms in the examples repository: one for hashing with Ascon-Hash256 and one for file encryption/decryption with Ascon-AEAD128, along with README/Makefile support so users can build and run them.

Changes:

  • Add hash/Ascon-Hash256.c and document how to run it in hash/README.md.
  • Add a new crypto/ascon/ example (ascon-file-encrypt.c) with a local Makefile and README.md.
  • Link the new Ascon crypto example docs from crypto/README.md.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 12 comments.

Show a summary per file
File Description
hash/README.md Documents running the new Ascon hashing example.
hash/Ascon-Hash256.c New Ascon-Hash256 file hashing example program.
crypto/ascon/ascon-file-encrypt.c New Ascon-AEAD128 file encrypt/decrypt example program.
crypto/ascon/README.md Build/run instructions for the Ascon file encryption example.
crypto/ascon/Makefile Builds the Ascon file encryption example.
crypto/README.md Adds a link to the new crypto/ascon documentation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread crypto/ascon/ascon-file-encrypt.c Outdated
Comment thread crypto/ascon/ascon-file-encrypt.c Outdated
Comment thread crypto/ascon/ascon-file-encrypt.c Outdated
Comment thread crypto/ascon/ascon-file-encrypt.c Outdated
Comment thread crypto/ascon/ascon-file-encrypt.c Outdated
Comment thread crypto/ascon/Makefile Outdated
Comment thread hash/README.md Outdated
Comment thread hash/Ascon-Hash256.c Outdated
Comment thread hash/Ascon-Hash256.c Outdated
Comment thread hash/Ascon-Hash256.c Outdated
@helkoulak
Copy link
Copy Markdown
Author

I will fix those errors ASAP. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants