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

◆ EcdhCurveNameToAlgorithm()

static CngAlgorithm System.Security.Cryptography.CngKey.EcdhCurveNameToAlgorithm ( string name)
inlinestaticpackage

Definition at line 507 of file CngKey.cs.

508 {
509 switch (name)
510 {
511 case "nistP256":
512 case "ECDH_P256":
513 return CngAlgorithm.ECDiffieHellmanP256;
514 case "nistP384":
515 case "ECDH_P384":
516 return CngAlgorithm.ECDiffieHellmanP384;
517 case "nistP521":
518 case "ECDH_P521":
519 return CngAlgorithm.ECDiffieHellmanP521;
520 default:
521 return CngAlgorithm.ECDiffieHellman;
522 }
523 }

References System.Security.Cryptography.CngAlgorithm.ECDiffieHellman, System.Security.Cryptography.CngAlgorithm.ECDiffieHellmanP256, System.Security.Cryptography.CngAlgorithm.ECDiffieHellmanP384, and System.Security.Cryptography.CngAlgorithm.ECDiffieHellmanP521.

Referenced by System.Security.Cryptography.ECDiffieHellmanCng.GenerateKey().