System.Security.Cryptography.DSACryptoServiceProvider.DSACryptoServiceProvider.DSACryptoServiceProvider.SignHash C# (CSharp) Method

SignHash() public method

public SignHash ( byte rgbHash, string str ) : byte[]
rgbHash byte
str string
return byte[]
		public byte[] SignHash (byte[] rgbHash, string str)
		{
			// right now only SHA1 is supported by FIPS186-2
			if (String.Compare (str, "SHA1", true, CultureInfo.InvariantCulture) != 0) {
				// not documented
				throw new CryptographicException (Locale.GetText ("Only SHA1 is supported."));
			}

			return dsa.CreateSignature (rgbHash);
		}