Skip to content

Releases: rusticata/asn1-rs

asn1-rs-0.5.2

07 Mar 10:42
asn1-rs-0.5.2
Compare
Choose a tag to compare

What's Changed

  • Fix decoding of integers: check if value will wrap if integer is signed
  • Fix encoding of integers (add 0x00 prefix when required, and remove extra 0xff for negative integers)
  • Fix a small math error in GeneralizedTime
  • Introduce trait GetObjectContent, use from_ber when skipping BER content (closes #14)

New Contributors

Full Changelog: asn1-rs-0.5.1...asn1-rs-0.5.2

asn1-rs-0.5.1

25 Aug 14:52
asn1-rs-0.5.1
Compare
Choose a tag to compare

Minor fixes:

  • Fix constraints too strict on TaggedValue::FromDer, do not auto-derive
  • Update oid-registry
  • Fix Any::as_relative_oid to take a reference (and not consume input)

derive:

  • Add special case handler for alias to Any
  • Add support for DEFAULT attribute

asn1-rs-0.5.0

25 Aug 14:51
asn1-rs-0.5.0
Compare
Choose a tag to compare

This release adds some new methods and custom derive attributes.
It also adds a lot of tests to improve code coverage.

asn1-rs:

  • Add helper types for Application/Private tagged values
  • Any: add methods from_ber_and_then (and _der)
  • TaggedParser: add documentation for from_ber_and_then (and _der)
  • Oid: add method starts_with
  • Fix documentation of application and private tagged helpers
  • Fix clippy warnings

derive:

  • Add custom derive BerAlias and DerAlias

coverage:

  • Add many tests to improve coverage

asn1-rs-0.4.1

11 Apr 16:08
asn1-rs-0.4.1
Compare
Choose a tag to compare

Minor fix:

  • add missing file in distribution (fix docs.rs build)

asn1-rs-0.4.0

11 Apr 16:08
asn1-rs-0.4.0
Compare
Choose a tag to compare

asn1-rs:

  • Add generic error parameter in traits and in types
    • This was added for all types except a few (like Vec<T> or BTreeSet<T>) due to
      Rust compiler limitations
  • Add DerAutoDerive trait to control manual/automatic implementation of FromDer
    • This allow controlling automatic trait implementation, and providing manual
      implementations of both FromDer and CheckDerConstraints
  • UtcTime: Introduce utc_adjusted_date() to map 2 chars years date to 20/21 centuries date (#9)

derive:

  • Add attributes to simplify deriving EXPLICIT, IMPLICIT and OPTIONAL
  • Add support for different tag classes (like APPLICATION or PRIVATE)
  • Add support for custom errors and mapping errors
  • Add support for deriving BER/DER SET
  • DerDerive: derive both CheckDerConstraints and FromDer

documentation:

  • Add doc modules for recipes and for custom derive attributes
  • Add note on trailing bytes being ignored in sequence
  • Improve documentation for notation with braces in TaggedValue
  • Improve documentation

asn1-rs-0.3.1

09 Feb 08:30
asn1-rs-0.3.1
Compare
Choose a tag to compare
  • Release new (unchanged) version to trigger docs.rs rebuild

Full Changelog: asn1-rs-0.3.0...asn1-rs-0.3.1

asn1-rs-0.3.0

31 Jan 09:01
asn1-rs-0.3.0
Compare
Choose a tag to compare