diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-04-02 03:51:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-02 03:51:51 -0400 |
commit | 6faaf35195f49c9d478fdc7cd188c66d51be163e (patch) | |
tree | 84c68beb40b6fe39041c95cd54db5abf9afcf3fb /salsa.h | |
parent | d106256a29b017469b316f1cfe74c1c192801e8e (diff) | |
download | cryptopp-git-6faaf35195f49c9d478fdc7cd188c66d51be163e.tar.gz |
Add Salsa20_Core transform (GH #630) (#632)
Diffstat (limited to 'salsa.h')
-rw-r--r-- | salsa.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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>
{
|