diff --git a/spec/Overview.html b/spec/Overview.html index 0e754ee..15a7ba6 100644 --- a/spec/Overview.html +++ b/spec/Overview.html @@ -1096,7 +1096,7 @@

Key interface data types

KeyType
The type of a key. The recognized key type values - are "`public`", "`private`" and "`secret`". + are "`public`", "`private`", and "`secret`". Opaque keying material, including that used for symmetric algorithms, is represented by secret, while keys used as part of asymmetric algorithms composed of public/private keypairs will be either public or private. @@ -3981,7 +3981,7 @@
Verify
  • If the {{CryptoKey/[[type]]}} internal slot of - |key| is not "`public`", then [= exception/throw =] an {{InvalidAccessError}}. + |key| is not {{KeyType/"public"}}, then [= exception/throw =] an {{InvalidAccessError}}.

  • @@ -4086,7 +4086,7 @@
    Generate Key
  • Set the {{CryptoKey/[[type]]}} internal slot of - |publicKey| to "`public`" + |publicKey| to {{KeyType/"public"}}

  • @@ -4237,7 +4237,7 @@
    Import Key
  • Set the {{CryptoKey/[[type]]}} internal slot - of |key| to "`public`" + of |key| to {{KeyType/"public"}}

  • @@ -4546,7 +4546,7 @@
    Import Key
  • Set the {{CryptoKey/[[type]]}} - internal slot of |key| to "`public`" + internal slot of |key| to {{KeyType/"public"}}

  • @@ -4630,7 +4630,7 @@
    Export Key
  • If the {{CryptoKey/[[type]]}} internal slot - of |key| is not "`public`", then [= exception/throw =] an {{InvalidAccessError}}. + of |key| is not {{KeyType/"public"}}, then [= exception/throw =] an {{InvalidAccessError}}.

  • @@ -5019,7 +5019,7 @@
    Verify
  • If the {{CryptoKey/[[type]]}} internal slot of - |key| is not "`public`", then [= exception/throw =] an {{InvalidAccessError}}. + |key| is not {{KeyType/"public"}}, then [= exception/throw =] an {{InvalidAccessError}}.

  • @@ -5123,7 +5123,7 @@
    Generate Key
  • Set the {{CryptoKey/[[type]]}} internal slot of - |publicKey| to "`public`" + |publicKey| to {{KeyType/"public"}}

  • @@ -5274,7 +5274,7 @@
    Import Key
  • Set the {{CryptoKey/[[type]]}} internal slot - of |key| to "`public`" + of |key| to {{KeyType/"public"}}

  • @@ -5573,7 +5573,7 @@
    Import Key
  • Set the {{CryptoKey/[[type]]}} - internal slot of |key| to "`public`" + internal slot of |key| to {{KeyType/"public"}}

  • @@ -5657,7 +5657,7 @@
    Export Key
  • If the {{CryptoKey/[[type]]}} internal slot - of |key| is not "`public`", then [= exception/throw =] an {{InvalidAccessError}}. + of |key| is not {{KeyType/"public"}}, then [= exception/throw =] an {{InvalidAccessError}}.

  • @@ -5996,7 +5996,7 @@
    Encrypt
  • If the {{CryptoKey/[[type]]}} internal slot of |key| - is not "`public`", + is not {{KeyType/"public"}}, then [= exception/throw =] an {{InvalidAccessError}}.

    @@ -6172,7 +6172,7 @@
    Generate Key
  • Set the {{CryptoKey/[[type]]}} internal slot of - |publicKey| to "`public`" + |publicKey| to {{KeyType/"public"}}

  • @@ -6326,7 +6326,7 @@
    Import Key
  • Set the {{CryptoKey/[[type]]}} internal slot of - |key| to "`public`" + |key| to {{KeyType/"public"}}

  • @@ -6605,7 +6605,7 @@
    Import Key
  • Set the {{CryptoKey/[[type]]}} internal slot of - |key| to "`public`" + |key| to {{KeyType/"public"}}

  • @@ -6689,7 +6689,7 @@
    Export Key
  • If the {{CryptoKey/[[type]]}} internal slot of - |key| is not "`public`", then [= exception/throw =] an {{InvalidAccessError}}. + |key| is not {{KeyType/"public"}}, then [= exception/throw =] an {{InvalidAccessError}}.

  • @@ -7196,7 +7196,7 @@
    Verify
  • If the {{CryptoKey/[[type]]}} internal slot of - |key| is not "`public`", then [= exception/throw =] an {{InvalidAccessError}}. + |key| is not {{KeyType/"public"}}, then [= exception/throw =] an {{InvalidAccessError}}.

  • @@ -7303,7 +7303,7 @@
    Generate Key
    1. - If |usages| contains a value which is not + If |usages| contains an entry which is not one of "`sign`" or "`verify`", then [= exception/throw =] a {{SyntaxError}}. @@ -7382,7 +7382,7 @@

      Generate Key
    2. Set the {{CryptoKey/[[type]]}} internal slot of - |publicKey| to "`public`" + |publicKey| to {{KeyType/"public"}}

    3. @@ -7475,7 +7475,7 @@
      Import Key
      1. - If |usages| contains a value which is not + If |usages| contains an entry which is not "`verify`" then [= exception/throw =] a {{SyntaxError}}. @@ -7642,7 +7642,7 @@

        Import Key
      2. Set the {{CryptoKey/[[type]]}} internal slot - of |key| to "`public`" + of |key| to {{KeyType/"public"}}

      3. @@ -7675,7 +7675,7 @@
        Import Key
        1. - If |usages| contains a value which is not + If |usages| contains an entry which is not "`sign`" then [= exception/throw =] a {{SyntaxError}}. @@ -8040,7 +8040,7 @@

          Import Key
        2. Set the {{CryptoKey/[[type]]}} - internal slot of |Key| to "`public`". + internal slot of |Key| to {{KeyType/"public"}}.

        @@ -8121,7 +8121,7 @@
        Import Key
      4. - If |usages| contains a value which is not + If |usages| contains an entry which is not "`verify`" then [= exception/throw =] a {{SyntaxError}}. @@ -8214,7 +8214,7 @@

        Import Key
      5. Set the {{CryptoKey/[[type]]}} internal slot - of |key| to "`public`" + of |key| to {{KeyType/"public"}}

      6. @@ -8236,7 +8236,7 @@
        Import Key
      7. - Return |key| + Return |key|.

      @@ -8266,7 +8266,7 @@
      Export Key
    4. If the {{CryptoKey/[[type]]}} internal slot - of |key| is not "`public`", then [= exception/throw =] an {{InvalidAccessError}}. + of |key| is not {{KeyType/"public"}}, then [= exception/throw =] an {{InvalidAccessError}}.

    5. @@ -8684,7 +8684,7 @@
      Export Key
    6. If the {{CryptoKey/[[type]]}} internal slot - of |key| is not "`public`", then [= exception/throw =] an {{InvalidAccessError}}. + of |key| is not {{KeyType/"public"}}, then [= exception/throw =] an {{InvalidAccessError}}.

    7. @@ -8896,7 +8896,7 @@
      Generate Key
    8. Set the {{CryptoKey/[[type]]}} internal slot of - |publicKey| to "`public`" + |publicKey| to {{KeyType/"public"}}

    9. @@ -8995,7 +8995,7 @@
      Derive Bits
    10. If the {{CryptoKey/[[type]]}} internal slot of - |publicKey| is not "`public`", then [= exception/throw =] an {{InvalidAccessError}}. + |publicKey| is not {{KeyType/"public"}}, then [= exception/throw =] an {{InvalidAccessError}}.

    11. @@ -9075,7 +9075,7 @@
      Derive Bits
    12. If |length| is null:
      -
      Return |secret|
      +
      Return |secret|.
      Otherwise:
      @@ -9278,7 +9278,7 @@
      Import Key
    13. Set the {{CryptoKey/[[type]]}} internal slot - of |key| to "`public`" + of |key| to {{KeyType/"public"}}

    14. @@ -9636,7 +9636,7 @@
      Import Key
    15. Set the {{CryptoKey/[[type]]}} - internal slot of |Key| to "`public`". + internal slot of |Key| to {{KeyType/"public"}}.

    @@ -9805,7 +9805,7 @@
    Import Key
  • Set the {{CryptoKey/[[type]]}} internal slot - of |key| to "`public`" + of |key| to {{KeyType/"public"}}

  • @@ -9820,7 +9820,7 @@
    Import Key
  • - Return |key| + Return |key|.

  • @@ -9850,7 +9850,7 @@
    Export Key
  • If the {{CryptoKey/[[type]]}} internal slot - of |key| is not "`public`", then [= exception/throw =] an {{InvalidAccessError}}. + of |key| is not {{KeyType/"public"}}, then [= exception/throw =] an {{InvalidAccessError}}.

  • @@ -10258,7 +10258,7 @@
    Export Key
  • If the {{CryptoKey/[[type]]}} internal slot - of |key| is not "`public`", then [= exception/throw =] an {{InvalidAccessError}}. + of |key| is not {{KeyType/"public"}}, then [= exception/throw =] an {{InvalidAccessError}}.

  • @@ -10456,7 +10456,7 @@
    Generate Key
    1. - If |usages| contains a value which is not + If |usages| contains an entry which is not one of "`sign`" or "`verify`", then [= exception/throw =] a {{SyntaxError}}. @@ -10487,7 +10487,7 @@

      Generate Key
    2. Set the {{CryptoKey/[[type]]}} internal slot of - |publicKey| to "`public`" + |publicKey| to {{KeyType/"public"}}

    3. @@ -10580,7 +10580,7 @@
      Import Key
      1. - If |usages| contains a value which is not + If |usages| contains an entry which is not "`verify`" then [= exception/throw =] a {{SyntaxError}}. @@ -10633,7 +10633,7 @@

        Import Key
      2. Set the {{CryptoKey/[[type]]}} internal slot - of |key| to "`public`" + of |key| to {{KeyType/"public"}}

      3. @@ -10660,7 +10660,7 @@
        Import Key
        1. - If |usages| contains a value which is not + If |usages| contains an entry which is not "`sign`" then [= exception/throw =] a {{SyntaxError}}. @@ -10897,7 +10897,7 @@

          Import Key
          1. - If |usages| contains a value which is not + If |usages| contains an entry which is not "`verify`" then [= exception/throw =] a {{SyntaxError}}. @@ -10930,7 +10930,7 @@

            Import Key
          2. Set the {{CryptoKey/[[type]]}} internal slot - of |key| to "`public`" + of |key| to {{KeyType/"public"}}

          3. @@ -10952,7 +10952,7 @@
            Import Key
          4. - Return |key| + Return |key|.

          @@ -10982,7 +10982,7 @@
          Export Key
        2. If the {{CryptoKey/[[type]]}} internal slot - of |key| is not "`public`", then [= exception/throw =] an {{InvalidAccessError}}. + of |key| is not {{KeyType/"public"}}, then [= exception/throw =] an {{InvalidAccessError}}.

        3. @@ -11145,7 +11145,7 @@
          Export Key
        4. If the {{CryptoKey/[[type]]}} internal slot - of |key| is not "`public`", then [= exception/throw =] an {{InvalidAccessError}}. + of |key| is not {{KeyType/"public"}}, then [= exception/throw =] an {{InvalidAccessError}}.

        5. @@ -11253,7 +11253,7 @@
          Derive Bits
        6. If the {{CryptoKey/[[type]]}} internal slot of - |publicKey| is not "`public`", then [= exception/throw =] an {{InvalidAccessError}}. + |publicKey| is not {{KeyType/"public"}}, then [= exception/throw =] an {{InvalidAccessError}}.

        7. @@ -11282,7 +11282,7 @@
          Derive Bits
        8. If |length| is null:
          -
          Return |secret|
          +
          Return |secret|.
          Otherwise:
          @@ -11344,7 +11344,7 @@
          Generate Key
        9. Set the {{CryptoKey/[[type]]}} internal slot of - |publicKey| to "`public`" + |publicKey| to {{KeyType/"public"}}

        10. @@ -11489,7 +11489,7 @@
          Import Key
        11. Set the {{CryptoKey/[[type]]}} internal slot - of |key| to "`public`" + of |key| to {{KeyType/"public"}}

        12. @@ -11781,7 +11781,7 @@
          Import Key
        13. Set the {{CryptoKey/[[type]]}} internal slot - of |key| to "`public`" + of |key| to {{KeyType/"public"}}

        14. @@ -11803,7 +11803,7 @@
          Import Key
        15. - Return |key| + Return |key|.

        @@ -11833,7 +11833,7 @@
        Export Key
      4. If the {{CryptoKey/[[type]]}} internal slot - of |key| is not "`public`", then [= exception/throw =] an {{InvalidAccessError}}. + of |key| is not {{KeyType/"public"}}, then [= exception/throw =] an {{InvalidAccessError}}.

      5. @@ -11990,7 +11990,7 @@
        Export Key
      6. If the {{CryptoKey/[[type]]}} internal slot - of |key| is not "`public`", then [= exception/throw =] an {{InvalidAccessError}}. + of |key| is not {{KeyType/"public"}}, then [= exception/throw =] an {{InvalidAccessError}}.

      7. @@ -12222,7 +12222,7 @@
        Generate Key
        1. - If |usages| contains any entry which is not + If |usages| contains an entry which is not one of "`encrypt`", "`decrypt`", "`wrapKey`" or "`unwrapKey`", then [= exception/throw =] a @@ -12781,7 +12781,7 @@

          Generate Key
          1. - If |usages| contains any entry which is not + If |usages| contains an entry which is not one of "`encrypt`", "`decrypt`", "`wrapKey`" or "`unwrapKey`", then [= exception/throw =] a @@ -13419,7 +13419,7 @@

            Generate Key
            1. - If |usages| contains any entry which is not + If |usages| contains an entry which is not one of "`encrypt`", "`decrypt`", "`wrapKey`" or "`unwrapKey`", then [= exception/throw =] a @@ -13923,7 +13923,7 @@

              Generate Key
              1. - If |usages| contains any entry which is not one of + If |usages| contains an entry which is not one of "`wrapKey`" or "`unwrapKey`", then [= exception/throw =] a {{SyntaxError}}.

              2. @@ -14449,7 +14449,7 @@
                Generate Key
                1. - If |usages| contains any entry which is not "`sign`" or + If |usages| contains an entry which is not "`sign`" or "`verify`", then [= exception/throw =] a {{SyntaxError}}.

                2. @@ -15178,7 +15178,7 @@

                  Registration

                  {{CryptoKey}} - Get key length + get key length None null @@ -15403,7 +15403,7 @@

                  Registration

                  {{CryptoKey}} - Get key length + get key length None null