File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44Unreleased
55----------
66
7+ Version 2.0.0
8+ -------------
9+
10+ Released 2022-11-29
11+
12+ - BREAKING CHANGES for v2.0.0. `#290 <https://github.com/dajiaji/python-cwt/pull/290 >`__
13+ - Remove context parameter from Recipient encode()
14+ - Remove context and salt parameters from Recipient functions.
15+ - Add derive_bytes() to COSEKey interface.
16+ - Add decode() to Recipient interface.
17+ - Remove apply() from Recipient interface.
18+ - Remove from_jwk() from Recipient.
19+ - Remove extract() and decrypt() from Recipient interface.
20+ - Drop support for protected header for Key Wrap.
21+ - Remove derive_key() from COSEKey interface.
22+ - Update examples on README to be compliant with v2.0.0. `#290 <https://github.com/dajiaji/python-cwt/pull/290 >`__
23+ - Remove usage examples from documentation for ReadTheDocs. `#290 <https://github.com/dajiaji/python-cwt/pull/290 >`__
24+ - Add b_protected getter/setter to Recipient interface. `#290 <https://github.com/dajiaji/python-cwt/pull/290 >`__
25+ - Add to_bytes() to COSEKey interface. `#285 <https://github.com/dajiaji/python-cwt/pull/285 >`__
26+ - Add support for HPKE key wrapping experimentally. `#284 <https://github.com/dajiaji/python-cwt/pull/284 >`__
27+
728Version 1.6.2
829-------------
930
Original file line number Diff line number Diff line change @@ -28,20 +28,20 @@ And then, you can use it as follows:
2828
2929** COSE API**
3030
31- ``` pycon
31+ ``` py
3232>> > from cwt import COSE , COSEKey
3333>> > ctx = COSE .new()
3434>> > mac_key = COSEKey.generate_symmetric_key(alg = " HS256" , kid = " 01" )
3535>> > encoded = ctx.encode_and_mac(b " Hello world!" , mac_key, unprotected = {" alg" : " HS256" })
3636>> > encoded.hex()
37- 'd18443a10105a1044230314c48656c6c6f20776f726c642158205d0b144add282ccaac32a02e0d5eec76928ccadf3623271eb48e9464e2ee03b2'
37+ ' d18443a10105a1044230314c48656c6c6f20776f726c64215820 ' ...
3838>> > ctx.decode(encoded, mac_key)
3939b ' Hello world!'
4040```
4141
4242** CWT API**
4343
44- ``` pycon
44+ ``` py
4545>> > import cwt
4646>> > from cwt import COSEKey
4747>> > key = COSEKey.generate_symmetric_key(alg = " HS256" , kid = " 01" )
Original file line number Diff line number Diff line change 1616from .recipient import Recipient
1717from .signer import Signer
1818
19- __version__ = "1.6.2 "
19+ __version__ = "2.0.0 "
2020__title__ = "cwt"
2121__description__ = "A Python implementation of CWT/COSE"
2222__url__ = "https://python-cwt.readthedocs.io"
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44
55[tool .poetry ]
66name = " cwt"
7- version = " 1.6.2 "
7+ version = " 2.0.0 "
88description = " A Python implementation of CWT/COSE."
99authors = [" Ajitomi Daisuke <dajiaji@gmail.com>" ]
1010license = " MIT"
You can’t perform that action at this time.
0 commit comments