Changes

Unreleased

Version 0.9.0

Released 2021-06-04

  • Introduce new() into CWT/COSE. #115

  • Rename Claims.from_dict to Claims.new. #115

  • Rename COSEKey.from_dict to COSEKey.new. #115

  • Rename Recipient.from_dict to Recipient.new. #115

  • Add Signer for encode_and_sign function. #114

  • Divide CWT options into independent parameters. #113

Version 0.8.1

Released 2021-05-31

  • Add JSON support for COSE. #109

  • Devite a COSE options parameter into independent parameters. #109

  • Refine COSE default mode. #108

  • Refine the order of parameters for CWT functions. #107

  • Fix example in docstring. #107

  • Make interface docstring public. #106

Version 0.8.0

Released 2021-05-30

  • Refine EncryptedCOSEKey interface. #104

  • Merge RecipientsBuilder into Recipients. #103

  • Rename Key to COSEKeyInterface. #102

  • Rename RecipientBuilder to Recipient. #101

  • Make Key private. #100

  • Merge ClaimsBuilder into Claims. #98

  • Rename KeyBuilder to COSEKey. #97

  • Rename COSEKey to Key. #97

  • Add support for external AAD. #94

  • Make unwrap_key return COSEKey. #93

  • Fix default HMAC key size. #91

  • Add support for AES key wrap. #89

  • Add support for direct+HKDF-SHA256 and SHA512. #87

Version 0.7.1

Released 2021-05-11

  • Add alg validation and fix related bug. #77

  • Update protected/unprotected default value from {} to None. #76

Version 0.7.0

Released 2021-05-09

  • Add support for bytes-formatted protected header. #73

  • Derive alg from kty and crv on from_jwk. #73

  • Add alg_auto_inclusion. #73

  • Move nonce generation from CWT to COSE. #73

  • Re-order arguments of COSE API. #73

  • Add support for COSE algorithm names for KeyBuilder.from_jwk. #72

  • Add tests based on COSE WG examples. #72

  • Move parameter auto-gen function from CWT to COSE. #72

  • Refine COSE API to make the type of payload parameter be bytes only. #71

  • Simplify samples on docs. #69

Version 0.6.1

Released 2021-05-08

  • Add test for error handling of encoding/decoding. #67

  • Fix low level error message. #67

  • Add support for multiple aud. #65

  • Relax the condition of the acceptable private claim value. #64

  • Fix doc version. #63

Version 0.6.0

Released 2021-05-04

  • Make decode accept multiple keys. #61

  • Add set_private_claim_names to ClaimsBuilder and CWT. #60

  • Add sample of CWT with user-defined claims to docs. #60

Version 0.5.0

Released 2021-05-04

  • Make ClaimsBuilder return Claims. #56

  • Add support for JWK keyword of alg and key_ops. #55

  • Add from_jwk. #53

  • Add support for PoP key (cnf claim). #50

  • Add to_dict to COSEKey. #50

  • Add crv property to COSEKey. #50

  • Add key property to COSEKey. #50

  • Add support for RSASSA-PSS. #49

  • Add support for RSASSA-PKCS1-v1_5. #48

Version 0.4.0

Released 2021-04-30

  • Add CWT.encode. #46

  • Fix bug on KeyBuilder.from_dict. #45

  • Add support for key_ops. #44

  • Add support for ChaCha20/Poly1305. #43

  • Make nonce optional for CWT.encode_and_encrypt. #42

  • Add support for AES-GCM (A128GCM, A192GCM and A256GCM). #41

  • Make key optional for KeyBuilder.from_symmetric_key. #41

Version 0.3.0

Released 2021-04-29

  • Add docstring to COSE, KeyBuilder and more. #39

  • Add support for COSE_Encrypt structure. #36

  • Add support for COSE_Signature structure. #35

  • Change protected_header type from bytes to dict. #34

  • Add support for COSE_Mac structure. #32

  • Add test for CWT. #29

Version 0.2.3

Released 2021-04-23

  • Add test for cose_key and fix bugs. #21

  • Add support for exp, nbf and iat. #18

Version 0.2.2

Released 2021-04-19

  • Add support for Ed448, ES384 and ES512. #13

  • Add support for EncodeError and DecodeError. #13

  • Add test for supported algorithms. #13

  • Update supported algorithms and claims on docs. #13

Version 0.2.1

Released 2021-04-18

  • Add VerifyError. #11

  • Fix HMAC alg names. #11

  • Make COSEKey public. #11

  • Add tests for HMAC. #11

Version 0.2.0

Released 2021-04-18

  • Add docs for CWT. #9

  • Raname exceptions. #9

Version 0.1.1

Released 2021-04-18

  • Fix description of installation.

Version 0.1.0

Released 2021-04-18

  • First public preview release.