Skip to content
Examples for the cose-spec
Branch: master
Clone or download
jimsch Merge pull request #89 from jimsch/master
Add countersignature examples
Latest commit 647a47c Jan 23, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CWT Update to the latest working examples Jul 31, 2017
RFC8152 Change the names of the files to match their current places in the fi… May 12, 2017
X25519-tests Change leading white space from moving to a new pretty printer Dec 27, 2016
aes-ccm-examples Fix the Encrypt0 examples to have the correct tag Dec 27, 2016
aes-gcm-examples
aes-wrap-examples
cbc-mac-examples Change leading white space from moving to a new pretty printer Dec 27, 2016
chacha-poly-examples Change the struture tags Nov 12, 2016
countersign
countersign0 Add countersignature examples Jan 24, 2019
ecdh-direct-examples
ecdh-wrap-examples Change leading white space from moving to a new pretty printer Dec 27, 2016
ecdsa-examples Correct to use deterministic ECDSA for all examples Apr 6, 2017
eddsa-examples Add examples for EdDSA Apr 10, 2018
encrypted-tests Fix the Encrypt0 examples to have the correct tag Dec 27, 2016
enveloped-tests Change leading white space from moving to a new pretty printer Dec 27, 2016
hkdf-aes-examples Change leading white space from moving to a new pretty printer Dec 27, 2016
hkdf-hmac-sha-examples
hmac-examples Change leading white space from moving to a new pretty printer Dec 27, 2016
mac-tests
mac0-tests Change leading white space from moving to a new pretty printer Dec 27, 2016
rsa-oaep-examples Add support for RSA examples Jun 13, 2018
rsa-pss-examples Add support for RSA examples Jun 13, 2018
sign-tests Change leading white space from moving to a new pretty printer Dec 27, 2016
sign1-tests Correct to use deterministic ECDSA for all examples Apr 6, 2017
.gitattributes
.gitignore Update to match current spec Jun 3, 2015
Examples.WinMerge Change the struture tags Nov 12, 2016
KeySet.txt Change context strings to match -12 version May 13, 2016
README.md Initial cut at some CWT examples Apr 4, 2017
examples.cddl Example cleanups Jan 30, 2016
what-do-i-have.xlsx Switch to CBC-MAC from CMAC Jan 1, 2016

README.md

Examples

This project contains a number of examples and test cases for the IETF COSE WG specification.

The file Example.cddl contains a schema for how the example files are formatted.

As time and the spec progresses, it is expected that we will start looking at adding examples that fail as well as successful examples. While every attempt will be made to keep the examples in sync with the specifications, they may trail the current version at times.

What is in each directory

  • spec-examples - Contains the examples assoicated with the IETF specification for the COSE message syntax.

  • aes-ccm-examples - Contains Enveloped and Encrypt examples related to the AES CCM algorithm

  • aes-gcm-examples - Contains Enveloped and Encrypt examples related to the AES GCM algorithm

  • cbc-mac-examples - Contians Mac and Mac0 examples related to the AES CBC Mac algorithm

  • chacha-poly-examples - Contains Enveloped and Encrypt examples related to the ChaCha-Poly1305 algorithm

  • ecdh-direct-examples - Contains Enveloped and MAC examples related to the ECDH key managment algorithm where no key wrap algorithm is used

  • ecdh-wrap-examples - Contains Enveloped and MAC examples related to the ECDH key managment algorithm where a key wrap algorithm is used

  • ecdsa-examples - Contains Sign and Sign0 examples related to the ECDSA signature algorithm

  • encrypted-tests - Contains Encrypt test examples

  • hkdf-aes-examples - Contains Enveloped and Mac examples related to the use of direct key with the HKDF-AES recipient algorithms

  • hkdf-hmac-sha-examples - Contains Enveloped and Mac examples related to the use of direct key with the HKDF-HMAC-SHA recipient algorithms

  • hmac-examples - Contains Mac and Mac0 examples related to the HMAC-SHA algorithm

  • CWT - Contains the examples from draft-ace-cwt

Random number generation

The examples can potentially contain a random number generation stream. This field contains a re-playable random number generator sequence that is used by the program which generates the examples. The order in which calls are made to the random number generator should be documented in the description field when this present in the file.

You can’t perform that action at this time.