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

◆ ValidateFeedbackSize()

void Internal.Cryptography.CngSymmetricAlgorithmCore.ValidateFeedbackSize ( CipherMode mode,
int feedbackSizeInBits )
inlineprivate

Definition at line 170 of file CngSymmetricAlgorithmCore.cs.

171 {
172 if (mode != CipherMode.CFB)
173 {
174 return;
175 }
176 if (KeyInPlainText)
177 {
178 if (!_outer.IsValidEphemeralFeedbackSize(feedbackSizeInBits))
179 {
181 }
182 }
183 else if (feedbackSizeInBits != 8)
184 {
186 }
187 }
static string Cryptography_CipherModeFeedbackNotSupported
Definition SR.cs:146
Definition SR.cs:7
bool IsValidEphemeralFeedbackSize(int feedbackSizeInBits)

References Internal.Cryptography.CngSymmetricAlgorithmCore._outer, System.SR.Cryptography_CipherModeFeedbackNotSupported, System.Format, Internal.Cryptography.ICngSymmetricAlgorithm.IsValidEphemeralFeedbackSize(), and Internal.Cryptography.CngSymmetricAlgorithmCore.KeyInPlainText.

Referenced by Internal.Cryptography.CngSymmetricAlgorithmCore.CreateCryptoTransform(), and Internal.Cryptography.CngSymmetricAlgorithmCore.CreatePersistedCryptoTransformCore().