Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define test vectors for each value type of the COSE profile header parameter #7

Closed
letmaik opened this issue Feb 8, 2023 · 1 comment

Comments

@letmaik
Copy link
Contributor

letmaik commented Feb 8, 2023

  • Test vectors in JSON
  • a simple reference encoder/decoder using an off-the-shelve CBOR library
  • a test script that runs all test vectors against the reference implementation

Proposed JSON format:

{
  "title": "OID profile",
  "fail": false,
  "cbor": "...hex...",
  "type": "oid",
  "value": "1.2.3.4"
}

The above could be used to test both encoder and decoder. For error cases I would focus on decoding only:

{
  "title": "Invalid URI profile (tagged)",
  "fail": true,
  "cbor": "...hex.."
}
@thomas-fossati
Copy link
Owner

thomas-fossati commented Mar 1, 2023

This is a beautiful idea. But it should be tracked in the gluecose org.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants