34 for (
int i = 0; i <
key.Length; i++)
38 byte b2 = (byte)((
b & 3
u) ^ (uint)(
b >> 2));
39 if ((
byte)((
b2 & 1) ^ (
b2 >> 1)) == 0)
47 [
return: NotNullIfNotNull(
"src")]
54 return (
byte[])
src.Clone();
static byte[] GetCipherIv(this CipherMode cipherMode, byte[] iv)
static bool IsRC2Supported
static bool TryCopyToDestination(this ReadOnlySpan< byte > source, Span< byte > destination, out int bytesWritten)
static int GetPaddingSize(this SymmetricAlgorithm algorithm, CipherMode mode, int feedbackSizeInBits)
static byte[] CloneByteArray(this byte[] src)
static bool UsesIv(this CipherMode cipherMode)
static byte[] FixupKeyParity(this byte[] key)
static string Cryptography_MissingIV