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

◆ ProcessPkcs8Response()

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

Definition at line 258 of file ECDsaImplementation.cs.

259 {
260 string algorithmGroup = response.GetAlgorithmGroup();
261 if (algorithmGroup == "ECDSA" || algorithmGroup == "ECDH")
262 {
263 AcceptImport(response);
264 return;
265 }
266 response.FreeKey();
267 throw new CryptographicException(System.SR.Cryptography_NotValidPublicOrPrivateKey);
268 }
static string Cryptography_NotValidPublicOrPrivateKey
Definition SR.cs:122
Definition SR.cs:7

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

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