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

◆ TryEncryptEcbCore()

override bool Internal.Cryptography.DesImplementation.TryEncryptEcbCore ( ReadOnlySpan< byte > plaintext,
Span< byte > destination,
PaddingMode paddingMode,
out int bytesWritten )
inlineprotectedvirtual

Reimplemented from System.Security.Cryptography.SymmetricAlgorithm.

Definition at line 88 of file DesImplementation.cs.

89 {
90 UniversalCryptoTransform universalCryptoTransform = CreateTransformCore(CipherMode.ECB, paddingMode, Key, null, BlockSize / 8, 0, BlockSize / 8, encrypting: true);
91 using (universalCryptoTransform)
92 {
93 return universalCryptoTransform.TransformOneShot(plaintext, destination, out bytesWritten);
94 }
95 }
static UniversalCryptoTransform CreateTransformCore(CipherMode cipherMode, PaddingMode paddingMode, byte[] key, byte[] iv, int blockSize, int feedbackSize, int paddingSize, bool encrypting)
override byte[] Key
Definition DES.cs:24

References System.Security.Cryptography.SymmetricAlgorithm.BlockSize, Internal.Cryptography.DesImplementation.CreateTransformCore(), System.destination, System.Security.Cryptography.DES.Key, and Internal.Cryptography.UniversalCryptoTransform.TransformOneShot().