Re: [webauthn] I don't understand how to create a ClientData in makeCredential

Looking at https://www.w3.org/TR/WebCryptoAPI/#sha, I think the hash 
`AlgorithmIdentifier`s are all just strings or instances of 
[`Algorithm`](https://www.w3.org/TR/WebCryptoAPI/#dfn-Algorithm) 
itself rather than a subtype, so they have no structure beyond their 
names. Given that, we could probably make 
[`ClientData.hashAlg`](https://w3c.github.io/webauthn/#dom-clientdata-hashalg)
 just a `DOMString` instead of an `AlgorithmIdentifier`.

Even if WebAuthn wants to use a more structured hash algorithm in the 
future, we can probably make `hashAlg` a union of the right set of 
`Algorithm` subtypes, instead of matching WebCrypto's unconstrained 
`object`.

@mwatson2 in case I've mis-read WebCrypto.

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

Received on Wednesday, 15 February 2017 21:01:28 UTC