• 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 / 0.0.1
Generic ASN.1 encoding/decoding support (BER and DER)
Backends JVM
Maven coordinates
Compatible Ceylon release JVM: 1.2.x, 1.3.x (latest)
Published Jun 19, 2016
Stats Downloads (JVM): 243
Source downloads: 315
Authors Dirk Lattermann
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.
Dependencies
ceylon.buffer/1.2.2
ceylon.collection/1.2.2
ceylon.language/1.2.2
ceylon.time/1.2.2 shared
ceylon.whole/1.2.2 shared
Usage
  • Import
 import de.dlkw.asn1 "0.0.1";
Module links Members
Imported By
Home
Code repository
Issue tracker
Browse
Download .car
No .js archive
Download source archive
Download module documentation
View API documentation

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