summaryrefslogtreecommitdiff
path: root/kalyna.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-01-25 16:27:44 -0500
committerJeffrey Walton <noloader@gmail.com>2018-01-25 16:27:44 -0500
commit526742d862325178f79823fdfd9e11fcb7e7f77d (patch)
treedb691b5173de5bdcc23ab09ab77a44042421488c /kalyna.h
parent78c9a6e459e4368e29c205b5067b05fde8a2922b (diff)
downloadcryptopp-git-526742d862325178f79823fdfd9e11fcb7e7f77d.tar.gz
Update documentation
Diffstat (limited to 'kalyna.h')
-rw-r--r--kalyna.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/kalyna.h b/kalyna.h
index 43e54bd0..0202ce8f 100644
--- a/kalyna.h
+++ b/kalyna.h
@@ -92,6 +92,9 @@ public:
return std::string("Kalyna-128") + "(" + IntToString(m_kl*8) + ")";
}
+ /// \brief Provides input and output data alignment for optimal performance.
+ /// \return the input data alignment that provides optimal performance
+ /// \sa GetAlignment() and OptimalBlockSize()
unsigned int OptimalDataAlignment() const {
return GetAlignmentOf<word64>();
}
@@ -105,7 +108,7 @@ public:
void SetKey_24(const word64 key[4]);
void ProcessBlock_22(const word64 inBlock[2], const word64 xorBlock[2], word64 outBlock[2]) const;
void ProcessBlock_24(const word64 inBlock[2], const word64 xorBlock[2] ,word64 outBlock[2]) const;
- };
+ };
typedef BlockCipherFinal<ENCRYPTION, Base> Encryption;
typedef BlockCipherFinal<DECRYPTION, Base> Decryption;
@@ -135,6 +138,9 @@ public:
return std::string("Kalyna-256") + "(" + IntToString(m_kl*8) + ")";
}
+ /// \brief Provides input and output data alignment for optimal performance.
+ /// \return the input data alignment that provides optimal performance
+ /// \sa GetAlignment() and OptimalBlockSize()
unsigned int OptimalDataAlignment() const {
return GetAlignmentOf<word64>();
}
@@ -178,6 +184,9 @@ public:
return std::string("Kalyna-512") + "(" + IntToString(m_kl*8) + ")";
}
+ /// \brief Provides input and output data alignment for optimal performance.
+ /// \return the input data alignment that provides optimal performance
+ /// \sa GetAlignment() and OptimalBlockSize()
unsigned int OptimalDataAlignment() const {
return GetAlignmentOf<word64>();
}