From 6faaf35195f49c9d478fdc7cd188c66d51be163e Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 2 Apr 2018 03:51:51 -0400 Subject: Add Salsa20_Core transform (GH #630) (#632) --- salsa.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'salsa.h') diff --git a/salsa.h b/salsa.h index fcbfd994..957f654a 100644 --- a/salsa.h +++ b/salsa.h @@ -16,6 +16,15 @@ NAMESPACE_BEGIN(CryptoPP) +/// \brief Salsa20 core transform +/// \param data the data to transform +/// \param rounds the number of rounds +/// \details Several algorithms, like CryptoBox and Scrypt, require access to +/// the core Salsa20 transform. The current Crypto++ implementation does not +/// lend itself to disgorging the Salsa20 cipher from the Salsa20 core transform. +/// Instead Salsa20_Core is provided with customary accelerations. +void Salsa20_Core(word32* data, unsigned int rounds); + /// \brief Salsa20 stream cipher information struct Salsa20_Info : public VariableKeyLength<32, 16, 32, 16, SimpleKeyingInterface::UNIQUE_IV, 8> { -- cgit v1.2.1