On Thu, Sep 29, 2022 at 09:34:03AM +0000, Hannes Tschofenig wrote:
> Hi Richard,
> 
> there are already structures in COSE for describing a public key.
> The information HPKE exposes is a public key (plus other things).

"enc" is not a public key, it only might be a public key.
 
> Hence, the question is therefore: How many ways do we need to
> encode public keys in COSE?

Hopefully, just stuffing "enc" raw into some bstr?

> The reason for proposing this document to the group was the use
> case we had in SUIT. SUIT is about firmware updates for IoT
> devices. The HPKE libraries you list below are probably written
> for Web use cases. Here is the library I have been working on:
> https://github.com/Mbed-TLS/mbedtls/pull/5078

>From what I can tell from looking at that code, as long as
ext_skE_handle == 0, it does give the "enc" in the same format
as the other libraries (and if ext_skE_handle != 0, Bad Things
happen).



-Ilari

_______________________________________________
COSE mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/cose

Reply via email to