fix WAKE_CFB
parent
1640b5f045
commit
93b4efb369
|
|
@ -189,11 +189,16 @@ struct CRYPTOPP_NO_VTABLE CFB_CipherConcretePolicy : public BASE
|
||||||
|
|
||||||
if (m_dir == ENCRYPTION)
|
if (m_dir == ENCRYPTION)
|
||||||
{
|
{
|
||||||
WordType ct = *(const WordType *)m_input ^ registerWord;
|
if (m_input == NULL)
|
||||||
registerWord = ct;
|
assert(m_output == NULL);
|
||||||
*(WordType*)m_output = ct;
|
else
|
||||||
m_input += sizeof(WordType);
|
{
|
||||||
m_output += sizeof(WordType);
|
WordType ct = *(const WordType *)m_input ^ registerWord;
|
||||||
|
registerWord = ct;
|
||||||
|
*(WordType*)m_output = ct;
|
||||||
|
m_input += sizeof(WordType);
|
||||||
|
m_output += sizeof(WordType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue