• Modules
    • By category
    • By name
    • Most popular
    • Most downloaded
    • Repository
  • Register
  • Log in
  • Help
    • Start using Ceylon Herd
    • Publish your first module
    • Module publishing guidelines
    • All about Ceylon
    • Keyboard Shortcuts

    • s Focus search module bar
      ? Open this information panel
      j Move selection down
      k Move selection up
      enter Open current selection
Module info
Name
dlkw / de.dlkw.asn1
Generic ASN.1 encoding/decoding support (BER and DER)
Description

This module contains support to encode and decode ASN.1 values.

  • Encoding is done using the DER (distinguished encoding rules) to ensure a unique encoded represenation.

  • Decoding is done using the BER to accept a wider range of input. If the data to encode is not in canonical form (that is, if it violates the DER, that is signalled via the GenericAsn1Value.violatesDer flag on the decoded object.

A specific custom ASN.1 type is typically implemented using this module by implementing

  1. an Asn1Value subclass, which will be most likely a subclass of Asn1Sequence, Asn1SequenceOf or Asn1SetOf
  2. an instance creating function taking some "basic" Ceylon types as input, encode them using instance creating functions of other ASN.1 types and delegating to the constructor of the class implemented in step 1.
  3. a Decoder subclass using the decodeSequence, decodeSequenceOf or decodeSetOf function.
Last Published Jun 19, 2016
Stats Downloads (JVM): 243
Downloads (JS): 0
Source downloads: 315
Module links Home
Code repository
Issue tracker
Imported By
Browse
List of published versions
0.0.1 JVM JVM: 1.2.x, 1.3.x (latest) Published Jun 19, 2016 Browse
View docs
You must be logged in to comment.

Ceylon Herd v1.24 Copyright 2012-2022 Red Hat. About