Skip to content

Latest commit

 

History

History
67 lines (55 loc) · 3.17 KB

CHANGELOG.md

File metadata and controls

67 lines (55 loc) · 3.17 KB

Change Log

0.3.1 - 2022-02-23

  • Implement Display for CoseError.
  • Fix Cargo.toml to indicate reliance on alloc feature of ciborium-io.
  • Make AsCborValue trait public.

0.3.0 - 2022-01-19

  • Change to use ciborium as CBOR library. Breaking change with many knock-on effects:
    • Re-export ciborium as coset::cbor (rather than sk-cbor).
    • Use ciborium's Value type rather than sk-cbor's version.
    • Change CoseError to no longer wrap sk-cbor errors.
    • Drop derive of Eq for data types (ciborium supports float values, which are inherently non-Eq)
    • Add #[must_use] attributes to builder methods.
    • Update MSRV to 1.56.0, as ciborium is edition=2021
  • Use new ProtectedHeader type for protected headers (breaking change). This variant of Header preserves any originally-parsed data, so that calculations (signatures, decryption, etc.) over the data can use the bit-for-bit wire data instead of a reconstituted (and potentially different) version.
  • Add more specific error cases to CoseError (breaking change):
    • Use new OutOfRangeIntegerValue error when an integer value is too large for the representation used in this crate.
    • Use new DuplicateMapKey error when a CBOR map contains duplicate keys (and is thus invalid).
    • Extend DecodeFailed error to include the underlying ciborium::de::Error value.
    • Use new ExtraneousData error when data remains after reading a CBOR value.
    • Rename UnexpectedType error to UnexpectedItem to reflect broader usage than type.
  • Add a crate-specific Result type whose E field defaults to CoseError.

0.2.0 - 2021-12-09

  • Change to use sk-cbor as CBOR library, due to deprecation of serde-cbor. Breaking change with many knock-on effects:
    • Re-export sk-cbor as coset::cbor.
    • Use sk-cbor's Value type rather than serde-cbor's version.
    • Change encoding methods to consume self.
    • Change encoding methods to be fallible.
    • Move to be no_std (but still using alloc)
    • Add CoseError error type and use throughout.
    • Use Vec of pairs not BTreeMaps for CBOR map values.
    • Use i64 not i128 for integer values throughout.
    • Drop use of serde's Serialize and Deserialize traits; instead…
    • Add CborSerializable extension trait for conversion to/from bytes.
    • Drop from_tagged_reader / to_tagged_writer methods from TaggedCborSerializable trait.
    • Derive Debug for builders.
    • Convert CoseKeySet to a newtype, and add standard traits.

0.1.2 - 2021-08-24

  • Add fallible variants of builder methods that invoke closures (#20):
    • CoseRecipientBuilder::try_create_ciphertext()
    • CoseEncryptBuilder::try_create_ciphertext()
    • CoseEncrypt0Builder::try_create_ciphertext()
    • CoseMacBuilder::try_create_tag()
    • CoseMac0Builder::try_create_tag()
    • CoseSignBuilder::try_add_created_signature()
    • CoseSign1Builder::try_create_signature()
  • Upgrade dependencies.

0.1.1 - 2021-06-24

  • Make KeyType and KeyOperation public.
  • Upgrade dependencies.

0.1.0 - 2021-05-18

  • Initial version, using serde-cbor as CBOR library.