mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-23 09:59:42 +00:00
Update documentation
This commit is contained in:
parent
78c9a6e459
commit
526742d862
@ -850,9 +850,11 @@ public:
|
||||
|
||||
/// \brief Provides input and output data alignment for optimal performance.
|
||||
/// \return the input data alignment that provides optimal performance
|
||||
/// \sa GetAlignment() and OptimalBlockSize()
|
||||
virtual unsigned int OptimalDataAlignment() const;
|
||||
|
||||
/// returns true if this is a permutation (i.e. there is an inverse transformation)
|
||||
/// \brief Determines if the transformation is a permutation
|
||||
/// \returns true if this is a permutation (i.e. there is an inverse transformation)
|
||||
virtual bool IsPermutation() const {return true;}
|
||||
|
||||
/// \brief Determines if the cipher is being operated in its forward direction
|
||||
@ -931,6 +933,7 @@ public:
|
||||
|
||||
/// \brief Provides input and output data alignment for optimal performance
|
||||
/// \return the input data alignment that provides optimal performance
|
||||
/// \sa GetAlignment() and OptimalBlockSize()
|
||||
virtual unsigned int OptimalDataAlignment() const;
|
||||
|
||||
/// \brief Encrypt or decrypt an array of bytes
|
||||
@ -1124,6 +1127,7 @@ public:
|
||||
|
||||
/// \brief Provides input and output data alignment for optimal performance
|
||||
/// \return the input data alignment that provides optimal performance
|
||||
/// \sa GetAlignment() and OptimalBlockSize()
|
||||
virtual unsigned int OptimalDataAlignment() const;
|
||||
|
||||
/// \brief Updates the hash with additional input and computes the hash of the current message
|
||||
|
11
kalyna.h
11
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>();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user