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

◆ ImportKeyBlob()

void System.Security.Cryptography.ECDiffieHellmanImplementation.ECDiffieHellmanCng.ImportKeyBlob ( byte[] ecKeyBlob,
string curveName,
bool includePrivateParameters )
inlineprivate

Definition at line 65 of file ECDiffieHellmanImplementation.cs.

66 {
67 string blobType = (includePrivateParameters ? "ECCPRIVATEBLOB" : "ECCPUBLICBLOB");
68 SafeNCryptKeyHandle keyHandle = CngKeyLite.ImportKeyBlob(blobType, ecKeyBlob, curveName);
69 _key.SetHandle(keyHandle, ECCng.EcdhCurveNameToAlgorithm(curveName));
71 }
void SetHandle(SafeNCryptKeyHandle keyHandle, string algorithmName)
Definition ECCngKey.cs:156

References System.Security.Cryptography.ECDiffieHellmanImplementation.ECDiffieHellmanCng._key, System.Security.Cryptography.ECCng.EcdhCurveNameToAlgorithm(), System.Security.Cryptography.ECDiffieHellmanImplementation.ECDiffieHellmanCng.ForceSetKeySize(), System.Security.Cryptography.CngKeyLite.ImportKeyBlob(), System.Security.Cryptography.ECCngKey.KeySize, and System.Security.Cryptography.ECCngKey.SetHandle().

Referenced by System.Security.Cryptography.ECDiffieHellmanImplementation.ECDiffieHellmanCng.ImportParameters().