From e094c89e180b6b55872e56f2d03f0f9b773cb494 Mon Sep 17 00:00:00 2001 From: mwatson2 Date: Tue, 18 Oct 2016 15:12:07 -0700 Subject: [PATCH] Fix #146: Specify source of data for eliptic curve key import and fix error type (#148) --- 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 ae08802..c859888 100644 --- a/spec/Overview-WebCryptoAPI.xml +++ b/spec/Overview-WebCryptoAPI.xml @@ -8787,7 +8787,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. @@ -8795,7 +8796,7 @@ dictionary EcKeyImportParams : throw a - NotSupportedError. + DataError.

Otherwise:
@@ -9374,7 +9375,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. @@ -10486,7 +10487,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. @@ -10494,7 +10496,7 @@ dictionary EcdhKeyDeriveParams : throw a - NotSupportedError. + DataError.

Otherwise:
@@ -11025,7 +11027,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. @@ -11033,7 +11035,7 @@ dictionary EcdhKeyDeriveParams : throw a - NotSupportedError. + DataError.

diff --git a/spec/Overview.html b/spec/Overview.html index 556cd9c..d92e620 100644 --- a/spec/Overview.html +++ b/spec/Overview.html @@ -8540,7 +8540,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. @@ -8548,7 +8549,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:
@@ -9091,7 +9092,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. @@ -10151,7 +10152,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. @@ -10159,7 +10161,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:
@@ -10657,7 +10659,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. @@ -10665,7 +10667,7 @@

24.4. Operations

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