Skip to content

Commit

Permalink
Add sha3_512, shake_128, shake_256 to benchmark/buffer.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Feb 1, 2025
1 parent b9c328a commit 45b1b2a
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions benchmark/buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,25 +56,28 @@ void test( int N, int M )
//test_<sha1_160>( data, N, M );
test_<sha2_256>( data, N, M );
//test_<sha2_224>( data, N, M );
//test_<sha2_512>( data, N, M );
test_<sha2_512>( data, N, M );
//test_<sha2_384>( data, N, M );
//test_<sha2_512_224>( data, N, M );
//test_<sha2_512_256>( data, N, M );
//test_<ripemd_160>( data, N, M );
//test_<ripemd_128>( data, N, M );
test_<sha3_256>( data, N, M );
test_<sha3_512>( data, N, M );
test_<shake_128>( data, N, M );
test_<shake_256>( data, N, M );

puts( "--" );
}

unsigned const N1 = 65536;
unsigned const M1 = 65535;

unsigned const N2 = 15;
unsigned const M2 = M1 * N1 / N2;
//unsigned const N2 = 15;
//unsigned const M2 = M1 * N1 / N2;

unsigned const N3 = 4;
unsigned const M3 = M1 * N1 / N3;
//unsigned const N3 = 4;
//unsigned const M3 = M1 * N1 / N3;

int main()
{
Expand Down

0 comments on commit 45b1b2a

Please sign in to comment.