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

◆ TryDecryptEcbCore()

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

Reimplemented from System.Security.Cryptography.SymmetricAlgorithm.

Definition at line 44 of file AesImplementation.cs.

45 {
46 UniversalCryptoTransform universalCryptoTransform = CreateTransformCore(CipherMode.ECB, paddingMode, Key, null, BlockSize / 8, BlockSize / 8, 0, encrypting: false);
47 using (universalCryptoTransform)
48 {
49 return universalCryptoTransform.TransformOneShot(ciphertext, destination, out bytesWritten);
50 }
51 }
static UniversalCryptoTransform CreateTransformCore(CipherMode cipherMode, PaddingMode paddingMode, byte[] key, byte[] iv, int blockSize, int paddingSize, int feedbackSize, bool encrypting)

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