public void EncodeTest() { DerData target = new DerData(); // TODO: Initialize to an appropriate value byte[] expected = null; // TODO: Initialize to an appropriate value byte[] actual; actual = target.Encode(); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
/// <summary> /// Encodes hash using DER. /// </summary> /// <param name="hashData">The hash data.</param> /// <returns>DER Encoded byte array</returns> protected byte[] DerEncode(byte[] hashData) { var alg = new DerData(); alg.Write(_oid); alg.WriteNull(); var data = new DerData(); data.Write(alg); data.Write(hashData); return(data.Encode()); }