Skip to content

Commit

Permalink
move examples to different directory
Browse files Browse the repository at this point in the history
Signed-off-by: Anjan Roy <[email protected]>
  • Loading branch information
itzmeanjan committed Feb 4, 2024
1 parent e304af0 commit cc2b977
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 22 deletions.
3 changes: 1 addition & 2 deletions example/ascon128_aead.cpp → examples/ascon128_aead.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
3 changes: 1 addition & 2 deletions example/ascon128a_aead.cpp → examples/ascon128a_aead.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
3 changes: 1 addition & 2 deletions example/ascon80pq_aead.cpp → examples/ascon80pq_aead.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
3 changes: 1 addition & 2 deletions example/ascon_hash.cpp → examples/ascon_hash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
3 changes: 1 addition & 2 deletions example/ascon_hasha.cpp → examples/ascon_hasha.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
3 changes: 1 addition & 2 deletions example/ascon_mac.cpp → examples/ascon_mac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
3 changes: 1 addition & 2 deletions example/ascon_prf.cpp → examples/ascon_prf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
6 changes: 2 additions & 4 deletions example/ascon_prfs.cpp → examples/ascon_prfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint8_t> key(ascon_prfs::KEY_LEN);
std::vector<uint8_t> msg(msg_len);
Expand Down
3 changes: 1 addition & 2 deletions example/ascon_xof.cpp → examples/ascon_xof.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
3 changes: 1 addition & 2 deletions example/ascon_xofa.cpp → examples/ascon_xofa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down

0 comments on commit cc2b977

Please sign in to comment.