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

◆ TryEncryptCfbCore()

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

Reimplemented from System.Security.Cryptography.SymmetricAlgorithm.

Definition at line 153 of file TripleDESCng.cs.

154 {
155 Internal.Cryptography.UniversalCryptoTransform universalCryptoTransform = _core.CreateCryptoTransform(iv.ToArray(), encrypting: true, paddingMode, CipherMode.CFB, feedbackSizeInBits);
156 using (universalCryptoTransform)
157 {
158 return universalCryptoTransform.TransformOneShot(plaintext, destination, out bytesWritten);
159 }
160 }
bool TransformOneShot(ReadOnlySpan< byte > input, Span< byte > output, out int bytesWritten)

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