From 1abff0e333861211b5186527bc1c1371709ce3e4 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Fri, 4 Jun 2021 20:46:44 +0200 Subject: [PATCH] chore: add web crypto to expectations (#10845) This should make wpt.deno.land a lot more accurate about our current implementation status. --- tools/wpt/expectation.json | 157 ++++++++++++++++++++++++++++++++++++- 1 file changed, 156 insertions(+), 1 deletion(-) diff --git a/tools/wpt/expectation.json b/tools/wpt/expectation.json index f12aa16fd9..83e4d7c946 100644 --- a/tools/wpt/expectation.json +++ b/tools/wpt/expectation.json @@ -1,6 +1,161 @@ { "WebCryptoAPI": { - "getRandomValues.any.html": true + "getRandomValues.any.html": true, + "derive_bits_keys": { + "ecdh_bits.https.any.html": false, + "ecdh_keys.https.any.html": false, + "hkdf.https.any.html?1-1000": false, + "hkdf.https.any.html?1001-2000": false, + "hkdf.https.any.html?2001-3000": false, + "hkdf.https.any.html?3001-last": false, + "pbkdf2.https.any.html?1-1000": false, + "pbkdf2.https.any.html?1001-2000": false, + "pbkdf2.https.any.html?2001-3000": false, + "pbkdf2.https.any.html?3001-4000": false, + "pbkdf2.https.any.html?4001-5000": false, + "pbkdf2.https.any.html?5001-6000": false, + "pbkdf2.https.any.html?6001-7000": false, + "pbkdf2.https.any.html?7001-8000": false, + "pbkdf2.https.any.html?8001-last": false + }, + "digest": { + "digest.https.any.html": false + }, + "encrypt_decrypt": { + "aes_cbc.https.any.html": false, + "aes_ctr.https.any.html": false, + "aes_gcm.https.any.html": false, + "rsa.https.any.html": false + }, + "generateKey": { + "failures_AES-CBC.https.any.html": false, + "failures_AES-CTR.https.any.html": false, + "failures_AES-GCM.https.any.html": false, + "failures_AES-KW.https.any.html": false, + "failures_ECDH.https.any.html": false, + "failures_ECDSA.https.any.html": false, + "failures_HMAC.https.any.html": false, + "failures_RSA-OAEP.https.any.html": false, + "failures_RSA-PSS.https.any.html": false, + "failures_RSASSA-PKCS1-v1_5.https.any.html": false, + "successes_AES-CBC.https.any.html": false, + "successes_AES-CTR.https.any.html": false, + "successes_AES-GCM.https.any.html": false, + "successes_AES-KW.https.any.html": false, + "successes_ECDH.https.any.html": false, + "successes_ECDSA.https.any.html": false, + "successes_HMAC.https.any.html": false, + "successes_RSA-OAEP.https.any.html?1-10": false, + "successes_RSA-OAEP.https.any.html?101-110": false, + "successes_RSA-OAEP.https.any.html?11-20": false, + "successes_RSA-OAEP.https.any.html?111-120": false, + "successes_RSA-OAEP.https.any.html?121-130": false, + "successes_RSA-OAEP.https.any.html?131-140": false, + "successes_RSA-OAEP.https.any.html?141-150": false, + "successes_RSA-OAEP.https.any.html?151-last": false, + "successes_RSA-OAEP.https.any.html?21-30": false, + "successes_RSA-OAEP.https.any.html?31-40": false, + "successes_RSA-OAEP.https.any.html?41-50": false, + "successes_RSA-OAEP.https.any.html?51-60": false, + "successes_RSA-OAEP.https.any.html?61-70": false, + "successes_RSA-OAEP.https.any.html?71-80": false, + "successes_RSA-OAEP.https.any.html?81-90": false, + "successes_RSA-OAEP.https.any.html?91-100": false, + "successes_RSA-PSS.https.any.html?1-10": false, + "successes_RSA-PSS.https.any.html?11-20": false, + "successes_RSA-PSS.https.any.html?21-30": false, + "successes_RSA-PSS.https.any.html?31-last": false, + "successes_RSASSA-PKCS1-v1_5.https.any.html?1-10": false, + "successes_RSASSA-PKCS1-v1_5.https.any.html?11-20": false, + "successes_RSASSA-PKCS1-v1_5.https.any.html?21-30": false, + "successes_RSASSA-PKCS1-v1_5.https.any.html?31-last": false + }, + "historical.any.html": true, + "idlharness.https.any.html": [ + "Crypto interface: existence and properties of interface object", + "Crypto interface object length", + "Crypto interface object name", + "Crypto interface: existence and properties of interface prototype object", + "Crypto interface: existence and properties of interface prototype object's \"constructor\" property", + "Crypto interface: existence and properties of interface prototype object's @@unscopables property", + "Crypto interface: attribute subtle", + "Crypto interface: operation getRandomValues(ArrayBufferView)", + "Crypto must be primary interface of crypto", + "Stringification of crypto", + "Crypto interface: crypto must inherit property \"subtle\" with the proper type", + "Crypto interface: crypto must inherit property \"getRandomValues(ArrayBufferView)\" with the proper type", + "Crypto interface: calling getRandomValues(ArrayBufferView) on crypto with too few arguments must throw TypeError", + "CryptoKey interface: existence and properties of interface object", + "CryptoKey interface object length", + "CryptoKey interface object name", + "CryptoKey interface: existence and properties of interface prototype object", + "CryptoKey interface: existence and properties of interface prototype object's \"constructor\" property", + "CryptoKey interface: existence and properties of interface prototype object's @@unscopables property", + "CryptoKey interface: attribute type", + "CryptoKey interface: attribute extractable", + "CryptoKey interface: attribute algorithm", + "CryptoKey interface: attribute usages", + "SubtleCrypto interface: existence and properties of interface object", + "SubtleCrypto interface object length", + "SubtleCrypto interface object name", + "SubtleCrypto interface: existence and properties of interface prototype object", + "SubtleCrypto interface: existence and properties of interface prototype object's \"constructor\" property", + "SubtleCrypto interface: existence and properties of interface prototype object's @@unscopables property", + "SubtleCrypto interface: operation encrypt(AlgorithmIdentifier, CryptoKey, BufferSource)", + "SubtleCrypto interface: operation decrypt(AlgorithmIdentifier, CryptoKey, BufferSource)", + "SubtleCrypto interface: operation sign(AlgorithmIdentifier, CryptoKey, BufferSource)", + "SubtleCrypto interface: operation verify(AlgorithmIdentifier, CryptoKey, BufferSource, BufferSource)", + "SubtleCrypto interface: operation digest(AlgorithmIdentifier, BufferSource)", + "SubtleCrypto interface: operation generateKey(AlgorithmIdentifier, boolean, sequence)", + "SubtleCrypto interface: operation deriveKey(AlgorithmIdentifier, CryptoKey, AlgorithmIdentifier, boolean, sequence)", + "SubtleCrypto interface: operation deriveBits(AlgorithmIdentifier, CryptoKey, unsigned long)", + "SubtleCrypto interface: operation importKey(KeyFormat, (BufferSource or JsonWebKey), AlgorithmIdentifier, boolean, sequence)", + "SubtleCrypto interface: operation exportKey(KeyFormat, CryptoKey)", + "SubtleCrypto interface: operation wrapKey(KeyFormat, CryptoKey, CryptoKey, AlgorithmIdentifier)", + "SubtleCrypto interface: operation unwrapKey(KeyFormat, BufferSource, CryptoKey, AlgorithmIdentifier, AlgorithmIdentifier, boolean, sequence)", + "SubtleCrypto must be primary interface of crypto.subtle", + "Stringification of crypto.subtle", + "SubtleCrypto interface: crypto.subtle must inherit property \"encrypt(AlgorithmIdentifier, CryptoKey, BufferSource)\" with the proper type", + "SubtleCrypto interface: calling encrypt(AlgorithmIdentifier, CryptoKey, BufferSource) on crypto.subtle with too few arguments must throw TypeError", + "SubtleCrypto interface: crypto.subtle must inherit property \"decrypt(AlgorithmIdentifier, CryptoKey, BufferSource)\" with the proper type", + "SubtleCrypto interface: calling decrypt(AlgorithmIdentifier, CryptoKey, BufferSource) on crypto.subtle with too few arguments must throw TypeError", + "SubtleCrypto interface: crypto.subtle must inherit property \"sign(AlgorithmIdentifier, CryptoKey, BufferSource)\" with the proper type", + "SubtleCrypto interface: calling sign(AlgorithmIdentifier, CryptoKey, BufferSource) on crypto.subtle with too few arguments must throw TypeError", + "SubtleCrypto interface: crypto.subtle must inherit property \"verify(AlgorithmIdentifier, CryptoKey, BufferSource, BufferSource)\" with the proper type", + "SubtleCrypto interface: calling verify(AlgorithmIdentifier, CryptoKey, BufferSource, BufferSource) on crypto.subtle with too few arguments must throw TypeError", + "SubtleCrypto interface: crypto.subtle must inherit property \"digest(AlgorithmIdentifier, BufferSource)\" with the proper type", + "SubtleCrypto interface: calling digest(AlgorithmIdentifier, BufferSource) on crypto.subtle with too few arguments must throw TypeError", + "SubtleCrypto interface: crypto.subtle must inherit property \"generateKey(AlgorithmIdentifier, boolean, sequence)\" with the proper type", + "SubtleCrypto interface: calling generateKey(AlgorithmIdentifier, boolean, sequence) on crypto.subtle with too few arguments must throw TypeError", + "SubtleCrypto interface: crypto.subtle must inherit property \"deriveKey(AlgorithmIdentifier, CryptoKey, AlgorithmIdentifier, boolean, sequence)\" with the proper type", + "SubtleCrypto interface: calling deriveKey(AlgorithmIdentifier, CryptoKey, AlgorithmIdentifier, boolean, sequence) on crypto.subtle with too few arguments must throw TypeError", + "SubtleCrypto interface: crypto.subtle must inherit property \"deriveBits(AlgorithmIdentifier, CryptoKey, unsigned long)\" with the proper type", + "SubtleCrypto interface: calling deriveBits(AlgorithmIdentifier, CryptoKey, unsigned long) on crypto.subtle with too few arguments must throw TypeError", + "SubtleCrypto interface: crypto.subtle must inherit property \"importKey(KeyFormat, (BufferSource or JsonWebKey), AlgorithmIdentifier, boolean, sequence)\" with the proper type", + "SubtleCrypto interface: calling importKey(KeyFormat, (BufferSource or JsonWebKey), AlgorithmIdentifier, boolean, sequence) on crypto.subtle with too few arguments must throw TypeError", + "SubtleCrypto interface: crypto.subtle must inherit property \"exportKey(KeyFormat, CryptoKey)\" with the proper type", + "SubtleCrypto interface: calling exportKey(KeyFormat, CryptoKey) on crypto.subtle with too few arguments must throw TypeError", + "SubtleCrypto interface: crypto.subtle must inherit property \"wrapKey(KeyFormat, CryptoKey, CryptoKey, AlgorithmIdentifier)\" with the proper type", + "SubtleCrypto interface: calling wrapKey(KeyFormat, CryptoKey, CryptoKey, AlgorithmIdentifier) on crypto.subtle with too few arguments must throw TypeError", + "SubtleCrypto interface: crypto.subtle must inherit property \"unwrapKey(KeyFormat, BufferSource, CryptoKey, AlgorithmIdentifier, AlgorithmIdentifier, boolean, sequence)\" with the proper type", + "SubtleCrypto interface: calling unwrapKey(KeyFormat, BufferSource, CryptoKey, AlgorithmIdentifier, AlgorithmIdentifier, boolean, sequence) on crypto.subtle with too few arguments must throw TypeError", + "Window interface: attribute crypto" + ], + "import_export": { + "ec_importKey.https.any.html": false, + "rsa_importKey.https.any.html": false, + "symmetric_importKey.https.any.html": false + }, + "randomUUID.https.any.html": false, + "sign_verify": { + "ecdsa.https.any.html": false, + "hmac.https.any.html": false, + "rsa_pkcs.https.any.html": false, + "rsa_pss.https.any.html": false + }, + "wrapKey_unwrapKey": { + "wrapKey_unwrapKey.https.any.html": false + } }, "console": { "console-is-a-namespace.any.html": true,