RFC 3642 (rfc3642) - Page 3 of 13


Common Elements of Generic String Encoding Rules (GSER) Encodings



Alternative Format: Original Text Document

< Previous
Next >


RFC 3642           Common Elements of GSER Encodings        October 2003


   The  rule describes the GSER encoding of values of the
   BIT STRING type without a named bit list.

      BIT-STRING = bstring / hstring

   If the number of bits in a BIT STRING value is a multiple of four the
    form of  MAY be used.  Otherwise, the 
   form of  is used.  The  rule encodes each bit as
   the character "0" or "1" in order from the first bit to the last bit.
   The  rule encodes each group of four bits as a hexadecimal
   number where the first bit is the most significant.  An odd number of
   hexadecimal digits is permitted.

      hstring           = squote *hexadecimal-digit squote %x48 ; '...'H
      hexadecimal-digit = %x30-39 /  ; "0" to "9"
                          %x41-46    ; "A" to "F"

      bstring           = squote *binary-digit squote %x42  ; '...'B
      binary-digit      = "0" / "1"

      squote            =  %x27  ; ' (single quote)

   The  rule describes the GSER encoding of values of the
   BOOLEAN type.

      BOOLEAN = %x54.52.55.45 /   ; "TRUE"
                %x46.41.4C.53.45  ; "FALSE"

   The  rule describes the GSER encoding of values of
   the associated type for the unrestricted CHARACTER STRING type.

      CHARACTER-STRING = "{" sp id-identification msp Identification ","
                             sp id-data-value msp OCTET-STRING
                             sp "}"

      id-identification = %x69.64.65.6E.74.69.66.69.63.61.74.69.6F.6E
                             ; "identification"
      id-data-value     = %x64.61.74.61.2D.76.61.6C.75.65 ; "data-value"

      Identification = ( id-syntaxes ":" Syntaxes ) /
                       ( id-syntax ":" OBJECT-IDENTIFIER ) /
                       ( id-presentation-context-id ":" INTEGER ) /
                       ( id-context-negotiation ":"
                            ContextNegotiation ) /
                       ( id-transfer-syntax ":" OBJECT-IDENTIFIER ) /
                       ( id-fixed ":" NULL )





Legg                         Informational


< Previous
Next >


Web Standards & Support:

Link to and support eLook.org Powered by LoadedWeb Web Hosting
Valid XHTML 1.0! Valid CSS! eLook.org FireFox Extensions