public OriginatorPublicKey( AlgorithmIdentifier algorithm, byte[] publicKey) { this.algorithm = algorithm; this.publicKey = new DerBitString(publicKey); }
private CertificateList( Asn1Sequence seq) { if (seq.Count != 3) throw new ArgumentException("sequence wrong size for CertificateList", "seq"); tbsCertList = TbsCertificateList.GetInstance(seq[0]); sigAlgID = AlgorithmIdentifier.GetInstance(seq[1]); sig = DerBitString.GetInstance(seq[2]); }
public BasicOcspResponse( ResponseData tbsResponseData, AlgorithmIdentifier signatureAlgorithm, DerBitString signature, Asn1Sequence certs) { this.tbsResponseData = tbsResponseData; this.signatureAlgorithm = signatureAlgorithm; this.signature = signature; this.certs = certs; }
private BasicOcspResponse( Asn1Sequence seq) { this.tbsResponseData = ResponseData.GetInstance(seq[0]); this.signatureAlgorithm = AlgorithmIdentifier.GetInstance(seq[1]); this.signature = (DerBitString)seq[2]; if (seq.Count > 3) { this.certs = Asn1Sequence.GetInstance((Asn1TaggedObject)seq[3], true); } }
private Signature( Asn1Sequence seq) { signatureAlgorithm = AlgorithmIdentifier.GetInstance(seq[0]); signatureValue = (DerBitString)seq[1]; if (seq.Count == 3) { certs = Asn1Sequence.GetInstance( (Asn1TaggedObject)seq[2], true); } }
public Signature( AlgorithmIdentifier signatureAlgorithm, DerBitString signatureValue, Asn1Sequence certs) { if (signatureAlgorithm == null) throw new ArgumentException("signatureAlgorithm"); if (signatureValue == null) throw new ArgumentException("signatureValue"); this.signatureAlgorithm = signatureAlgorithm; this.signatureValue = signatureValue; this.certs = certs; }
public ECPrivateKeyStructure( BigInteger key, DerBitString publicKey, Asn1Encodable parameters) { if (key == null) throw new ArgumentNullException("key"); Asn1EncodableVector v = new Asn1EncodableVector( new DerInteger(1), new DerOctetString(key.ToByteArrayUnsigned())); if (parameters != null) { v.Add(new DerTaggedObject(true, 0, parameters)); } if (publicKey != null) { v.Add(new DerTaggedObject(true, 1, publicKey)); } this.seq = new DerSequence(v); }
public OriginatorPublicKey( Asn1Sequence seq) { algorithm = AlgorithmIdentifier.GetInstance(seq[0]); publicKey = (DerBitString) seq[1]; }
public NetscapeCertType(DerBitString usage) : base(usage.GetBytes(), usage.PadBits) { }
public Signature( AlgorithmIdentifier signatureAlgorithm, DerBitString signatureValue) : this(signatureAlgorithm, signatureValue, null) { }