internal PKCS7Parser Constructor(WIN_CERTIFICATE winCertificate)
        {
            var target = new PKCS7Parser(winCertificate);

            return(target);
            // TODO: add assertions to method PKCS7ParserTest.Constructor(WIN_CERTIFICATE)
        }
示例#2
0
        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]);
        }
示例#3
0
 internal PKCS7Parser(WIN_CERTIFICATE winCertificate)
     : base(null, 0)
 {
     _winCertificate = winCertificate;
 }
示例#4
0
文件: Certificate.cs 项目: zzfeed/pe
 private Certificate(PortableExecutableImage image, DataDirectory dataDirectory, Location location, WIN_CERTIFICATE cert) : base(image, dataDirectory, location)
 {
     Length          = cert.dwLength;
     Revision        = cert.wRevision;
     CertificateType = cert.wCertificateType;
 }