public override byte[] SignData(byte[] data, HashAlgorithmName hashAlgorithm) { byte[] ieeeFormat = _key.SignData(data, hashAlgorithm); return(AsymmetricAlgorithmHelpers.ConvertIeee1363ToDer(ieeeFormat)); }
} // End Function DerDecode // Abstract // throw new InvalidKeyException("EC private key required for signing"); public override byte[] SignHash(byte[] hash) { byte[] encoded = SignHashInternal(hash); return(AsymmetricAlgorithmHelpers.ConvertDerToIeee1363(encoded, 0, encoded.Length, this.KeySize)); } // End Function SignHash