21 return CreateTransform(rgbKey, rgbIV.CloneByteArray(), encrypting:
false);
31 return CreateTransform(rgbKey, rgbIV.CloneByteArray(), encrypting:
true);
50 long num = (long)rgbKey.Length * 8
L;
51 if (num >
int.MaxValue || !((
int)num).IsLegalSize(
LegalKeySizes))
57 long num2 = (long)rgbIV.Length * 8
L;
63 if (rgbKey.Length == 16)
65 byte[]
array =
new byte[24];
80 using (universalCryptoTransform)
89 using (universalCryptoTransform)
98 using (universalCryptoTransform)
107 using (universalCryptoTransform)
117 using (universalCryptoTransform)
127 using (universalCryptoTransform)
135 if (feedback != 8 && feedback != 64)
static SafeAlgorithmHandle GetSharedHandle(CipherMode cipherMode, int feedback)
override ICryptoTransform CreateEncryptor()
override bool TryDecryptEcbCore(ReadOnlySpan< byte > ciphertext, Span< byte > destination, PaddingMode paddingMode, out int bytesWritten)
override ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[] rgbIV)
override void GenerateKey()
static UniversalCryptoTransform CreateTransformCore(CipherMode cipherMode, PaddingMode paddingMode, byte[] key, byte[] iv, int blockSize, int paddingSize, int feedbackSize, bool encrypting)
override bool TryEncryptCbcCore(ReadOnlySpan< byte > plaintext, ReadOnlySpan< byte > iv, Span< byte > destination, PaddingMode paddingMode, out int bytesWritten)
override bool TryDecryptCbcCore(ReadOnlySpan< byte > ciphertext, ReadOnlySpan< byte > iv, Span< byte > destination, PaddingMode paddingMode, out int bytesWritten)
override ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[] rgbIV)
override bool TryEncryptCfbCore(ReadOnlySpan< byte > plaintext, ReadOnlySpan< byte > iv, Span< byte > destination, PaddingMode paddingMode, int feedbackSizeInBits, out int bytesWritten)
ICryptoTransform CreateTransform(byte[] rgbKey, byte[] rgbIV, bool encrypting)
override void GenerateIV()
static void ValidateCFBFeedbackSize(int feedback)
override bool TryDecryptCfbCore(ReadOnlySpan< byte > ciphertext, ReadOnlySpan< byte > iv, Span< byte > destination, PaddingMode paddingMode, int feedbackSizeInBits, out int bytesWritten)
TripleDesImplementation()
override ICryptoTransform CreateDecryptor()
override bool TryEncryptEcbCore(ReadOnlySpan< byte > plaintext, Span< byte > destination, PaddingMode paddingMode, out int bytesWritten)
static unsafe void Copy(Array sourceArray, Array destinationArray, int length)
static string Cryptography_CipherModeFeedbackNotSupported
static string Cryptography_InvalidKeySize
static string Cryptography_InvalidIVSize
void GetBytes(byte[] data)
virtual KeySizes[] LegalKeySizes
virtual PaddingMode Padding