diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-01-25 16:27:44 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-01-25 16:27:44 -0500 |
commit | 526742d862325178f79823fdfd9e11fcb7e7f77d (patch) | |
tree | db691b5173de5bdcc23ab09ab77a44042421488c /kalyna.h | |
parent | 78c9a6e459e4368e29c205b5067b05fde8a2922b (diff) | |
download | cryptopp-git-526742d862325178f79823fdfd9e11fcb7e7f77d.tar.gz |
Update documentation
Diffstat (limited to 'kalyna.h')
-rw-r--r-- | kalyna.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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>();
}
|