6[Obsolete(
"Derived cryptographic types are obsolete. Use the Create method on the base type instead.", DiagnosticId =
"SYSLIB0021", UrlFormat =
"https://aka.ms/dotnet-warnings/{0}")]
17 byte[]
array =
new byte[8];
38 return CreateTransform(rgbKey, rgbIV?.CloneByteArray(), encrypting:
false);
48 return CreateTransform(rgbKey, rgbIV?.CloneByteArray(), encrypting:
true);
57 long num = (long)rgbKey.Length * 8
L;
58 if (num >
int.MaxValue || !((
int)num).IsLegalSize(
LegalKeySizes))
77 else if (rgbIV.Length < 8)
81 Internal.Cryptography.BasicSymmetricCipher cipher =
new BasicSymmetricCipherCsp(26113, Mode,
BlockSize / 8, rgbKey, 0, addNoSaltFlag:
false, rgbIV, encrypting,
FeedbackSize, this.GetPaddingSize(Mode,
FeedbackSize));
static string Cryptography_InvalidKey_SemiWeak
static string Cryptography_InvalidKey_Weak
static string Cryptography_InvalidKeySize
static string Cryptography_InvalidIVSize
override ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[]? rgbIV)
override ICryptoTransform CreateDecryptor()
override void GenerateKey()
ICryptoTransform CreateTransform(byte[] rgbKey, byte[] rgbIV, bool encrypting)
DESCryptoServiceProvider()
override void GenerateIV()
override ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[]? rgbIV)
override ICryptoTransform CreateEncryptor()
static bool IsWeakKey(byte[] rgbKey)
static bool IsSemiWeakKey(byte[] rgbKey)
static void Fill(Span< byte > data)
void GetBytes(byte[] data)
virtual KeySizes[] LegalKeySizes
virtual PaddingMode Padding