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

◆ CertificateRequest() [1/5]

System.Security.Cryptography.X509Certificates.CertificateRequest.CertificateRequest ( string subjectName,
ECDsa key,
HashAlgorithmName hashAlgorithm )
inline

Definition at line 27 of file CertificateRequest.cs.

28 {
29 if (subjectName == null)
30 {
31 throw new ArgumentNullException("subjectName");
32 }
33 if (key == null)
34 {
35 throw new ArgumentNullException("key");
36 }
37 if (string.IsNullOrEmpty(hashAlgorithm.Name))
38 {
40 }
41 SubjectName = new X500DistinguishedName(subjectName);
42 _key = key;
43 _generator = X509SignatureGenerator.CreateForECDsa(key);
45 HashAlgorithm = hashAlgorithm;
46 }
static string Cryptography_HashAlgorithmNameNullOrEmpty
Definition SR.cs:60
Definition SR.cs:7

References System.Security.Cryptography.X509Certificates.CertificateRequest._generator, System.Security.Cryptography.X509Certificates.CertificateRequest._key, System.Security.Cryptography.X509Certificates.X509SignatureGenerator.CreateForECDsa(), System.SR.Cryptography_HashAlgorithmNameNullOrEmpty, System.key, System.Security.Cryptography.HashAlgorithmName.Name, System.Security.Cryptography.X509Certificates.X509SignatureGenerator.PublicKey, and System.Security.Cryptography.X509Certificates.CertificateRequest.SubjectName.