internal PKCS7Parser Constructor(WIN_CERTIFICATE winCertificate) { var target = new PKCS7Parser(winCertificate); return(target); // TODO: add assertions to method PKCS7ParserTest.Constructor(WIN_CERTIFICATE) }
public void WinCertificateConstructorWorks_Test() { var winCertifiacte = new WIN_CERTIFICATE(RawStructures.RawWinCertificate, 2); Assert.Equal((uint)0x0000000b, winCertifiacte.dwLength); Assert.Equal((ushort)0x5544, winCertifiacte.wRevision); Assert.Equal((ushort)0x7766, winCertifiacte.wCertificateType); Assert.Equal((byte)0x11, winCertifiacte.bCertificate[0]); Assert.Equal((byte)0x22, winCertifiacte.bCertificate[1]); Assert.Equal((byte)0x33, winCertifiacte.bCertificate[2]); }
internal PKCS7Parser(WIN_CERTIFICATE winCertificate) : base(null, 0) { _winCertificate = winCertificate; }
private Certificate(PortableExecutableImage image, DataDirectory dataDirectory, Location location, WIN_CERTIFICATE cert) : base(image, dataDirectory, location) { Length = cert.dwLength; Revision = cert.wRevision; CertificateType = cert.wCertificateType; }