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);
}