System.Security.Cryptography.ECDsa.SignData C# (CSharp) Method

SignData() public method

public SignData ( System.Stream data, HashAlgorithmName hashAlgorithm ) : byte[]
data System.Stream
hashAlgorithm HashAlgorithmName
return byte[]
        public virtual byte[] SignData(Stream data, HashAlgorithmName hashAlgorithm)
        {
            if (data == null)
                throw new ArgumentNullException(nameof(data));
            if (string.IsNullOrEmpty(hashAlgorithm.Name))
                throw new ArgumentException(SR.Cryptography_HashAlgorithmNameNullOrEmpty, nameof(hashAlgorithm));

            byte[] hash = HashData(data, hashAlgorithm);
            return SignHash(hash);
        }

Same methods

ECDsa::SignData ( byte data, HashAlgorithmName hashAlgorithm ) : byte[]
ECDsa::SignData ( byte data, int offset, int count, HashAlgorithmName hashAlgorithm ) : byte[]