ace-wg / ace-key-groupcomm-oscore

Other
0 stars 1 forks source link

Revise future-ready generalization of 'ecdh_info_entry' #62

Closed marco-tiloca-sics closed 1 week ago

marco-tiloca-sics commented 1 year ago

Appendix B.1 "Format of 'ecdh_info_entry'" of version -16 says:

The i-th array following 'ecdh_parameters', i.e., 'ecdh_capab_i' (i = 0, ..., N-1), is the array of COSE capabilities for the algorithm capability specified in 'ecdh_parameters'[i].

It should say:

The i-th array following 'ecdh_parameters', i.e., 'ecdh_capab_i' (i = 1, ..., N), is the array of COSE capabilities for the algorithm capability specified in 'ecdh_parameters'[i-1], i.e., alg_capab_i.

EDIT: Following the revised CDDL definition of the generalized, future-ready format of 'ecdh_info_entry' (see issue #65), this issue has become more about updating and clarifying the description of each information element.

The new text before the CDDL definition should read as follows.

The format of each 'ecdh_info_entry' (see Section 5.3 and Section 5.3.1) is generalized as follows.

  • 'ecdh_parameters' includes N >= 0 elements, each of which is a COSE capability of the ECDH algorithm indicated in 'ecdh_alg'.

    In particular, 'ecdh_parameters' has the same format and value of the COSE capabilities array for the ECDH algorithm indicated in 'ecdh_alg', as specified for that algorithm in the 'Capabilities' column of the "COSE Algorithms" registry {{COSE.Algorithms}}.

  • 'ecdh_key_parameters' is replaced by N elements 'ecdh_capab', each of which is a CBOR array.

    The i-th 'ecdh_capab' array (i = 0, ..., N-1) is the array of COSE capabilities for the algorithm capability specified in 'ecdh_parameters'[i].

    In particular, each 'ecdh_capab' array has the same format and value of the COSE capabilities array for the algorithm capability specified in 'ecdh_parameters'[i].

    Such a COSE capabilities array is currently defined for the algorithm capability COSE key type, in the "Capabilities" column of the "COSE Key Types" registry {{COSE.Key.Types}}.