blob: 934e1d736d704273972a94c9b4372c6dc7ea974b [file] [log] [blame]
Lev Walkince8ccfa2004-08-20 13:38:07 +00001
Lev Walkin46edf962005-02-28 15:34:47 +00002Q: How to build a simplest BER (XER) encoder or decoder?
3A:
4
5 Please see "Examples" section of ./doc/asn1c-usage.pdf
6
7 Also, try the following to build the X.509v3 parser:
8
9 cd ./examples/sample.source.PKIX1
10 make
11 ./x509dump -h
12
13
Lev Walkince8ccfa2004-08-20 13:38:07 +000014Q: Your compiler supplies a der_encode() procedure. How do I encode BER?
15A:
16 The DER (and CER) are stricter subsets of a more generic BER encoding
17 method. If you encode data with DER or CER, all BER-conformant decoders
18 will easily understand that. Hence, to encode data in the BER format,
19 simply use the DER encoder, der_encode().
20
21 See also: ISO/IEC 8825-1 / X.690:
22 "ASN.1 encoding rules: Specification of
23 Basic Encoding Rules (BER),
24 Canonical Encoding Rules (CER) and
25 Distinguished Encoding Rules (DER)"
26
Lev Walkine057ca32004-09-05 10:41:17 +000027
Lev Walkine057ca32004-09-05 10:41:17 +000028
29--
30Lev Walkin
31vlm@lionet.info