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

◆ SignData() [3/3]

virtual byte[] System.Security.Cryptography.RSA.SignData ( Stream data,
HashAlgorithmName hashAlgorithm,
RSASignaturePadding padding )
inlinevirtualinherited

Definition at line 208 of file RSA.cs.

209 {
210 if (data == null)
211 {
212 throw new ArgumentNullException("data");
213 }
214 if (string.IsNullOrEmpty(hashAlgorithm.Name))
215 {
217 }
218 if (padding == null)
219 {
220 throw new ArgumentNullException("padding");
221 }
222 byte[] hash = HashData(data, hashAlgorithm);
223 return SignHash(hash, hashAlgorithm, padding);
224 }
static Exception HashAlgorithmNameNullOrEmpty()
Definition RSA.cs:672
virtual byte[] HashData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm)
Definition RSA.cs:80
virtual byte[] SignHash(byte[] hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
Definition RSA.cs:70

References System.Security.Cryptography.RSA.HashAlgorithmNameNullOrEmpty(), System.Security.Cryptography.RSA.HashData(), System.Security.Cryptography.HashAlgorithmName.Name, and System.Security.Cryptography.RSA.SignHash().