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

◆ SignData() [4/6]

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

Definition at line 80 of file ECDsa.cs.

81 {
82 if (data == null)
83 {
84 throw new ArgumentNullException("data");
85 }
86 if (offset < 0 || offset > data.Length)
87 {
88 throw new ArgumentOutOfRangeException("offset");
89 }
90 if (count < 0 || count > data.Length - offset)
91 {
92 throw new ArgumentOutOfRangeException("count");
93 }
94 if (string.IsNullOrEmpty(hashAlgorithm.Name))
95 {
97 }
98 if (!signatureFormat.IsKnownValue())
99 {
100 throw DSASignatureFormatHelpers.CreateUnknownValueException(signatureFormat);
101 }
102 return SignDataCore(new ReadOnlySpan<byte>(data, offset, count), hashAlgorithm, signatureFormat);
103 }
static string Cryptography_HashAlgorithmNameNullOrEmpty
Definition SR.cs:60
Definition SR.cs:7
virtual byte[] SignDataCore(ReadOnlySpan< byte > data, HashAlgorithmName hashAlgorithm, DSASignatureFormat signatureFormat)
Definition ECDsa.cs:105

References System.count, System.Security.Cryptography.DSASignatureFormatHelpers.CreateUnknownValueException(), System.SR.Cryptography_HashAlgorithmNameNullOrEmpty, System.Security.Cryptography.HashAlgorithmName.Name, System.offset, and System.Security.Cryptography.ECDsa.SignDataCore().