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

◆ GetEphemeralModeHandle()

Internal.NativeCrypto.SafeAlgorithmHandle ICngSymmetricAlgorithm. System.Security.Cryptography.AesCng.GetEphemeralModeHandle ( CipherMode mode,
int feedbackSizeInBits )
inlineprivate

Implements Internal.Cryptography.ICngSymmetricAlgorithm.

Definition at line 177 of file AesCng.cs.

178 {
179 try
180 {
181 return Internal.Cryptography.AesBCryptModes.GetSharedHandle(mode, feedbackSizeInBits / 8);
182 }
183 catch (NotSupportedException)
184 {
185 throw new CryptographicException(System.SR.Cryptography_InvalidCipherMode);
186 }
187 }
static SafeAlgorithmHandle GetSharedHandle(CipherMode cipherMode, int feedback)
static string Cryptography_InvalidCipherMode
Definition SR.cs:54
Definition SR.cs:7

References System.SR.Cryptography_InvalidCipherMode, and Internal.Cryptography.AesBCryptModes.GetSharedHandle().