ko-isobe / tamproto

BSD 2-Clause "Simplified" License
8 stars 3 forks source link

Support COSE_Sign #17

Open ko-isobe opened 1 year ago

ko-isobe commented 1 year ago

From https://github.com/ietf-teep/teep-protocol/issues/251

Since teep-protocol-11, TAM can use COSE_Sign for supporting difference algorithm signatures in a single QueryRequest message. TAM are required to support two MTI signature algorithms; ECDSA(ES256) and EdDSA. Therefore, tamproto should support both algorithms and multiple signatures in QueryRequest.

The current tamproto depends on cose-js in COSE signing. cose-js doesn't support COSE_Sign.

There are two options:

ko-isobe commented 1 year ago

The 1st option was choosed.

I forked cose-js and added COSE_Sign. In cose_sign branch, tamproto uses my cose-js and supports COSE_Sign in QueryRequest. https://github.com/ko-isobe/tamproto/commit/524478ddb5f70a336f6f391ff99bcbb8e50a195d