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

◆ TryDecryptCfbCore()

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

Reimplemented from System.Security.Cryptography.SymmetricAlgorithm.

Definition at line 144 of file AesCng.cs.

145 {
146 Internal.Cryptography.UniversalCryptoTransform universalCryptoTransform = _core.CreateCryptoTransform(iv.ToArray(), encrypting: false, paddingMode, CipherMode.CFB, feedbackSizeInBits);
147 using (universalCryptoTransform)
148 {
149 return universalCryptoTransform.TransformOneShot(ciphertext, destination, out bytesWritten);
150 }
151 }
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().