message: Modifying ECDH tests such that failing to compute an
  ECDH share with P-256K curves is not a failure.
  (Of course computing an incorrect share would still fail.)
  These curves are not supported by many implementations.
diff: @@ -407,10 +407,11 @@ testSuite({
  */
  const runWycheproofTest = async function(test) {
  try {
  - const publicKey =
  - await EllipticCurves.importPublicKey('ECDH', test['public']);
  const privateKey =
  await EllipticCurves.importPrivateKey('ECDH', test['private']);
  + try {
  + const publicKey =
  + await EllipticCurves.importPublicKey('ECDH', test['public']);
  const sharedSecret =
  await EllipticCurves.computeEcdhSharedSecret(privateKey, publicKey);
  if (test['result'] === 'invalid') {
  @@ -427,6 +428,18 @@ const runWycheproofTest = async function(test) {
  e.toString() + '\".\n';
  }
  }
  + } catch (e) {
  + if (test['result'] === 'valid') {
  + if (test['private']['crv'] == "P-256K") {
  + // P-256K doesn't have to be supported. Hence failing to import the
  + // key is OK.
  + return '';
  + }
  + return 'Fail on test ' + test['tcId'] +
  + ': unexpected exception trying to import private key \"' +
  + e.toString() + '\".\n';
  + }
  + }
  // If the test passes return an empty string.
  return '';
  };
  