Merge branch 'dm-reorder'
Reorder data members of some entities to mitigate performance issues on ARM.
This commit is contained in:
@@ -45,8 +45,8 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool IsInitialized_;
|
|
||||||
Arc4Gen Gen_;
|
Arc4Gen Gen_;
|
||||||
|
bool IsInitialized_;
|
||||||
|
|
||||||
void EnsureInitialized() const
|
void EnsureInitialized() const
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -49,11 +49,11 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool IsInitialized_;
|
std::array<uint8_t, 256> Lookup_;
|
||||||
|
|
||||||
uint8_t I_;
|
uint8_t I_;
|
||||||
uint8_t J_;
|
uint8_t J_;
|
||||||
std::array<uint8_t, 256> Lookup_;
|
|
||||||
|
bool IsInitialized_;
|
||||||
|
|
||||||
void EnsureInitialized() const
|
void EnsureInitialized() const
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -54,11 +54,11 @@ public:
|
|||||||
private:
|
private:
|
||||||
typename CipherT::Encryptor Encryptor_;
|
typename CipherT::Encryptor Encryptor_;
|
||||||
|
|
||||||
uint64_t BlockBytesPacked_;
|
|
||||||
Service::SeArray<uint8_t, CipherT::BlockSize> Block_;
|
|
||||||
|
|
||||||
Service::SeArray<uint8_t, CipherT::BlockSize> EncryptedBlock_;
|
Service::SeArray<uint8_t, CipherT::BlockSize> EncryptedBlock_;
|
||||||
|
|
||||||
|
Service::SeArray<uint8_t, CipherT::BlockSize> Block_;
|
||||||
|
uint64_t BlockBytesPacked_;
|
||||||
|
|
||||||
template<typename OutputIt, typename InputIt>
|
template<typename OutputIt, typename InputIt>
|
||||||
static OutputIt EnsureCopy(OutputIt outBegin, OutputIt outEnd,
|
static OutputIt EnsureCopy(OutputIt outBegin, OutputIt outEnd,
|
||||||
InputIt inBegin, InputIt inEnd)
|
InputIt inBegin, InputIt inEnd)
|
||||||
@@ -169,12 +169,12 @@ public:
|
|||||||
|
|
||||||
typename CipherT::Decryptor Decryptor_;
|
typename CipherT::Decryptor Decryptor_;
|
||||||
|
|
||||||
uint64_t BlockBytesPacked_;
|
|
||||||
BlockArray Block_;
|
BlockArray Block_;
|
||||||
|
|
||||||
bool LastBlockSaved_;
|
|
||||||
BlockArray LastBlock_;
|
BlockArray LastBlock_;
|
||||||
|
|
||||||
|
uint64_t BlockBytesPacked_;
|
||||||
|
bool LastBlockSaved_;
|
||||||
|
|
||||||
template<typename OutputIt, typename InputIt>
|
template<typename OutputIt, typename InputIt>
|
||||||
static OutputIt EnsureCopy(OutputIt outBegin, OutputIt outEnd,
|
static OutputIt EnsureCopy(OutputIt outBegin, OutputIt outEnd,
|
||||||
InputIt inBegin, InputIt inEnd)
|
InputIt inBegin, InputIt inEnd)
|
||||||
|
|||||||
+3
-3
@@ -60,10 +60,10 @@ private:
|
|||||||
static constexpr uint8_t OPAD_BYTE = 0x5c;
|
static constexpr uint8_t OPAD_BYTE = 0x5c;
|
||||||
static constexpr uint8_t IPAD_BYTE = 0x36;
|
static constexpr uint8_t IPAD_BYTE = 0x36;
|
||||||
|
|
||||||
bool IsInitialized_;
|
|
||||||
|
|
||||||
KeyType Key_;
|
|
||||||
HasherImpl Hasher_;
|
HasherImpl Hasher_;
|
||||||
|
KeyType Key_;
|
||||||
|
|
||||||
|
bool IsInitialized_;
|
||||||
|
|
||||||
void EnsureInitialized() const
|
void EnsureInitialized() const
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user