Whitespace check-in
parent
32ab4af5ff
commit
54ca8b3a16
|
|
@ -42,10 +42,7 @@ struct Threefish_Info : public VariableBlockSize<32, 32, 128>
|
||||||
CRYPTOPP_CONSTANT(IV_LENGTH=32)
|
CRYPTOPP_CONSTANT(IV_LENGTH=32)
|
||||||
//! \brief Provides a valid key length for the algorithm provided by a static function.
|
//! \brief Provides a valid key length for the algorithm provided by a static function.
|
||||||
//! \param keylength the size of the key, in bytes
|
//! \param keylength the size of the key, in bytes
|
||||||
//! \details The key length depends on the block size. For each block size, 128, 256 and 512,
|
//! \details Threefish uses 256, 512 and 1024-bit keys. The block size follows key length.
|
||||||
//! the key length can be either the block size or twice the block size. That means the
|
|
||||||
//! valid key lengths are 126, 256, 512 and 1024. Additionally, it means a key length of,
|
|
||||||
//! say, 32 could be used with either 128-block size or 256-block size.
|
|
||||||
CRYPTOPP_STATIC_CONSTEXPR size_t CRYPTOPP_API StaticGetValidKeyLength(size_t keylength)
|
CRYPTOPP_STATIC_CONSTEXPR size_t CRYPTOPP_API StaticGetValidKeyLength(size_t keylength)
|
||||||
{
|
{
|
||||||
// Valid key lengths are 256, 512 and 1024 bits
|
// Valid key lengths are 256, 512 and 1024 bits
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue