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

◆ CertificateRequest() [4/5]

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

Definition at line 95 of file CertificateRequest.cs.

96 {
97 if (subjectName == null)
98 {
99 throw new ArgumentNullException("subjectName");
100 }
101 if (key == null)
102 {
103 throw new ArgumentNullException("key");
104 }
105 if (string.IsNullOrEmpty(hashAlgorithm.Name))
106 {
108 }
109 if (padding == null)
110 {
111 throw new ArgumentNullException("padding");
112 }
114 _key = key;
115 _generator = X509SignatureGenerator.CreateForRSA(key, padding);
116 _rsaPadding = padding;
118 HashAlgorithm = hashAlgorithm;
119 }
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.