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

◆ TryEncryptCbcCore()

override bool System.Security.Cryptography.AesCng.TryEncryptCbcCore ( ReadOnlySpan< byte > plaintext,
ReadOnlySpan< byte > iv,
Span< byte > destination,
PaddingMode paddingMode,
out int bytesWritten )
inlineprotectedvirtual

Reimplemented from System.Security.Cryptography.SymmetricAlgorithm.

Definition at line 126 of file AesCng.cs.

127 {
128 Internal.Cryptography.UniversalCryptoTransform universalCryptoTransform = _core.CreateCryptoTransform(iv.ToArray(), encrypting: true, paddingMode, CipherMode.CBC, 0);
129 using (universalCryptoTransform)
130 {
131 return universalCryptoTransform.TransformOneShot(plaintext, destination, out bytesWritten);
132 }
133 }
bool TransformOneShot(ReadOnlySpan< byte > input, Span< byte > output, out int bytesWritten)
CngSymmetricAlgorithmCore _core
Definition AesCng.cs:8

References System.Security.Cryptography.AesCng._core, Internal.Cryptography.CngSymmetricAlgorithmCore.CreateCryptoTransform(), System.destination, System.ReadOnlySpan< T >.ToArray(), and Internal.Cryptography.UniversalCryptoTransform.TransformOneShot().