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

◆ EcdhCurveNameToAlgorithm() [2/2]

static string System.Security.Cryptography.ECCng.EcdhCurveNameToAlgorithm ( string algorithm)
inlinestaticpackage

Definition at line 398 of file ECCng.cs.

399 {
400 switch (algorithm)
401 {
402 case "nistP256":
403 case "ECDH_P256":
404 case "ECDSA_P256":
405 return "ECDH_P256";
406 case "nistP384":
407 case "ECDH_P384":
408 case "ECDSA_P384":
409 return "ECDH_P384";
410 case "nistP521":
411 case "ECDH_P521":
412 case "ECDSA_P521":
413 return "ECDH_P521";
414 default:
415 return "ECDH";
416 }
417 }