mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-27 03:40:22 +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--)
|
||||
{
|
||||
memcpy(m_temp, inString, blockSize);
|
||||
m_cipher->ProcessBlock(m_temp, outString);
|
||||
xorbuf(outString, m_register, blockSize);
|
||||
m_cipher->ProcessAndXorBlock(m_temp, m_register, outString);
|
||||
m_register.swap(m_temp);
|
||||
inString += blockSize;
|
||||
outString += blockSize;
|
||||
|
Loading…
Reference in New Issue
Block a user