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

◆ ProcessPkcs8Response()

void System.Security.Cryptography.ECDsaCng.ProcessPkcs8Response ( System::Security::Cryptography::CngPkcs8::Pkcs8Response response)
inlineprivate

Definition at line 367 of file ECDsaCng.cs.

368 {
369 string algorithmGroup = response.GetAlgorithmGroup();
370 if (algorithmGroup == "ECDSA" || algorithmGroup == "ECDH")
371 {
372 AcceptImport(response);
373 return;
374 }
375 response.FreeKey();
376 throw new CryptographicException(System.SR.Cryptography_NotValidPublicOrPrivateKey);
377 }
static string Cryptography_NotValidPublicOrPrivateKey
Definition SR.cs:122
Definition SR.cs:7
void AcceptImport(System.Security.Cryptography.CngPkcs8.Pkcs8Response response)
Definition ECDsaCng.cs:130

References System.Security.Cryptography.ECDsaCng.AcceptImport(), and System.SR.Cryptography_NotValidPublicOrPrivateKey.

Referenced by System.Security.Cryptography.ECDsaCng.ImportEncryptedPkcs8PrivateKey(), System.Security.Cryptography.ECDsaCng.ImportEncryptedPkcs8PrivateKey(), and System.Security.Cryptography.ECDsaCng.ImportPkcs8PrivateKey().