Change FeedbackSize on Rijndael wrappers to delegate to implementation.
authorKevin Jones <kevin@vcsjones.com>
Thu, 7 Jan 2021 22:44:07 +0000 (17:44 -0500)
committerGitHub <noreply@github.com>
Thu, 7 Jan 2021 22:44:07 +0000 (14:44 -0800)
commit595c61666934f3dd953b2fba2f66f57bccf02f92
tree1ecdc82ff4c51f7bf15452fa20c1d7cbe7a6c491
parent533a807b74c3b9258bb5355eb94c7fb48918f4b9
Change FeedbackSize on Rijndael wrappers to delegate to implementation.

The FeedbackSize on RijndaelManaged and RijndaelImplementation were not
accurately reflecting the feedback size that the actual implementation
was using. The FeedbackSize would report 128, however the implementation
defaults to 8, so CFB8 is actually what was being used.

Likewise, the setter for FeedbackSize on the Rijndael types had no
effect. The implementation's default feedback size of 8 would always
be used.
src/libraries/System.Security.Cryptography.Algorithms/src/Internal/Cryptography/RijndaelImplementation.cs
src/libraries/System.Security.Cryptography.Algorithms/src/System/Security/Cryptography/RijndaelManaged.cs
src/libraries/System.Security.Cryptography.Algorithms/tests/RijndaelTests.cs