public TbsSign(DerInteger version, SesSealInfo eSeal, DerBitString timeInfo, DerBitString dataHash, DerIA5String propertyInfo, DerObjectIdentifier signatureAlgorithm) { Version = version; EsSeal = eSeal; TimeInfo = timeInfo; DataHash = dataHash; PropertyInfo = propertyInfo; SignatureAlgorithm = signatureAlgorithm; }
public TbsSign(Asn1Sequence seq) { IEnumerator e = seq.GetEnumerator(); Version = DerInteger.GetInstance(e.Next()); EsSeal = SesSealInfo.GetInstance(e.Next()); TimeInfo = DerBitString.GetInstance(e.Next()); DataHash = DerBitString.GetInstance(e.Next()); PropertyInfo = DerIA5String.GetInstance(e.Next()); Cert = Asn1OctetString.GetInstance(e.Next()); SignatureAlgorithm = DerObjectIdentifier.GetInstance(e.Next()); }
public TbsSign(Asn1Sequence seq) { var e = seq.GetEnumerator(); Version = DerInteger.GetInstance(e.Next()); EsSeal = SesSealInfo.GetInstance(e.Next()); TimeInfo = DerBitString.GetInstance(e.Next()); DataHash = DerBitString.GetInstance(e.Next()); PropertyInfo = DerIA5String.GetInstance(e.Next()); if (e.MoveNext()) { ExtensionData = ExtensionData.GetInstance(e.Next()); } }