Fix a logical bug where Arc4Crypt was left in invalid state after a

failed Rekey() call.
This commit is contained in:
hashlag committed 2026-09-20 20:40:55 +03:00
1 parent aefa68f118
commit 58718b3b0a
2 files changed
+56

No files matched your search

+1
View File
@@ -59,6 +59,7 @@ private:
template<typename InputIt>
void RekeyImpl(InputIt keyBegin, InputIt keyEnd)
{
IsInitialized_ = false;
Gen_.Rekey(keyBegin, keyEnd);
IsInitialized_ = true;
}