Skip to content

Commit

Permalink
Remove siphash constructors not matching the concept
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Nov 14, 2024
1 parent 52d2a14 commit 761288d
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions include/boost/hash2/siphash.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,10 @@ class siphash_64

siphash_64() = default;

BOOST_CXX14_CONSTEXPR explicit siphash_64( std::uint64_t k0, std::uint64_t k1 = 0 )
BOOST_CXX14_CONSTEXPR explicit siphash_64( std::uint64_t seed )
{
v0 ^= k0;
v1 ^= k1;
v2 ^= k0;
v3 ^= k1;
v0 ^= seed;
v2 ^= seed;
}

BOOST_CXX14_CONSTEXPR siphash_64( unsigned char const * p, std::size_t n )
Expand Down Expand Up @@ -252,14 +250,6 @@ class siphash_32
v3 ^= k1;
}

BOOST_CXX14_CONSTEXPR siphash_32( std::uint32_t k0, std::uint32_t k1 )
{
v0 ^= k0;
v1 ^= k1;
v2 ^= k0;
v3 ^= k1;
}

BOOST_CXX14_CONSTEXPR siphash_32( unsigned char const * p, std::size_t n )
{
if( n == 8 )
Expand Down

0 comments on commit 761288d

Please sign in to comment.