mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-30 05:10:40 +00:00
optimization in CBC_Decryption::ProcessBlocks()
This commit is contained in:
parent
1c25799598
commit
f7f1e82b0c
@ -192,8 +192,7 @@ void CBC_Decryption::ProcessBlocks(byte *outString, const byte *inString, size_t
|
|||||||
while (numberOfBlocks--)
|
while (numberOfBlocks--)
|
||||||
{
|
{
|
||||||
memcpy(m_temp, inString, blockSize);
|
memcpy(m_temp, inString, blockSize);
|
||||||
m_cipher->ProcessBlock(m_temp, outString);
|
m_cipher->ProcessAndXorBlock(m_temp, m_register, outString);
|
||||||
xorbuf(outString, m_register, blockSize);
|
|
||||||
m_register.swap(m_temp);
|
m_register.swap(m_temp);
|
||||||
inString += blockSize;
|
inString += blockSize;
|
||||||
outString += blockSize;
|
outString += blockSize;
|
||||||
|
Loading…
Reference in New Issue
Block a user