mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-22 19:10:41 -10:00
In .NET Framework, TripleDESCryptoServiceProvider defaults to a feedback size of 8, and TripleDESCng defaults to a feedback size of 64. The static Create by default would return TripleDESCryptoServiceProvider, thus the TripleDES from Create would have a default feedback size of 8. This changes the default sizes of TripleDES to behave more similarly to .NET Framework to make porting CFB code from Framework easier. The internal 3DES implementation (and thus TripleDESCryptoServiceProvider, since that is a wrapper around the internal implementation) now defaults to a feedback size of 8. TripleDESCng and user-derived classes from TripleDES will continue to use a feedback size of 64. Co-authored-by: Kevin Jones <[email protected]>