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

◆ SignData() [3/6]

virtual byte[] System.Security.Cryptography.DSA.SignData ( byte[] data,
int offset,
int count,
HashAlgorithmName hashAlgorithm )
inlinevirtualinherited

Definition at line 105 of file DSA.cs.

106 {
107 if (data == null)
108 {
109 throw new ArgumentNullException("data");
110 }
111 if (offset < 0 || offset > data.Length)
112 {
113 throw new ArgumentOutOfRangeException("offset");
114 }
115 if (count < 0 || count > data.Length - offset)
116 {
117 throw new ArgumentOutOfRangeException("count");
118 }
119 if (string.IsNullOrEmpty(hashAlgorithm.Name))
120 {
122 }
123 byte[] rgbHash = HashData(data, offset, count, hashAlgorithm);
124 return CreateSignature(rgbHash);
125 }
byte[] CreateSignature(byte[] rgbHash)
virtual byte[] HashData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm)
Definition DSA.cs:69
static Exception HashAlgorithmNameNullOrEmpty()
Definition DSA.cs:524

References System.count, System.Security.Cryptography.DSA.CreateSignature(), System.Security.Cryptography.DSA.HashAlgorithmNameNullOrEmpty(), System.Security.Cryptography.DSA.HashData(), System.Security.Cryptography.HashAlgorithmName.Name, and System.offset.