-
-
Notifications
You must be signed in to change notification settings - Fork 965
Open
Description
We could consider dropping hand-written cipher modes in the library.
CbcCipherModewill not be used anymore once PR Use System.Security.Cryptography for TripleDesCipher #1546 is merged.CfbCipherModeis only used for PKCS1 private key encrypted byDES-EDE3-CFB. Suggest user switching to newer encryption method.OfbCipherModeis not used anywhere inside the library.CtrCipherModeis 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 remove AesCipherMode enum (renamed as and use BCL's BlockCipherMode 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 that AesCipher can have a pure BCL implementation (without nested Impl classes)
So does the TripleDesCipher.
Metadata
Metadata
Assignees
Labels
No labels