fix WAKE_CFB
parent
6d4f31be8b
commit
bfd8ad2f1f
|
|
@ -188,6 +188,10 @@ struct CRYPTOPP_NO_VTABLE CFB_CipherConcretePolicy : public BASE
|
|||
registerWord = ByteReverse(registerWord);
|
||||
|
||||
if (m_dir == ENCRYPTION)
|
||||
{
|
||||
if (m_input == NULL)
|
||||
assert(m_output == NULL);
|
||||
else
|
||||
{
|
||||
WordType ct = *(const WordType *)m_input ^ registerWord;
|
||||
registerWord = ct;
|
||||
|
|
@ -195,6 +199,7 @@ struct CRYPTOPP_NO_VTABLE CFB_CipherConcretePolicy : public BASE
|
|||
m_input += sizeof(WordType);
|
||||
m_output += sizeof(WordType);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
WordType ct = *(const WordType *)m_input;
|
||||
|
|
|
|||
Loading…
Reference in New Issue