コード例 #1
0
 public AuthenticodeTimestampSignature(AuthenticodeTimestampCmsSignature authenticodeCmsSignature) : base(authenticodeCmsSignature)
 {
     foreach (var attribute in authenticodeCmsSignature.SignedAttributes)
     {
         if (attribute.Oid.Value == KnownOids.SigningTime && attribute.Values.Count > 0)
         {
             TimestampDateTime = TimestampDecoding.DecodeAuthenticodeTimestamp(attribute.Values[0]);
         }
     }
 }
コード例 #2
0
            public AuthenticodeTimestampSignature(AuthenticodeTimestampCmsSignature authenticodeCmsSignature) : base(authenticodeCmsSignature)
            {
                foreach (var attribute in authenticodeCmsSignature.SignedAttributes)
                {
                    if (attribute.Oid.Value != KnownOids.SigningTime || attribute.Values.Count <= 0)
                    {
                        continue;
                    }

                    TimestampDateTime = TimestampDecoding.DecodeAuthenticodeTimestamp(attribute.Values[0]);
                    break;
                }
            }