16 return CreateTransform(rgbKey, rgbIV.CloneByteArray(), encrypting:
false);
26 return CreateTransform(rgbKey, rgbIV.CloneByteArray(), encrypting:
true);
39 protected sealed override void Dispose(
bool disposing)
41 base.Dispose(disposing);
47 using (universalCryptoTransform)
56 using (universalCryptoTransform)
65 using (universalCryptoTransform)
74 using (universalCryptoTransform)
84 using (universalCryptoTransform)
94 using (universalCryptoTransform)
106 long num = (long)rgbKey.Length * 8
L;
107 if (num >
int.MaxValue || !((
int)num).IsLegalSize(
LegalKeySizes))
113 long num2 = (long)rgbIV.Length * 8
L;
128 if (feedback != 8 && feedback != 128)
static SafeAlgorithmHandle GetSharedHandle(CipherMode cipherMode, int feedback)
override ICryptoTransform CreateEncryptor()
override void GenerateIV()
ICryptoTransform CreateTransform(byte[] rgbKey, byte[] rgbIV, bool encrypting)
override bool TryEncryptEcbCore(ReadOnlySpan< byte > plaintext, Span< byte > destination, PaddingMode paddingMode, out int bytesWritten)
override ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[] rgbIV)
static void ValidateCFBFeedbackSize(int feedback)
override ICryptoTransform CreateDecryptor()
override bool TryDecryptCfbCore(ReadOnlySpan< byte > ciphertext, ReadOnlySpan< byte > iv, Span< byte > destination, PaddingMode paddingMode, int feedbackSizeInBits, out int bytesWritten)
static UniversalCryptoTransform CreateTransformCore(CipherMode cipherMode, PaddingMode paddingMode, byte[] key, byte[] iv, int blockSize, int paddingSize, int feedbackSize, bool encrypting)
override void Dispose(bool disposing)
override ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[] rgbIV)
override void GenerateKey()
override bool TryDecryptCbcCore(ReadOnlySpan< byte > ciphertext, ReadOnlySpan< byte > iv, Span< byte > destination, PaddingMode paddingMode, out int bytesWritten)
override bool TryEncryptCfbCore(ReadOnlySpan< byte > plaintext, ReadOnlySpan< byte > iv, Span< byte > destination, PaddingMode paddingMode, int feedbackSizeInBits, out int bytesWritten)
override bool TryDecryptEcbCore(ReadOnlySpan< byte > ciphertext, Span< byte > destination, PaddingMode paddingMode, out int bytesWritten)
override bool TryEncryptCbcCore(ReadOnlySpan< byte > plaintext, ReadOnlySpan< byte > iv, Span< byte > destination, PaddingMode paddingMode, out int bytesWritten)
static string Cryptography_CipherModeFeedbackNotSupported
static string Cryptography_InvalidKeySize
static string Cryptography_InvalidIVSize
void GetBytes(byte[] data)
virtual KeySizes[] LegalKeySizes
virtual PaddingMode Padding