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

◆ SignData() [3/6]

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

Definition at line 58 of file ECDsa.cs.

59 {
60 if (data == null)
61 {
62 throw new ArgumentNullException("data");
63 }
64 if (offset < 0 || offset > data.Length)
65 {
66 throw new ArgumentOutOfRangeException("offset");
67 }
68 if (count < 0 || count > data.Length - offset)
69 {
70 throw new ArgumentOutOfRangeException("count");
71 }
72 if (string.IsNullOrEmpty(hashAlgorithm.Name))
73 {
75 }
76 byte[] hash = HashData(data, offset, count, hashAlgorithm);
77 return SignHash(hash);
78 }
static string Cryptography_HashAlgorithmNameNullOrEmpty
Definition SR.cs:60
Definition SR.cs:7
byte[] SignHash(byte[] hash, DSASignatureFormat signatureFormat)
Definition ECDsa.cs:180
virtual byte[] HashData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm)
Definition ECDsa.cs:438

References System.count, System.SR.Cryptography_HashAlgorithmNameNullOrEmpty, System.Security.Cryptography.ECDsa.HashData(), System.Security.Cryptography.HashAlgorithmName.Name, System.offset, and System.Security.Cryptography.ECDsa.SignHash().