summaryrefslogtreecommitdiff
path: root/salsa.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-04-02 03:51:51 -0400
committerGitHub <noreply@github.com>2018-04-02 03:51:51 -0400
commit6faaf35195f49c9d478fdc7cd188c66d51be163e (patch)
tree84c68beb40b6fe39041c95cd54db5abf9afcf3fb /salsa.h
parentd106256a29b017469b316f1cfe74c1c192801e8e (diff)
downloadcryptopp-git-6faaf35195f49c9d478fdc7cd188c66d51be163e.tar.gz
Add Salsa20_Core transform (GH #630) (#632)
Diffstat (limited to 'salsa.h')
-rw-r--r--salsa.h9
1 files changed, 9 insertions, 0 deletions
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>
{