Fix a logical bug where Arc4Crypt was left in invalid state after a
failed Rekey() call.
This commit is contained in:
1 parent
aefa68f118
commit
58718b3b0a
2 files changed
+56
No files matched your search
@@ -59,6 +59,7 @@ private:
|
||||
template<typename InputIt>
|
||||
void RekeyImpl(InputIt keyBegin, InputIt keyEnd)
|
||||
{
|
||||
IsInitialized_ = false;
|
||||
Gen_.Rekey(keyBegin, keyEnd);
|
||||
IsInitialized_ = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user