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

◆ CertificateRequest() [2/5]

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

Definition at line 48 of file CertificateRequest.cs.

49 {
50 if (subjectName == null)
51 {
52 throw new ArgumentNullException("subjectName");
53 }
54 if (key == null)
55 {
56 throw new ArgumentNullException("key");
57 }
58 if (string.IsNullOrEmpty(hashAlgorithm.Name))
59 {
61 }
63 _key = key;
64 _generator = X509SignatureGenerator.CreateForECDsa(key);
66 HashAlgorithm = hashAlgorithm;
67 }
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.