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

◆ GetCurveName()

string System.Security.Cryptography.ECCngKey.GetCurveName ( int callerKeySizeProperty,
out string oidValue )
inlinepackage

Definition at line 27 of file ECCngKey.cs.

28 {
29 using SafeNCryptKeyHandle ncryptHandle = GetDuplicatedKeyHandle(callerKeySizeProperty);
30 string lastAlgorithm = _lastAlgorithm;
31 if (ECCng.IsECNamedCurve(lastAlgorithm))
32 {
33 oidValue = null;
34 return CngKeyLite.GetCurveName(ncryptHandle);
35 }
36 return ECCng.SpecialNistAlgorithmToCurveName(lastAlgorithm, out oidValue);
37 }
SafeNCryptKeyHandle GetDuplicatedKeyHandle(int callerKeySizeProperty)
Definition ECCngKey.cs:39

References System.Security.Cryptography.ECCngKey._lastAlgorithm, System.Security.Cryptography.CngKeyLite.GetCurveName(), System.Security.Cryptography.ECCngKey.GetDuplicatedKeyHandle(), System.Security.Cryptography.ECCng.IsECNamedCurve(), and System.Security.Cryptography.ECCng.SpecialNistAlgorithmToCurveName().

Referenced by System.Security.Cryptography.ECDiffieHellmanImplementation.ECDiffieHellmanCng.GetCurveName(), and System.Security.Cryptography.ECDsaImplementation.ECDsaCng.GetCurveName().