home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / protocol / iso / 1062 < prev    next >
Encoding:
Internet Message Format  |  1992-08-26  |  3.1 KB

  1. Path: sparky!uunet!stanford.edu!rutgers!dziuxsolim.rutgers.edu!caip.rutgers.edu!baos
  2. From: baos@caip.rutgers.edu (Bancroft Scott)
  3. Newsgroups: comp.protocols.iso
  4. Subject: Re: Alternative Encoding Rules
  5. Message-ID: <Aug.26.23.49.12.1992.24881@caip.rutgers.edu>
  6. Date: 27 Aug 92 03:49:12 GMT
  7. References: <1992Aug18.193915.22005@linus.mitre.org> <5560108@hpindda.cup.hp.com>
  8. Organization: Rutgers Univ., New Brunswick, N.J.
  9. Lines: 55
  10.  
  11. khiem@hpindda.cup.hp.com (Khiem Ho) writes:
  12.  
  13. |>The new encoding rules of ASN.1 ...
  14. |...etc...
  15. |>
  16. |>ISO 8825-3 | X.209-3 describe the Canonical and Distinguished Encoding
  17. |>Rules of ASN.1 (CER & DER).  These are derived from BER and are used in
  18. |>encoding a message so that there is only one encoded value for a given
  19. |>message.  For example, in BER a BOOLEAN is encoded as 0 if the value is
  20. |>FALSE, and non-zero if it is TRUE.  CER & DER on the other hand, state
  21. |>that if the value is TRUE, it must be encoded as a 1 (hence the name canonical
  22. |>and distinguished).  So, with CER & DER there is a 1-1 mapping between
  23. |>the ASN.1-described types and the encoded values, whereas BER gives
  24. |>more flexibility.  So why two encoding rules to do 1-1 mappings?  DER caters
  25. |>to applications that have a need for a single way to encode data using
  26. |>definite length encoding, while CER caters to applications that have a need
  27. |>for a single way to encode data using indefinite length encoding.
  28. |>
  29. |>DER and CER are both Draft International Standards.  PER is a Committee Draft
  30. |>that may progress to DIS status in the October/November timeframe.
  31. |...etc...
  32.  
  33. |There's canonical BER defined in X.509 for security. Does anyone has
  34. |any info about this C-BER comparing to the CER/DER above, and if
  35. |there's any implementation supporting C-BER for X.509-security
  36. |applications?
  37.  
  38. The Distinguished Encoding Rules (DER) defined in the ISO 8825-3 | 
  39. CCITT X.209-3 draft international standard is the same as that described 
  40. in X.509, except:
  41.  
  42. 1. DER has a clause that specifies how trailing zero bits are to be treated
  43.    when the BIT STRING is defined using a NamedBitList, and when it isn't.
  44.  
  45. 2. DER specifies that: "The encoding of values of the GeneralString type 
  46.    (and its subtypes) shall generate escape sequences to designate and 
  47.    invoke a new register entry only when the register entry for the character
  48.    is different from that currently designated as G0, C0, or C1.  All 
  49.    designations and invocations shall be into the G0 set or the C0 set".
  50.  
  51.    More work is required to cover shift and locking shift characters, etc.
  52.  
  53. 3. DER specifies a canonical form for encoding GeneralizedTime.
  54.  
  55. As you can see, these three points close holes that are present in X.509's
  56. canonical BER, so DER satisfies the canonical BER specified in X.509.
  57.  
  58. As far as DER implementations supporting X.509-security is concerned, anyone
  59. interested in this should email me directly for information on commercial
  60. products.
  61.  
  62. =====================================|========================================
  63. Bancroft Scott                 |        Open Systems Solutions, Inc.
  64. 609-987-9073                 |        Princeton, N.J.
  65. =====================================|========================================
  66.