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

◆ SignData() [4/6]

byte[] System.Security.Cryptography.DSA.SignData ( byte[] data,
int offset,
int count,
HashAlgorithmName hashAlgorithm,
DSASignatureFormat signatureFormat )
inlineinherited

Definition at line 127 of file DSA.cs.

128 {
129 if (data == null)
130 {
131 throw new ArgumentNullException("data");
132 }
133 if (offset < 0 || offset > data.Length)
134 {
135 throw new ArgumentOutOfRangeException("offset");
136 }
137 if (count < 0 || count > data.Length - offset)
138 {
139 throw new ArgumentOutOfRangeException("count");
140 }
141 if (string.IsNullOrEmpty(hashAlgorithm.Name))
142 {
144 }
145 if (!signatureFormat.IsKnownValue())
146 {
147 throw DSASignatureFormatHelpers.CreateUnknownValueException(signatureFormat);
148 }
149 return SignDataCore(new ReadOnlySpan<byte>(data, offset, count), hashAlgorithm, signatureFormat);
150 }
virtual byte[] SignDataCore(ReadOnlySpan< byte > data, HashAlgorithmName hashAlgorithm, DSASignatureFormat signatureFormat)
Definition DSA.cs:152
static Exception HashAlgorithmNameNullOrEmpty()
Definition DSA.cs:524

References System.count, System.Security.Cryptography.DSASignatureFormatHelpers.CreateUnknownValueException(), System.Security.Cryptography.DSA.HashAlgorithmNameNullOrEmpty(), System.Security.Cryptography.HashAlgorithmName.Name, System.offset, and System.Security.Cryptography.DSA.SignDataCore().