Re: [webauthn] Consider using CDDL (CBOR data definition language) to define CBOR-encoded data structures

for example, here's some examples of data structures from the spec 
expressed in CDDL:

attestationObject expressed in CDDL:

attestationObject = {
  "fmt":        tstr,
  "authnDat":   bytes,
  "attStmt":    bytes
}

all attestation stmts expressed in CDDL:

PackedAttestationStatement = {
  "alg":        tstr,
  "sig":        bytes,
  "x5c":        [ attstnCert: bytes,  * bytes ],
  "daaKey":     bytes,
}


TpmAttestationStatement = {
  "ver":        tstr,
  "x5c":        [ attstnCert: bytes,  * bytes ],
  "alg":        tstr,
  "sig":        bytes,
  "certInfo":   bytes,
  "pubArea":    bytes,
}


AndroidKeyAttestationStatement = {
  bytes
}

AndroidSafetyNetAttestationStatement = {
  "ver":        tstr,
  "response":   bytes,
}


FidoU2fAttestationStatement = {
  "x5c":        bytes,
  "sig":        bytes,
}


-- 
GitHub Notification of comment by equalsJeffH
Please view or discuss this issue at 
https://github.com/w3c/webauthn/issues/318#issuecomment-274231615 
using your GitHub account

Received on Saturday, 21 January 2017 03:44:09 UTC