Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ PreprocessKey()

byte[] ICngSymmetricAlgorithm. System.Security.Cryptography.TripleDESCng.PreprocessKey ( byte[] key)
inlineprivate

Implements Internal.Cryptography.ICngSymmetricAlgorithm.

Definition at line 187 of file TripleDESCng.cs.

188 {
189 if (key.Length == 16)
190 {
191 byte[] array = new byte[24];
192 Array.Copy(key, array, 16);
193 Array.Copy(key, 0, array, 16, 8);
194 return array;
195 }
196 return key;
197 }

References System.array, System.Array.Copy(), and System.key.