From 4cf13fdb7b9f2b60695f26044a234c18d0fa734d Mon Sep 17 00:00:00 2001 From: Mark Watson Date: Tue, 13 Sep 2016 11:52:14 -0700 Subject: [PATCH] Fix #146: Specify source of data for eliptic curve key import and fix error type --- spec/Overview-WebCryptoAPI.xml | 16 +++++++++------- spec/Overview.html | 16 +++++++++------- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/spec/Overview-WebCryptoAPI.xml b/spec/Overview-WebCryptoAPI.xml index d7aecc7..ca723b7 100644 --- a/spec/Overview-WebCryptoAPI.xml +++ b/spec/Overview-WebCryptoAPI.xml @@ -8777,7 +8777,8 @@ dictionary EcKeyImportParams : CryptoKey object that represents the Elliptic Curve public key identified by performing the conversion steps defined in Section 2.3.4 of SEC 1. + href="#SEC1">SEC 1 to the subjectPublicKey + field of spki. If a decode error occurs or an identity point is found, throw a DataError. @@ -8785,7 +8786,7 @@ dictionary EcKeyImportParams : throw a - NotSupportedError. + DataError.

Otherwise:
@@ -9364,7 +9365,7 @@ dictionary EcKeyImportParams : CryptoKey object that represents the Elliptic Curve public key identified by performing the conversion steps defined in Section 2.3.4 of SEC 1. + href="#SEC1">SEC 1 to keyData. If a decode error occurs or an identity point is found, throw a DataError. @@ -10475,7 +10476,8 @@ dictionary EcdhKeyDeriveParams : key be a new CryptoKey object that represents the Elliptic Curve public key identified by performing the conversion steps defined in Section 2.3.4 of SEC 1. + href="#SEC1">SEC 1 to the subjectPublicKey + field of spki. If a decode error occurs or an identity point is found, throw a DataError. @@ -10483,7 +10485,7 @@ dictionary EcdhKeyDeriveParams : throw a - NotSupportedError. + DataError.

Otherwise:
@@ -11014,7 +11016,7 @@ dictionary EcdhKeyDeriveParams : key be a new CryptoKey object that represents the Elliptic Curve public key identified by performing the conversion steps defined in Section 2.3.4 of SEC 1. + href="#SEC1">SEC 1 to keyData. If a decode error occurs or an identity point is found, throw a DataError. @@ -11022,7 +11024,7 @@ dictionary EcdhKeyDeriveParams : throw a - NotSupportedError. + DataError.

diff --git a/spec/Overview.html b/spec/Overview.html index a1a729d..b2bb23c 100644 --- a/spec/Overview.html +++ b/spec/Overview.html @@ -8530,7 +8530,8 @@

23.7. Operations

Let key be a new CryptoKey object that represents the Elliptic Curve public key identified by - performing the conversion steps defined in Section 2.3.4 of SEC 1. + performing the conversion steps defined in Section 2.3.4 of SEC 1 to the subjectPublicKey + field of spki. If a decode error occurs or an identity point is found, throw a DataError. @@ -8538,7 +8539,7 @@

23.7. Operations

If the implementation does not support the compressed point format and a compressed point is provided, throw a - NotSupportedError. + DataError.

Otherwise:
@@ -9081,7 +9082,7 @@

23.7. Operations

Let key be a new CryptoKey object that represents the Elliptic Curve public key identified by - performing the conversion steps defined in Section 2.3.4 of SEC 1. + performing the conversion steps defined in Section 2.3.4 of SEC 1 to keyData. If a decode error occurs or an identity point is found, throw a DataError. @@ -10140,7 +10141,8 @@

24.4. Operations

Let key be a new CryptoKey object that represents the Elliptic Curve public key identified by - performing the conversion steps defined in Section 2.3.4 of SEC 1. + performing the conversion steps defined in Section 2.3.4 of SEC 1 to the subjectPublicKey + field of spki. If a decode error occurs or an identity point is found, throw a DataError. @@ -10148,7 +10150,7 @@

24.4. Operations

If the implementation does not support the compressed point format and a compressed point is provided, throw a - NotSupportedError. + DataError.

Otherwise:
@@ -10646,7 +10648,7 @@

24.4. Operations

Let key be a new CryptoKey object that represents the Elliptic Curve public key identified by - performing the conversion steps defined in Section 2.3.4 of SEC 1. + performing the conversion steps defined in Section 2.3.4 of SEC 1 to keyData. If a decode error occurs or an identity point is found, throw a DataError. @@ -10654,7 +10656,7 @@

24.4. Operations

If the implementation does not support the compressed point format and a compressed point is provided, throw a - NotSupportedError. + DataError.