cose-wg / CBOR-certificates

Other
11 stars 7 forks source link

Deterministic Encoding of an Attribute #198

Closed xipki closed 4 months ago

xipki commented 6 months ago

In draft -09, an Attribute is encoded as follows

    Attribute = ( attributeType: int, attributeValue: text ) //
                ( attributeType: ~oid/pen, attributeValue: bytes )
  1. It is not clear how to encode the attribute, if it has the assigned int type, and
    • For emailAddress and domainComponent: the attribute value is not IA5String encoded,
    • For other attributes, the value is neither PRINTABLE STRING nor UTF8 STRING encoded.
  2. Shall the attribte type be negative (for PRINTABLE STRING) or posive (for UTF8 STRING), if the attribute type is of fixed string type, but not one of PRINTABLE STRING and UTF8 STRING, e.g. the emailAddress and domainComponent?
highlunder commented 5 months ago
  1. We need to clarify the text to remove the ambiguity, that we don't support
  2. Adapt the proposal given
highlunder commented 5 months ago

@xipki is welcome to push a PR with a clarifying proposal!

highlunder commented 4 months ago

Accepting and merging PR with clarifying text!