/// <summary> /// Encode ASN.1 class members to specified buffer. /// /// NB Assinine ASN.1 DER encoding rules requires members be added in reverse order. /// </summary> /// <param name="Buffer">Output buffer</param> public override void Encode (Goedel.ASN1.Buffer Buffer) { int Position = Buffer.Encode__Sequence_Start (); Buffer.Encode__Any (Content, 2, 0); Buffer.Debug ("Content"); Buffer.Encode__OIDRef (ContentType, 0, -1); Buffer.Debug ("ContentType"); Buffer.Encode__Sequence_End (Position); }
/// <summary> /// Encode ASN.1 class members to specified buffer. /// /// NB Assinine ASN.1 DER encoding rules requires members be added in reverse order. /// </summary> /// <param name="Buffer">Output buffer</param> public override void Encode (Goedel.ASN1.Buffer Buffer) { int Position = Buffer.Encode__Sequence_Start (); if (Value == null || Value.Count == 0) { Buffer.Encode__Object (null, 0, -1); } else { int XPosition = Buffer.Encode__Set_Start(); foreach (byte [] _Index in Value) { Buffer.Encode__Any (_Index, 0, 0); } Buffer.Encode__Set_End(XPosition, 0, -1); } Buffer.Debug ("Value"); Buffer.Encode__OIDRef (Type, 0, -1); Buffer.Debug ("Type"); Buffer.Encode__Sequence_End (Position); }
/// <summary> /// Encode ASN.1 class members to specified buffer. /// /// NB Assinine ASN.1 DER encoding rules requires members be added in reverse order. /// </summary> /// <param name="Buffer">Output buffer</param> public override void Encode (Goedel.ASN1.Buffer Buffer) { int Position = Buffer.Encode__Sequence_Start (); Buffer.Encode__Any (Qualifier, 0, -1); Buffer.Debug ("Qualifier"); Buffer.Encode__OIDRef (PolicyQualifierId, 0, -1); Buffer.Debug ("PolicyQualifierId"); Buffer.Encode__Sequence_End (Position); }
/// <summary> /// Encode ASN.1 class members to specified buffer. /// /// NB Assinine ASN.1 DER encoding rules requires members be added in reverse order. /// </summary> /// <param name="Buffer">Output buffer</param> public override void Encode (Goedel.ASN1.Buffer Buffer) { int Position = Buffer.Encode__Sequence_Start (); if (Parameters == null || Parameters.Count == 0) { Buffer.Encode__Object (null, 0, -1); } else { int XPosition = Buffer.Encode__Sequence_Start(); foreach (byte [] _Index in Parameters) { Buffer.Encode__Any (_Index, 0, 0); } Buffer.Encode__Sequence_End(XPosition, 0, -1); } Buffer.Debug ("Parameters"); Buffer.Encode__OIDRef (Algorithm, 0, -1); Buffer.Debug ("Algorithm"); Buffer.Encode__Sequence_End (Position); }