cose-wg / CBOR-certificates

Other
9 stars 7 forks source link

Deterministic Encoding of an Attribute #198

Open xipki opened 2 months ago

xipki commented 2 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 1 month ago
  1. We need to clarify the text to remove the ambiguity, that we don't support
  2. Adapt the proposal given
highlunder commented 1 month ago

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