The WIN_CERTIFICATE the information in the security directory of the PE file. It contains information about any certificates used to sign the binary.
상속: AbstractStructure
예제 #1
0
 public void WinCertificateConstructorWorks_Test()
 {
     var winCertifiacte = new WIN_CERTIFICATE(RawStructures.RawWinCertificate, 2);
     Assert.AreEqual((uint) 0x0000000b, winCertifiacte.dwLength);
     Assert.AreEqual((ushort) 0x5544, winCertifiacte.wRevision);
     Assert.AreEqual((ushort) 0x7766, winCertifiacte.wCertificateType);
     Assert.AreEqual((byte) 0x11, winCertifiacte.bCertificate[0]);
     Assert.AreEqual((byte) 0x22, winCertifiacte.bCertificate[1]);
     Assert.AreEqual((byte) 0x33, winCertifiacte.bCertificate[2]);
 }
예제 #2
0
 internal PKCS7Parser Constructor(WIN_CERTIFICATE winCertificate)
 {
     var target = new PKCS7Parser(winCertificate);
     return target;
     // TODO: add assertions to method PKCS7ParserTest.Constructor(WIN_CERTIFICATE)
 }