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

◆ CertificateRequest() [3/5]

System.Security.Cryptography.X509Certificates.CertificateRequest.CertificateRequest ( string subjectName,
RSA key,
HashAlgorithmName hashAlgorithm,
RSASignaturePadding padding )
inline

Definition at line 69 of file CertificateRequest.cs.

70 {
71 if (subjectName == null)
72 {
73 throw new ArgumentNullException("subjectName");
74 }
75 if (key == null)
76 {
77 throw new ArgumentNullException("key");
78 }
79 if (string.IsNullOrEmpty(hashAlgorithm.Name))
80 {
82 }
83 if (padding == null)
84 {
85 throw new ArgumentNullException("padding");
86 }
87 SubjectName = new X500DistinguishedName(subjectName);
88 _key = key;
89 _generator = X509SignatureGenerator.CreateForRSA(key, padding);
90 _rsaPadding = padding;
92 HashAlgorithm = hashAlgorithm;
93 }
static string Cryptography_HashAlgorithmNameNullOrEmpty
Definition SR.cs:60
Definition SR.cs:7
static X509SignatureGenerator CreateForRSA(RSA key, RSASignaturePadding signaturePadding)

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