vlm | cfa6f74 | 2004-08-20 13:38:07 +0000 | [diff] [blame] | 1 | |
| 2 | Q: Your compiler supplies a der_encode() procedure. How do I encode BER? |
| 3 | A: |
| 4 | The DER (and CER) are stricter subsets of a more generic BER encoding |
| 5 | method. If you encode data with DER or CER, all BER-conformant decoders |
| 6 | will easily understand that. Hence, to encode data in the BER format, |
| 7 | simply use the DER encoder, der_encode(). |
| 8 | |
| 9 | See also: ISO/IEC 8825-1 / X.690: |
| 10 | "ASN.1 encoding rules: Specification of |
| 11 | Basic Encoding Rules (BER), |
| 12 | Canonical Encoding Rules (CER) and |
| 13 | Distinguished Encoding Rules (DER)" |
| 14 | |