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

◆ SignData() [5/6]

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

Definition at line 259 of file ECDsa.cs.

260 {
261 if (data == null)
262 {
263 throw new ArgumentNullException("data");
264 }
265 if (string.IsNullOrEmpty(hashAlgorithm.Name))
266 {
268 }
269 byte[] hash = HashData(data, hashAlgorithm);
270 return SignHash(hash);
271 }
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.SR.Cryptography_HashAlgorithmNameNullOrEmpty, System.Security.Cryptography.ECDsa.HashData(), System.Security.Cryptography.HashAlgorithmName.Name, and System.Security.Cryptography.ECDsa.SignHash().