mirror of
https://github.com/servo/servo.git
synced 2025-08-14 18:05:36 +01:00
Implement SubtleCrypto.digest
(#34034)
* Implement SubtleCrypto.digest Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Update WPT expectations Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
parent
01820e2a8a
commit
7fa548f555
9 changed files with 108 additions and 516 deletions
|
@ -6,9 +6,6 @@
|
|||
[Context is discarded in decrypt]
|
||||
expected: TIMEOUT
|
||||
|
||||
[Context is discarded in digest]
|
||||
expected: TIMEOUT
|
||||
|
||||
[Context is discarded in sign]
|
||||
expected: TIMEOUT
|
||||
|
||||
|
|
|
@ -1,482 +0,0 @@
|
|||
[digest.https.any.worker.html]
|
||||
[SHA-1 with empty source data]
|
||||
expected: FAIL
|
||||
|
||||
[sha-1 with empty source data]
|
||||
expected: FAIL
|
||||
|
||||
[Sha-1 with empty source data]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-1 with empty source data and altered buffer after call]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-256 with empty source data]
|
||||
expected: FAIL
|
||||
|
||||
[sha-256 with empty source data]
|
||||
expected: FAIL
|
||||
|
||||
[Sha-256 with empty source data]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-256 with empty source data and altered buffer after call]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-384 with empty source data]
|
||||
expected: FAIL
|
||||
|
||||
[sha-384 with empty source data]
|
||||
expected: FAIL
|
||||
|
||||
[Sha-384 with empty source data]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-384 with empty source data and altered buffer after call]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-512 with empty source data]
|
||||
expected: FAIL
|
||||
|
||||
[sha-512 with empty source data]
|
||||
expected: FAIL
|
||||
|
||||
[Sha-512 with empty source data]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-512 with empty source data and altered buffer after call]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-1 with short source data]
|
||||
expected: FAIL
|
||||
|
||||
[sha-1 with short source data]
|
||||
expected: FAIL
|
||||
|
||||
[Sha-1 with short source data]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-1 with short source data and altered buffer after call]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-256 with short source data]
|
||||
expected: FAIL
|
||||
|
||||
[sha-256 with short source data]
|
||||
expected: FAIL
|
||||
|
||||
[Sha-256 with short source data]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-256 with short source data and altered buffer after call]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-384 with short source data]
|
||||
expected: FAIL
|
||||
|
||||
[sha-384 with short source data]
|
||||
expected: FAIL
|
||||
|
||||
[Sha-384 with short source data]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-384 with short source data and altered buffer after call]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-512 with short source data]
|
||||
expected: FAIL
|
||||
|
||||
[sha-512 with short source data]
|
||||
expected: FAIL
|
||||
|
||||
[Sha-512 with short source data]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-512 with short source data and altered buffer after call]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-1 with medium source data]
|
||||
expected: FAIL
|
||||
|
||||
[sha-1 with medium source data]
|
||||
expected: FAIL
|
||||
|
||||
[Sha-1 with medium source data]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-1 with medium source data and altered buffer after call]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-256 with medium source data]
|
||||
expected: FAIL
|
||||
|
||||
[sha-256 with medium source data]
|
||||
expected: FAIL
|
||||
|
||||
[Sha-256 with medium source data]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-256 with medium source data and altered buffer after call]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-384 with medium source data]
|
||||
expected: FAIL
|
||||
|
||||
[sha-384 with medium source data]
|
||||
expected: FAIL
|
||||
|
||||
[Sha-384 with medium source data]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-384 with medium source data and altered buffer after call]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-512 with medium source data]
|
||||
expected: FAIL
|
||||
|
||||
[sha-512 with medium source data]
|
||||
expected: FAIL
|
||||
|
||||
[Sha-512 with medium source data]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-512 with medium source data and altered buffer after call]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-1 with long source data]
|
||||
expected: FAIL
|
||||
|
||||
[sha-1 with long source data]
|
||||
expected: FAIL
|
||||
|
||||
[Sha-1 with long source data]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-1 with long source data and altered buffer after call]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-256 with long source data]
|
||||
expected: FAIL
|
||||
|
||||
[sha-256 with long source data]
|
||||
expected: FAIL
|
||||
|
||||
[Sha-256 with long source data]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-256 with long source data and altered buffer after call]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-384 with long source data]
|
||||
expected: FAIL
|
||||
|
||||
[sha-384 with long source data]
|
||||
expected: FAIL
|
||||
|
||||
[Sha-384 with long source data]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-384 with long source data and altered buffer after call]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-512 with long source data]
|
||||
expected: FAIL
|
||||
|
||||
[sha-512 with long source data]
|
||||
expected: FAIL
|
||||
|
||||
[Sha-512 with long source data]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-512 with long source data and altered buffer after call]
|
||||
expected: FAIL
|
||||
|
||||
[AES-GCM with empty]
|
||||
expected: FAIL
|
||||
|
||||
[RSA-OAEP with empty]
|
||||
expected: FAIL
|
||||
|
||||
[PBKDF2 with empty]
|
||||
expected: FAIL
|
||||
|
||||
[AES-KW with empty]
|
||||
expected: FAIL
|
||||
|
||||
[AES-GCM with short]
|
||||
expected: FAIL
|
||||
|
||||
[RSA-OAEP with short]
|
||||
expected: FAIL
|
||||
|
||||
[PBKDF2 with short]
|
||||
expected: FAIL
|
||||
|
||||
[AES-KW with short]
|
||||
expected: FAIL
|
||||
|
||||
[AES-GCM with medium]
|
||||
expected: FAIL
|
||||
|
||||
[RSA-OAEP with medium]
|
||||
expected: FAIL
|
||||
|
||||
[PBKDF2 with medium]
|
||||
expected: FAIL
|
||||
|
||||
[AES-KW with medium]
|
||||
expected: FAIL
|
||||
|
||||
[AES-GCM with long]
|
||||
expected: FAIL
|
||||
|
||||
[RSA-OAEP with long]
|
||||
expected: FAIL
|
||||
|
||||
[PBKDF2 with long]
|
||||
expected: FAIL
|
||||
|
||||
[AES-KW with long]
|
||||
expected: FAIL
|
||||
|
||||
|
||||
[digest.https.any.html]
|
||||
[SHA-1 with empty source data]
|
||||
expected: FAIL
|
||||
|
||||
[sha-1 with empty source data]
|
||||
expected: FAIL
|
||||
|
||||
[Sha-1 with empty source data]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-1 with empty source data and altered buffer after call]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-256 with empty source data]
|
||||
expected: FAIL
|
||||
|
||||
[sha-256 with empty source data]
|
||||
expected: FAIL
|
||||
|
||||
[Sha-256 with empty source data]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-256 with empty source data and altered buffer after call]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-384 with empty source data]
|
||||
expected: FAIL
|
||||
|
||||
[sha-384 with empty source data]
|
||||
expected: FAIL
|
||||
|
||||
[Sha-384 with empty source data]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-384 with empty source data and altered buffer after call]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-512 with empty source data]
|
||||
expected: FAIL
|
||||
|
||||
[sha-512 with empty source data]
|
||||
expected: FAIL
|
||||
|
||||
[Sha-512 with empty source data]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-512 with empty source data and altered buffer after call]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-1 with short source data]
|
||||
expected: FAIL
|
||||
|
||||
[sha-1 with short source data]
|
||||
expected: FAIL
|
||||
|
||||
[Sha-1 with short source data]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-1 with short source data and altered buffer after call]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-256 with short source data]
|
||||
expected: FAIL
|
||||
|
||||
[sha-256 with short source data]
|
||||
expected: FAIL
|
||||
|
||||
[Sha-256 with short source data]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-256 with short source data and altered buffer after call]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-384 with short source data]
|
||||
expected: FAIL
|
||||
|
||||
[sha-384 with short source data]
|
||||
expected: FAIL
|
||||
|
||||
[Sha-384 with short source data]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-384 with short source data and altered buffer after call]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-512 with short source data]
|
||||
expected: FAIL
|
||||
|
||||
[sha-512 with short source data]
|
||||
expected: FAIL
|
||||
|
||||
[Sha-512 with short source data]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-512 with short source data and altered buffer after call]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-1 with medium source data]
|
||||
expected: FAIL
|
||||
|
||||
[sha-1 with medium source data]
|
||||
expected: FAIL
|
||||
|
||||
[Sha-1 with medium source data]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-1 with medium source data and altered buffer after call]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-256 with medium source data]
|
||||
expected: FAIL
|
||||
|
||||
[sha-256 with medium source data]
|
||||
expected: FAIL
|
||||
|
||||
[Sha-256 with medium source data]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-256 with medium source data and altered buffer after call]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-384 with medium source data]
|
||||
expected: FAIL
|
||||
|
||||
[sha-384 with medium source data]
|
||||
expected: FAIL
|
||||
|
||||
[Sha-384 with medium source data]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-384 with medium source data and altered buffer after call]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-512 with medium source data]
|
||||
expected: FAIL
|
||||
|
||||
[sha-512 with medium source data]
|
||||
expected: FAIL
|
||||
|
||||
[Sha-512 with medium source data]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-512 with medium source data and altered buffer after call]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-1 with long source data]
|
||||
expected: FAIL
|
||||
|
||||
[sha-1 with long source data]
|
||||
expected: FAIL
|
||||
|
||||
[Sha-1 with long source data]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-1 with long source data and altered buffer after call]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-256 with long source data]
|
||||
expected: FAIL
|
||||
|
||||
[sha-256 with long source data]
|
||||
expected: FAIL
|
||||
|
||||
[Sha-256 with long source data]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-256 with long source data and altered buffer after call]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-384 with long source data]
|
||||
expected: FAIL
|
||||
|
||||
[sha-384 with long source data]
|
||||
expected: FAIL
|
||||
|
||||
[Sha-384 with long source data]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-384 with long source data and altered buffer after call]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-512 with long source data]
|
||||
expected: FAIL
|
||||
|
||||
[sha-512 with long source data]
|
||||
expected: FAIL
|
||||
|
||||
[Sha-512 with long source data]
|
||||
expected: FAIL
|
||||
|
||||
[SHA-512 with long source data and altered buffer after call]
|
||||
expected: FAIL
|
||||
|
||||
[AES-GCM with empty]
|
||||
expected: FAIL
|
||||
|
||||
[RSA-OAEP with empty]
|
||||
expected: FAIL
|
||||
|
||||
[PBKDF2 with empty]
|
||||
expected: FAIL
|
||||
|
||||
[AES-KW with empty]
|
||||
expected: FAIL
|
||||
|
||||
[AES-GCM with short]
|
||||
expected: FAIL
|
||||
|
||||
[RSA-OAEP with short]
|
||||
expected: FAIL
|
||||
|
||||
[PBKDF2 with short]
|
||||
expected: FAIL
|
||||
|
||||
[AES-KW with short]
|
||||
expected: FAIL
|
||||
|
||||
[AES-GCM with medium]
|
||||
expected: FAIL
|
||||
|
||||
[RSA-OAEP with medium]
|
||||
expected: FAIL
|
||||
|
||||
[PBKDF2 with medium]
|
||||
expected: FAIL
|
||||
|
||||
[AES-KW with medium]
|
||||
expected: FAIL
|
||||
|
||||
[AES-GCM with long]
|
||||
expected: FAIL
|
||||
|
||||
[RSA-OAEP with long]
|
||||
expected: FAIL
|
||||
|
||||
[PBKDF2 with long]
|
||||
expected: FAIL
|
||||
|
||||
[AES-KW with long]
|
||||
expected: FAIL
|
|
@ -5,9 +5,6 @@
|
|||
[SubtleCrypto interface: operation verify(AlgorithmIdentifier, CryptoKey, BufferSource, BufferSource)]
|
||||
expected: FAIL
|
||||
|
||||
[SubtleCrypto interface: operation digest(AlgorithmIdentifier, BufferSource)]
|
||||
expected: FAIL
|
||||
|
||||
[SubtleCrypto interface: operation deriveKey(AlgorithmIdentifier, CryptoKey, AlgorithmIdentifier, boolean, sequence<KeyUsage>)]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -32,12 +29,6 @@
|
|||
[SubtleCrypto interface: calling verify(AlgorithmIdentifier, CryptoKey, BufferSource, BufferSource) on crypto.subtle with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[SubtleCrypto interface: crypto.subtle must inherit property "digest(AlgorithmIdentifier, BufferSource)" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[SubtleCrypto interface: calling digest(AlgorithmIdentifier, BufferSource) on crypto.subtle with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[SubtleCrypto interface: crypto.subtle must inherit property "deriveKey(AlgorithmIdentifier, CryptoKey, AlgorithmIdentifier, boolean, sequence<KeyUsage>)" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -79,9 +70,6 @@
|
|||
[SubtleCrypto interface: operation verify(AlgorithmIdentifier, CryptoKey, BufferSource, BufferSource)]
|
||||
expected: FAIL
|
||||
|
||||
[SubtleCrypto interface: operation digest(AlgorithmIdentifier, BufferSource)]
|
||||
expected: FAIL
|
||||
|
||||
[SubtleCrypto interface: operation deriveKey(AlgorithmIdentifier, CryptoKey, AlgorithmIdentifier, boolean, sequence<KeyUsage>)]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -106,12 +94,6 @@
|
|||
[SubtleCrypto interface: calling verify(AlgorithmIdentifier, CryptoKey, BufferSource, BufferSource) on crypto.subtle with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[SubtleCrypto interface: crypto.subtle must inherit property "digest(AlgorithmIdentifier, BufferSource)" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[SubtleCrypto interface: calling digest(AlgorithmIdentifier, BufferSource) on crypto.subtle with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[SubtleCrypto interface: crypto.subtle must inherit property "deriveKey(AlgorithmIdentifier, CryptoKey, AlgorithmIdentifier, boolean, sequence<KeyUsage>)" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue