blob: 97b097eb72d5665626c8d6541ff1b0c9b44ccd28 [file] [log] [blame]
Lev Walkince8ccfa2004-08-20 13:38:07 +00001
2Q: Your compiler supplies a der_encode() procedure. How do I encode BER?
3A:
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