Hi all,

A question arising from the -05, specifically the sentence added to Section
6.3:

"The label, specific to each composite algorithm, helps protect against
component signatures being removed from the composite and used in another
context. However, it does not fully prevent it as the traditional component
still verifies under the traditional algorithm as a signature over M',
which is why key reuse is forbidden."

I agree with that, and I am not asking to change the weak non-separability
classification. My question is a narrower one that I think the sentence
leaves open.

A separated traditional component verifies over M' as a raw signature. That
is what Section 6.3 says. What a relying party processes is not a raw
signature over an arbitrary byte string, but a JWS or a COSE object, and
the two are not the same check. So:

M' = Prefix || Label || 0x00 || PH(M)

Is there any JWS signing input (compact or JSON serialization, payload
encoded or not per RFC 7797), or any COSE signing input (Sign1, Sign, or
countersignature), equal to M'?

I believe not, barring a collision in the component algorithm's hash:
- Every JWS signing input consists of base64url characters up to the "."
that follows the protected header. The Prefix and Label are also base64url
characters, but they are followed by a zero byte, which falls outside that
alphabet before any "." appears.
- Every COSE signing structure is a CBOR array beginning 0x84, 0x85 or 0x86
(RFC 9052 Section 4.4; RFC 9338 for countersignatures). M' begins 0x43
("C").

If that is right, then a separated component verifies as a signature but
cannot be presented as a valid JOSE or COSE object, and the residual risk
Section 6.3 describes is bounded in a way the text does not currently say.

Two things in the -05 make this worth asking now. The Label is no longer
passed to the component as its context, so the structure of M' is what
distinguishes a component signature made inside a composite from one made
outside it. And Section 6.4 sets out the limitations an application should
weigh, where a reader deciding whether a separated component is a problem
for them would expect to find this.

Would the working group consider stating in Section 6.3 or 6.4 whether a
separated component can verify as a JOSE or COSE object, either way? A
negative statement would let requirements documents rely on the existing
serializations rather than asking for a new construction; a positive one
would tell applications something they need to know.

The question comes from Section 8.2 of
draft-uppalapati-wimse-pq-agent-identity-00, an individual draft on
post-quantum requirements for agent identity. It matters there because of
long-lived evidence: for a delegation record kept and checked years later,
the verifier may be an auditor with only the record to go on, and "it
verifies as a signature" and "it is a valid object" come apart exactly
there.

Corrections to the analysis are very welcome.

Thanks,
Venkata Karunakar Uppalapati
_______________________________________________
jose mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to