-
-
Notifications
You must be signed in to change notification settings - Fork 947
Consider dropping hand-written cipher modes #1560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Ideally, there's only below ciphers in Ciphers folder
|
Once dotnet/runtime#89718 is implemented, we don't need BouncyCastle for AesGcmCipher |
I'd be fine with dropping the I would prefer not to change the public API of |
|
We could consider dropping hand-written cipher modes in the library.
CbcCipherMode
will not be used anymore once PR Use System.Security.Cryptography for TripleDesCipher #1546 is merged.CfbCipherMode
is only used for PKCS1 private key encrypted byDES-EDE3-CFB. Suggest user switching to newer encryption method.OfbCipherMode
is not used anywhere inside the library.CtrCipherMode
is used forAesCipher
. We can create a dedicated classAesCtrCipher
, just likeAesGcmCipher
.With all above concrete classes removed, we can remove the abstract class
CipherMode
. We can also removeAesCipherMode
enum(renamed asand use BCL'sBlockCipherMode
in PR #1546)CipherMode
enum.Then
AesCipher.BlockImpl
can be removed,AesCipher.CtrImpl
can be removed (moved to a dedicated class per above suggestion).AesCipher.BclImpl
can be removed so thatAesCipher
can have a pure BCL implementation (without nestedImpl
classes)So does the
TripleDesCipher
.The text was updated successfully, but these errors were encountered: