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

◆ TryDecryptEcbCore()

override bool System.Security.Cryptography.TripleDESCng.TryDecryptEcbCore ( ReadOnlySpan< byte > ciphertext,
Span< byte > destination,
PaddingMode paddingMode,
out int bytesWritten )
inlineprotectedvirtual

Reimplemented from System.Security.Cryptography.SymmetricAlgorithm.

Definition at line 108 of file TripleDESCng.cs.

109 {
110 Internal.Cryptography.UniversalCryptoTransform universalCryptoTransform = _core.CreateCryptoTransform(null, encrypting: false, paddingMode, CipherMode.ECB, 0);
111 using (universalCryptoTransform)
112 {
113 return universalCryptoTransform.TransformOneShot(ciphertext, destination, out bytesWritten);
114 }
115 }
bool TransformOneShot(ReadOnlySpan< byte > input, Span< byte > output, out int bytesWritten)

References System.Security.Cryptography.TripleDESCng._core, Internal.Cryptography.CngSymmetricAlgorithmCore.CreateCryptoTransform(), System.destination, and Internal.Cryptography.UniversalCryptoTransform.TransformOneShot().