16 return CreateTransform(rgbKey, rgbIV.CloneByteArray(), encrypting:
false);
26 return CreateTransform(rgbKey, rgbIV.CloneByteArray(), encrypting:
true);
51 long num = (long)rgbKey.Length * 8
L;
52 if (num >
int.MaxValue || !((
int)num).IsLegalSize(
LegalKeySizes))
66 long num2 = (long)rgbIV.Length * 8
L;
82 using (universalCryptoTransform)
91 using (universalCryptoTransform)
100 using (universalCryptoTransform)
109 using (universalCryptoTransform)
119 using (universalCryptoTransform)
129 using (universalCryptoTransform)
static SafeAlgorithmHandle GetSharedHandle(CipherMode cipherMode, int feedback)
override bool TryEncryptCfbCore(ReadOnlySpan< byte > plaintext, ReadOnlySpan< byte > iv, Span< byte > destination, PaddingMode paddingMode, int feedbackSizeInBits, out int bytesWritten)
override bool TryEncryptCbcCore(ReadOnlySpan< byte > plaintext, ReadOnlySpan< byte > iv, Span< byte > destination, PaddingMode paddingMode, out int bytesWritten)
override ICryptoTransform CreateDecryptor()
override bool TryDecryptCbcCore(ReadOnlySpan< byte > ciphertext, ReadOnlySpan< byte > iv, Span< byte > destination, PaddingMode paddingMode, out int bytesWritten)
override ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[] rgbIV)
static void ValidateCFBFeedbackSize(int feedback)
override bool TryDecryptCfbCore(ReadOnlySpan< byte > ciphertext, ReadOnlySpan< byte > iv, Span< byte > destination, PaddingMode paddingMode, int feedbackSizeInBits, out int bytesWritten)
override ICryptoTransform CreateEncryptor()
override void GenerateKey()
static UniversalCryptoTransform CreateTransformCore(CipherMode cipherMode, PaddingMode paddingMode, byte[] key, byte[] iv, int blockSize, int feedbackSize, int paddingSize, bool encrypting)
override bool TryDecryptEcbCore(ReadOnlySpan< byte > ciphertext, Span< byte > destination, PaddingMode paddingMode, out int bytesWritten)
override bool TryEncryptEcbCore(ReadOnlySpan< byte > plaintext, Span< byte > destination, PaddingMode paddingMode, out int bytesWritten)
ICryptoTransform CreateTransform(byte[] rgbKey, byte[] rgbIV, bool encrypting)
override void GenerateIV()
override ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[] rgbIV)
static string Cryptography_InvalidKey_SemiWeak
static string Cryptography_CipherModeFeedbackNotSupported
static string Cryptography_InvalidKey_Weak
static string Cryptography_InvalidKeySize
static string Cryptography_InvalidIVSize
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