• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Change Log
2
3## 0.3.7 - 2024-04-05
4
5- Bump MSRV to 1.58.
6- Update dependencies.
7- Fix bounds bug for label sorting.
8
9## 0.3.6 - 2024-01-15
10
11- Helpers for ordering of fields in a `COSE_Key`:
12    - Add `Label::cmp_canonical()` for RFC 7049 canonical ordering.
13    - Add `CborOrdering` enum to specify ordering.
14    - Add `CoseKey::canonicalize()` method to order fields.
15
16## 0.3.5 - 2023-09-29
17
18- Add helper methods to create and verify detached signatures:
19    - Add `CoseSignBuilder` methods `add_detached_signature` and `try_add_detached_signature`.
20    - Add `CoseSign` method `verify_detached_signature`.
21    - Add `CoseSign1Builder` methods `create_detached_signature` and `try_create_detached_signature`.
22    - Add `CoseSign1` method `verify_detached_signature`.
23- Implement CBOR conversion traits for `ciborium::value::Value`.
24- Update `ciborium` dependency.
25
26## 0.3.4 - 2023-01-25
27
28- Add non-default `std` feature that turns on `impl Error for CoseError`.
29- Add `cwt::ClaimsSetBuilder::private_claim` method.
30- Update documentation for existing encryption methods to make it clear that they only support AEAD encryption.
31
32## 0.3.3 - 2022-09-30
33
34- Add `CoseKeyBuilder` methods `kty`, `key_type` and `new_okp_key`.
35
36## 0.3.2 - 2022-04-02
37
38- Add basic [CWT](https://datatracker.ietf.org/doc/html/rfc8392) support in `cwt` module, via the `ClaimsSet` type.
39
40## 0.3.1 - 2022-02-23
41
42- Implement `Display` for `CoseError`.
43- Fix `Cargo.toml` to indicate reliance on `alloc` feature of `ciborium-io`.
44- Make `AsCborValue` trait public.
45
46## 0.3.0 - 2022-01-19
47
48- Change to use `ciborium` as CBOR library. Breaking change with many knock-on effects:
49    - Re-export `ciborium` as `coset::cbor` (rather than `sk-cbor`).
50    - Use `ciborium`'s `Value` type rather than `sk-cbor`'s version.
51    - Change `CoseError` to no longer wrap `sk-cbor` errors.
52    - Drop `derive` of `Eq` for data types (`ciborium` supports float values, which are inherently non-`Eq`)
53    - Add `#[must_use]` attributes to builder methods.
54    - Update MSRV to 1.56.0, as `ciborium` is `edition=2021`
55- Use new `ProtectedHeader` type for protected headers (breaking change).  This variant of `Header` preserves any
56  originally-parsed data, so that calculations (signatures, decryption, etc.) over the data can use the bit-for-bit wire
57  data instead of a reconstituted (and potentially different) version.
58- Add more specific error cases to `CoseError` (breaking change):
59    - Use new `OutOfRangeIntegerValue` error when an integer value is too large for the representation used in this
60      crate.
61    - Use new `DuplicateMapKey` error when a CBOR map contains duplicate keys (and is thus invalid).
62    - Extend `DecodeFailed` error to include the underlying `ciborium::de::Error` value.
63    - Use new `ExtraneousData` error when data remains after reading a CBOR value.
64    - Rename `UnexpectedType` error to `UnexpectedItem` to reflect broader usage than type.
65- Add a crate-specific `Result` type whose `E` field defaults to `CoseError`.
66
67## 0.2.0 - 2021-12-09
68
69- Change to use `sk-cbor` as CBOR library, due to deprecation of `serde-cbor`. Breaking change with many knock-on
70  effects:
71    - Re-export `sk-cbor` as `coset::cbor`.
72    - Use `sk-cbor`'s `Value` type rather than `serde-cbor`'s version.
73    - Change encoding methods to consume `self`.
74    - Change encoding methods to be fallible.
75    - Move to be `no_std` (but still using `alloc`)
76    - Add `CoseError` error type and use throughout.
77    - Use `Vec` of pairs not `BTreeMap`s for CBOR map values.
78    - Use `i64` not `i128` for integer values throughout.
79    - Drop use of `serde`'s `Serialize` and `Deserialize` traits; instead…
80    - Add `CborSerializable` extension trait for conversion to/from bytes.
81    - Drop `from_tagged_reader` / `to_tagged_writer` methods from `TaggedCborSerializable` trait.
82    - Derive `Debug` for builders.
83    - Convert `CoseKeySet` to a newtype, and add standard traits.
84
85## 0.1.2 - 2021-08-24
86
87- Add fallible variants of builder methods that invoke closures (#20):
88    - `CoseRecipientBuilder::try_create_ciphertext()`
89    - `CoseEncryptBuilder::try_create_ciphertext()`
90    - `CoseEncrypt0Builder::try_create_ciphertext()`
91    - `CoseMacBuilder::try_create_tag()`
92    - `CoseMac0Builder::try_create_tag()`
93    - `CoseSignBuilder::try_add_created_signature()`
94    - `CoseSign1Builder::try_create_signature()`
95- Upgrade dependencies.
96
97## 0.1.1 - 2021-06-24
98
99- Make `KeyType` and `KeyOperation` public.
100- Upgrade dependencies.
101
102## 0.1.0 - 2021-05-18
103
104- Initial version, using `serde-cbor` as CBOR library.
105