From 87c77ea85728a99158c7a69636331ad348bbac27 Mon Sep 17 00:00:00 2001 From: mwatson2 Date: Fri, 26 Aug 2016 11:06:32 -0400 Subject: [PATCH] Fix #119: Remove redundant checks that hash algorithm is supported (#123) --- spec/Overview-WebCryptoAPI.xml | 36 ------------------------------ spec/Overview.html | 40 ++-------------------------------- 2 files changed, 2 insertions(+), 74 deletions(-) diff --git a/spec/Overview-WebCryptoAPI.xml b/spec/Overview-WebCryptoAPI.xml index 6bdd21a..4a55124 100644 --- a/spec/Overview-WebCryptoAPI.xml +++ b/spec/Overview-WebCryptoAPI.xml @@ -8304,15 +8304,6 @@ dictionary EcKeyImportParams : registered algorithm that supports the digest - operation, - then throw a - NotSupportedError. -

-
  • Let M be the result of performing the digest operation specified by @@ -8419,15 +8410,6 @@ dictionary EcKeyImportParams : registered algorithm that supports the digest - operation, - then throw a - NotSupportedError. -

    -
  • Let M be the result of performing the digest operation specified by @@ -14752,15 +14734,6 @@ dictionary HkdfCtrParams : throw an OperationError.

  • -
  • -

    - If the hash member of - normalizedAlgorithm does not describe a - recognized algorithm that supports the digest operation, then - throw a - NotSupportedError -

    -
  • Let extractKey be a key equal to n zero bits where @@ -15019,15 +14992,6 @@ dictionary Pbkdf2Params : OperationError.

  • -
  • -

    - If the hash member of - normalizedAlgorithm does not describe a - recognized algorithm that supports the digest operation, then - throw a - NotSupportedError -

    -
  • Let prf be the MAC Generation function described in Section 4 of diff --git a/spec/Overview.html b/spec/Overview.html index 9202f3f..370b704 100644 --- a/spec/Overview.html +++ b/spec/Overview.html @@ -28,7 +28,7 @@ -

    Web Cryptography API

    W3C Editor’s Draft 19 July 2016

    Latest Editor’s Draft:
    http://w3c.github.io/webcrypto/Overview.html
    Latest Published Version:
    http://www.w3.org/TR/WebCryptoAPI/
    Previous Version(s):
    https://dvcs.w3.org/hg/webcrypto-api/raw-file/0fe9b34c13fb/spec/Overview.html
    Editor:
    Mark Watson, Netflix <watsonm@netflix.com>
    Participate:
    We are on GitHub. +

    Web Cryptography API

    W3C Editor’s Draft 26 August 2016

    Latest Editor’s Draft:
    http://w3c.github.io/webcrypto/Overview.html
    Latest Published Version:
    http://www.w3.org/TR/WebCryptoAPI/
    Previous Version(s):
    https://dvcs.w3.org/hg/webcrypto-api/raw-file/0fe9b34c13fb/spec/Overview.html
    Editor:
    Mark Watson, Netflix <watsonm@netflix.com>
    Participate:
    We are on GitHub.
    Send feedback to public-webcrypto@w3.org (archives).
    File a bug @@ -60,7 +60,7 @@

    Status of this Document

    report can be found in the W3C technical reports index at http://www.w3.org/TR/.

    - This document is the 19 July 2016 Editor’s Draft of the + This document is the 26 August 2016 Editor’s Draft of the Web Cryptography API specification. Please send comments about this document to @@ -8061,15 +8061,6 @@

    23.7. Operations

    member of normalizedAlgorithm.

  • -
  • -

    - If hashAlgorithm does not describe a - registered algorithm that supports the digest - operation, - then throw a - NotSupportedError. -

    -
  • Let M be the result of performing the digest operation specified by @@ -8174,15 +8165,6 @@

    23.7. Operations

    normalizedAlgorithm.

  • -
  • -

    - If hashAlgorithm does not describe a - registered algorithm that supports the digest - operation, - then throw a - NotSupportedError. -

    -
  • Let M be the result of performing the digest operation specified by @@ -14275,15 +14257,6 @@

    31.4. Operations

    If length is null, then throw an OperationError.

  • -
  • -

    - If the hash member of - normalizedAlgorithm does not describe a - recognized algorithm that supports the digest operation, then - throw a - NotSupportedError -

    -
  • Let extractKey be a key equal to n zero bits where @@ -14537,15 +14510,6 @@

    32.4. Operations

    If length is null or is not a multiple of 8, then throw an OperationError.

  • -
  • -

    - If the hash member of - normalizedAlgorithm does not describe a - recognized algorithm that supports the digest operation, then - throw a - NotSupportedError -

    -
  • Let prf be the MAC Generation function described in Section 4 of