cose-wg / HPKE

3 stars 3 forks source link

Provide official test vectors #38

Open dajiaji opened 9 months ago

dajiaji commented 9 months ago

@hannestschofenig @selfissued @OR13 and other folks,

I think Orie also mentioned this in another issur/PR, but how about providing test vectors in the COSE-HPKE spec?

Since the COSE specs are referred by many IETF WGs such as SUTE, TEEP, RATS, SCITT, etc., I think it is better for the COSE WG to provide the official test vectors.

Here are my suggestions:

HPKE spec (RFC9180) also provides test vectors in the same manner.

What do you think?

OR13 commented 9 months ago

I think we should do a PR to :

under a new directory called hpke-examples

I'd recommend generating the examples from a repo that maintains an implementation, so we can regenerate them again later if needed.

Here is a similar project that uses YAML to maintain examples:

https://github.com/openwallet-foundation-labs/sd-jwt-python

An example spec file, that is used to generate examples: