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

◆ GetKey()

CngKey System.Security.Cryptography.ECDsaCng.GetKey ( )
inlineprivate

Definition at line 238 of file ECDsaCng.cs.

239 {
240 CngKey cngKey = null;
242 {
243 return _core.GetOrGenerateKey(null);
244 }
245 CngAlgorithm cngAlgorithm = null;
246 int num = 0;
247 num = KeySize;
248 cngAlgorithm = num switch
249 {
250 256 => CngAlgorithm.ECDsaP256,
251 384 => CngAlgorithm.ECDsaP384,
252 521 => CngAlgorithm.ECDsaP521,
254 };
255 return _core.GetOrGenerateKey(num, cngAlgorithm);
256 }
static string Cryptography_InvalidKeySize
Definition SR.cs:92
Definition SR.cs:7
CngKey GetOrGenerateKey(int keySize, CngAlgorithm algorithm)

References System.Security.Cryptography.ECDsaCng._core, System.SR.Cryptography_InvalidKeySize, System.Security.Cryptography.CngAlgorithm.ECDsaP256, System.Security.Cryptography.CngAlgorithm.ECDsaP384, System.Security.Cryptography.CngAlgorithm.ECDsaP521, Internal.Cryptography.CngAlgorithmCore.GetOrGenerateKey(), Internal.Cryptography.CngAlgorithmCore.IsKeyGeneratedNamedCurve(), and System.Security.Cryptography.ECDsaCng.KeySize.