-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conform to Ascon Draft Standard #26
Merged
Merged
Conversation
This file contains 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
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
…ction definitions Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
…ne running Linux kernel Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
…permutation implementation Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Comments are written using Google Gemini LLM 🤩 Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
…128 implementation Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
…ctness Signed-off-by: Anjan Roy <[email protected]>
Took it from https://github.com/ascon/ascon-c/blob/ee7ca9c7920e7208880ae58b79e2a0714bfbeedd/crypto_hash/asconxof128/LWC_HASH_KAT_256.txt. Note, the filename in Ascon official repository is misleading :( Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
This optimization makes Ascon permutation with even rounds, ~(2-3)% faster. ```bash Benchmark Time CPU Time Old Time New CPU Old CPU New --------------------------------------------------------------------------------------------------------------------------------------------- ascon_[permutation vs. permutation]<1>_mean +0.0017 +0.0018 7 7 7 7 ascon_[permutation vs. permutation]<1>_median +0.0015 +0.0015 7 7 7 7 ascon_[permutation vs. permutation]<1>_stddev +0.6419 +0.2762 0 0 0 0 ascon_[permutation vs. permutation]<1>_cv +0.6391 +0.2739 0 0 0 0 ascon_[permutation vs. permutation]<1>_min +0.0017 +0.0020 7 7 7 7 ascon_[permutation vs. permutation]<1>_max +0.0026 +0.0025 7 7 7 7 ascon_[permutation vs. permutation]<8>_mean -0.0226 -0.0227 27 27 27 27 ascon_[permutation vs. permutation]<8>_median -0.0232 -0.0233 27 27 27 27 ascon_[permutation vs. permutation]<8>_stddev +3.1631 +3.1249 0 0 0 0 ascon_[permutation vs. permutation]<8>_cv +3.2596 +3.2209 0 0 0 0 ascon_[permutation vs. permutation]<8>_min -0.0239 -0.0238 27 27 27 27 ascon_[permutation vs. permutation]<8>_max -0.0196 -0.0197 27 27 27 27 ascon_[permutation vs. permutation]<12>_mean -0.0300 -0.0300 39 38 39 38 ascon_[permutation vs. permutation]<12>_median -0.0299 -0.0298 39 38 39 38 ascon_[permutation vs. permutation]<12>_stddev -0.2839 -0.4537 0 0 0 0 ascon_[permutation vs. permutation]<12>_cv -0.2618 -0.4368 0 0 0 0 ascon_[permutation vs. permutation]<12>_min -0.0299 -0.0299 39 38 39 38 ascon_[permutation vs. permutation]<12>_max -0.0302 -0.0305 39 38 39 38 ``` Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
…rnel Signed-off-by: Anjan Roy <[email protected]>
…el (it's a Raspberry Pi 4B) Signed-off-by: Anjan Roy <[email protected]>
…expr` Signed-off-by: Anjan Roy <[email protected]>
…AEAD128 Signed-off-by: Anjan Roy <[email protected]>
Signed-off-by: Anjan Roy <[email protected]>
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.
Given that NIST has finally (thanks NIST 🫡) released initial public draft for Ascon LwC cipher suite, I attempt to make this implementation of Ascon cipher suite conforming to the draft standard.
Read Ascon LwC draft standard @ https://doi.org/10.6028/NIST.SP.800-232.ipd