Skip to content
Snippets Groups Projects
Select Git revision
  • branch/default default protected
  • master
  • release-0.4.9
  • add-unittest-assertion
  • add-except-clause-support
  • deprecate-size-spec
  • add-consistency-check-hook
  • add-with-components-constraint
  • fix-setof-slicing
  • fix-cer-der-tagged-any
  • improve-open-type-docs
  • add-set-of-any-support
  • fix-generalized-time-encoding
  • sequenceof-to-remain-schema
  • fix-dump-raw-value
  • fix-constructed-default
  • add-more-debug-logging
  • novalue-fixes-in-docs
  • codecs-produce-python-builtins
  • self-referencing-types
20 results

README.md

  • Ilya Etingof's avatar
    c9ce5f43660a
    Refactor BER decoder into a suspendable coroutine · c9ce5f43660a
    Ilya Etingof authored
    The goal of this change is to make the decoder stopping on input
    data starvation and resuming from where it stopped whenever the
    caller decides to try again (hopefully making sure that some more
    input becomes available).
    
    This change makes it possible for the decoder to operate on streams
    of data (meaning that the entire DER blob might not be immediately
    available on input).
    
    On top of that, the decoder yields partially reconstructed ASN.1
    object on input starvation making it possible for the caller to
    inspect what has been decoded so far and possibly consume partial
    ASN.1 data.
    
    All these new feature are natively available through
    `StreamingDecoder` class. Previously published API is implemented
    as a thin wrapper on top of that ensuring backward compatibility.
    c9ce5f43660a
    History
    Refactor BER decoder into a suspendable coroutine
    Ilya Etingof authored
    The goal of this change is to make the decoder stopping on input
    data starvation and resuming from where it stopped whenever the
    caller decides to try again (hopefully making sure that some more
    input becomes available).
    
    This change makes it possible for the decoder to operate on streams
    of data (meaning that the entire DER blob might not be immediately
    available on input).
    
    On top of that, the decoder yields partially reconstructed ASN.1
    object on input starvation making it possible for the caller to
    inspect what has been decoded so far and possibly consume partial
    ASN.1 data.
    
    All these new feature are natively available through
    `StreamingDecoder` class. Previously published API is implemented
    as a thin wrapper on top of that ensuring backward compatibility.