- From: Jim Schaad <ietf@augustcellars.com>
- Date: Fri, 31 Jan 2014 22:18:40 -0800
- To: <public-webcrypto@w3.org>
- Message-ID: <02fb01cf1f15$739a2590$5ace70b0$@augustcellars.com>
When doing generate call, I am not sure where the correct location for putting in a failure would go for an algorithm that is registered but is not implemented. The normalization function does not appear to check that the algorithm is supported - only that a recognized alias is given. I would assume that this should fail with InvalidAlgorithmError if a recognized but not implemented name is given (as this would be the default with a new alias). However if a dictionary I given, there is no check there that name is in the implemented table. The generate function would appear to say that a registered, but unimplemented algorithm would be treated as a non-registered algorithm as the check for support would fail and thus return NotSupportError. It would be nice of the same error would be returned in both cases, especially if I can normalize all of the algorithms at the time of implementation - but wanted to return a not supported error in the case it was not implemented. I am not sure if this is reasonable behavior or not. Jim
Received on Saturday, 1 February 2014 06:20:41 UTC