W3C home > Mailing lists > Public > public-webauthn@w3.org > February 2017

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

From: Jeffrey Yasskin via GitHub <sysbot+gh@w3.org>
Date: Wed, 15 Feb 2017 21:01:19 +0000
To: public-webauthn@w3.org
Message-ID: <issue_comment.created-280137432-1487192477-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:58:33 UTC