31 return CreateTransform(rgbKey, rgbIV.CloneByteArray(), encrypting:
false);
41 return CreateTransform(rgbKey, rgbIV.CloneByteArray(), encrypting:
true);
66 long num = (long)rgbIV.Length * 8
L;
88 using (universalCryptoTransform)
102 using (universalCryptoTransform)
116 using (universalCryptoTransform)
130 using (universalCryptoTransform)
158 if (keySizeBytes > 268435455)
163 keySizeBits = keySizeBytes << 3;
static SafeAlgorithmHandle GetHandle(CipherMode cipherMode, int effectiveKeyLength)
static void ValidateCFBFeedbackSize(int feedback)
ICryptoTransform CreateTransform(byte[] rgbKey, byte[] rgbIV, bool encrypting)
override bool TryDecryptCfbCore(ReadOnlySpan< byte > ciphertext, ReadOnlySpan< byte > iv, Span< byte > destination, PaddingMode paddingMode, int feedbackSizeInBits, out int bytesWritten)
override bool TryEncryptCfbCore(ReadOnlySpan< byte > plaintext, ReadOnlySpan< byte > iv, Span< byte > destination, PaddingMode paddingMode, int feedbackSizeInBits, out int bytesWritten)
override void GenerateKey()
override void GenerateIV()
override bool TryEncryptEcbCore(ReadOnlySpan< byte > plaintext, Span< byte > destination, PaddingMode paddingMode, out int bytesWritten)
override bool TryDecryptEcbCore(ReadOnlySpan< byte > ciphertext, Span< byte > destination, PaddingMode paddingMode, out int bytesWritten)
override ICryptoTransform CreateEncryptor()
static UniversalCryptoTransform CreateTransformCore(CipherMode cipherMode, PaddingMode paddingMode, byte[] key, int effectiveKeyLength, byte[] iv, int blockSize, int feedbackSize, int paddingSize, bool encrypting)
override ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[] rgbIV)
override bool TryDecryptCbcCore(ReadOnlySpan< byte > ciphertext, ReadOnlySpan< byte > iv, Span< byte > destination, PaddingMode paddingMode, out int bytesWritten)
override int EffectiveKeySize
bool ValidKeySize(int keySizeBytes, out int keySizeBits)
override ICryptoTransform CreateDecryptor()
override ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[] rgbIV)
override bool TryEncryptCbcCore(ReadOnlySpan< byte > plaintext, ReadOnlySpan< byte > iv, Span< byte > destination, PaddingMode paddingMode, out int bytesWritten)
static string Cryptography_RC2_EKSKS2
static string Format(string resourceFormat, object p1)
static string Cryptography_CipherModeFeedbackNotSupported
static string Cryptography_CipherModeNotSupported
static string Cryptography_InvalidKeySize
static string Cryptography_InvalidIVSize
int EffectiveKeySizeValue
void GetBytes(byte[] data)
virtual KeySizes[] LegalKeySizes
virtual PaddingMode Padding