From cc2b977110c766f8feb14eb8842b5a4d77bd48e4 Mon Sep 17 00:00:00 2001 From: Anjan Roy Date: Sun, 4 Feb 2024 15:34:11 +0400 Subject: [PATCH] move examples to different directory Signed-off-by: Anjan Roy --- {example => examples}/ascon128_aead.cpp | 3 +-- {example => examples}/ascon128a_aead.cpp | 3 +-- {example => examples}/ascon80pq_aead.cpp | 3 +-- {example => examples}/ascon_hash.cpp | 3 +-- {example => examples}/ascon_hasha.cpp | 3 +-- {example => examples}/ascon_mac.cpp | 3 +-- {example => examples}/ascon_prf.cpp | 3 +-- {example => examples}/ascon_prfs.cpp | 6 ++---- {example => examples}/ascon_xof.cpp | 3 +-- {example => examples}/ascon_xofa.cpp | 3 +-- 10 files changed, 11 insertions(+), 22 deletions(-) rename {example => examples}/ascon128_aead.cpp (97%) rename {example => examples}/ascon128a_aead.cpp (97%) rename {example => examples}/ascon80pq_aead.cpp (97%) rename {example => examples}/ascon_hash.cpp (95%) rename {example => examples}/ascon_hasha.cpp (94%) rename {example => examples}/ascon_mac.cpp (97%) rename {example => examples}/ascon_prf.cpp (96%) rename {example => examples}/ascon_prfs.cpp (88%) rename {example => examples}/ascon_xof.cpp (95%) rename {example => examples}/ascon_xofa.cpp (95%) diff --git a/example/ascon128_aead.cpp b/examples/ascon128_aead.cpp similarity index 97% rename from example/ascon128_aead.cpp rename to examples/ascon128_aead.cpp index 3443cbf..0fd44bb 100644 --- a/example/ascon128_aead.cpp +++ b/examples/ascon128_aead.cpp @@ -4,8 +4,7 @@ // Compile with // -// g++ -std=c++20 -Wall -O3 -march=native -I ./include -I ./subtle/include -// example/ascon128_aead.cpp +// g++ -std=c++20 -Wall -O3 -march=native -I ./include -I ./subtle/include examples/ascon128_aead.cpp int main() { diff --git a/example/ascon128a_aead.cpp b/examples/ascon128a_aead.cpp similarity index 97% rename from example/ascon128a_aead.cpp rename to examples/ascon128a_aead.cpp index 3fa7f7c..8ead783 100644 --- a/example/ascon128a_aead.cpp +++ b/examples/ascon128a_aead.cpp @@ -4,8 +4,7 @@ // Compile with // -// g++ -std=c++20 -Wall -O3 -march=native -I ./include -I ./subtle/include -// example/ascon128a_aead.cpp +// g++ -std=c++20 -Wall -O3 -march=native -I ./include -I ./subtle/include examples/ascon128a_aead.cpp int main() { diff --git a/example/ascon80pq_aead.cpp b/examples/ascon80pq_aead.cpp similarity index 97% rename from example/ascon80pq_aead.cpp rename to examples/ascon80pq_aead.cpp index 9ab8a59..f383c53 100644 --- a/example/ascon80pq_aead.cpp +++ b/examples/ascon80pq_aead.cpp @@ -4,8 +4,7 @@ // Compile with // -// g++ -std=c++20 -Wall -O3 -march=native -I ./include -I ./subtle/include -// example/ascon80pq_aead.cpp +// g++ -std=c++20 -Wall -O3 -march=native -I ./include -I ./subtle/include examples/ascon80pq_aead.cpp int main() { diff --git a/example/ascon_hash.cpp b/examples/ascon_hash.cpp similarity index 95% rename from example/ascon_hash.cpp rename to examples/ascon_hash.cpp index 8bdfde0..ecbe055 100644 --- a/example/ascon_hash.cpp +++ b/examples/ascon_hash.cpp @@ -3,8 +3,7 @@ // Compile with // -// g++ -std=c++20 -Wall -O3 -march=native -I ./include -I ./subtle/include -// example/ascon_hash.cpp +// g++ -std=c++20 -Wall -O3 -march=native -I ./include -I ./subtle/include examples/ascon_hash.cpp int main() { diff --git a/example/ascon_hasha.cpp b/examples/ascon_hasha.cpp similarity index 94% rename from example/ascon_hasha.cpp rename to examples/ascon_hasha.cpp index d722e71..43881c5 100644 --- a/example/ascon_hasha.cpp +++ b/examples/ascon_hasha.cpp @@ -3,8 +3,7 @@ // Compile with // -// g++ -std=c++20 -Wall -O3 -march=native -I ./include -I ./subtle/include -// example/ascon_hasha.cpp +// g++ -std=c++20 -Wall -O3 -march=native -I ./include -I ./subtle/include examples/ascon_hasha.cpp int main() { diff --git a/example/ascon_mac.cpp b/examples/ascon_mac.cpp similarity index 97% rename from example/ascon_mac.cpp rename to examples/ascon_mac.cpp index bd9bfb3..9048003 100644 --- a/example/ascon_mac.cpp +++ b/examples/ascon_mac.cpp @@ -4,8 +4,7 @@ // Compile with // -// g++ -std=c++20 -Wall -O3 -march=native -mtune=native -I ./include -I ./subtle/include -// example/ascon_mac.cpp +// g++ -std=c++20 -Wall -O3 -march=native -mtune=native -I ./include -I ./subtle/include examples/ascon_mac.cpp int main() { diff --git a/example/ascon_prf.cpp b/examples/ascon_prf.cpp similarity index 96% rename from example/ascon_prf.cpp rename to examples/ascon_prf.cpp index 9d3bf6a..66ff029 100644 --- a/example/ascon_prf.cpp +++ b/examples/ascon_prf.cpp @@ -4,8 +4,7 @@ // Compile with // -// g++ -std=c++20 -Wall -O3 -march=native -mtune=native -I ./include -I ./subtle/include -// example/ascon_prf.cpp +// g++ -std=c++20 -Wall -O3 -march=native -mtune=native -I ./include -I ./subtle/include examples/ascon_prf.cpp int main() { diff --git a/example/ascon_prfs.cpp b/examples/ascon_prfs.cpp similarity index 88% rename from example/ascon_prfs.cpp rename to examples/ascon_prfs.cpp index a444d22..e9d7c24 100644 --- a/example/ascon_prfs.cpp +++ b/examples/ascon_prfs.cpp @@ -4,14 +4,12 @@ // Compile with // -// g++ -std=c++20 -Wall -O3 -march=native -mtune=native -I ./include -I ./subtle/include -// example/ascon_prfs.cpp +// g++ -std=c++20 -Wall -O3 -march=native -mtune=native -I ./include -I ./subtle/include examples/ascon_prfs.cpp int main() { constexpr size_t msg_len = 8; // bytes - static_assert(msg_len <= ascon_prfs::MAX_MSG_LEN, - "Ascon-PRFShort can authenticate at max 16 -bytes message."); + static_assert(msg_len <= ascon_prfs::MAX_MSG_LEN, "Ascon-PRFShort can authenticate at max 16 -bytes message."); std::vector key(ascon_prfs::KEY_LEN); std::vector msg(msg_len); diff --git a/example/ascon_xof.cpp b/examples/ascon_xof.cpp similarity index 95% rename from example/ascon_xof.cpp rename to examples/ascon_xof.cpp index 286e42b..45ba2ed 100644 --- a/example/ascon_xof.cpp +++ b/examples/ascon_xof.cpp @@ -3,8 +3,7 @@ // Compile with // -// g++ -std=c++20 -Wall -O3 -march=native -I ./include -I ./subtle/include -// example/ascon_xof.cpp +// g++ -std=c++20 -Wall -O3 -march=native -I ./include -I ./subtle/include examples/ascon_xof.cpp int main() { diff --git a/example/ascon_xofa.cpp b/examples/ascon_xofa.cpp similarity index 95% rename from example/ascon_xofa.cpp rename to examples/ascon_xofa.cpp index 696e064..0e13ce2 100644 --- a/example/ascon_xofa.cpp +++ b/examples/ascon_xofa.cpp @@ -3,8 +3,7 @@ // Compile with // -// g++ -std=c++20 -Wall -O3 -march=native -I ./include -I ./subtle/include -// example/ascon_xofa.cpp +// g++ -std=c++20 -Wall -O3 -march=native -I ./include -I ./subtle/include examples/ascon_xofa.cpp int main() {