subtlecrypto: Replace NormalizedAlgorithm with specialized variants (#34193)

* Implement specialized normalize_algorithm for "get key length" operation

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Implement specialized normalize_algorithm for "digest"

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Implement specialized normalize_algorithm for "importKey"

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Implement specialized normalize_algorithm for "deriveBits"

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Implement specialized normalize_algorithm for "decrypt"

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Implement specialized normalize_algorithm for "generateKey"

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Implement specialized normalize_algorithm for "encrypt"

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Remove normalize_algorithm

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Update WPT expectations

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Replace obj.get_unsafe() with obj.get()

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Replace BitwiseOr with LogicalOr (typo)

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Update more WPT expectations outside of WebCryptoAPI

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:
Simon Wülker 2024-11-09 17:43:47 +01:00 committed by GitHub
parent da462d0fcd
commit 67ac59b809
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 393 additions and 9331 deletions

File diff suppressed because it is too large Load diff

View file

@ -2,17 +2,11 @@
expected: ERROR
[big-br-body.https.any.html]
[large br data should be decompressed successfully]
expected: FAIL
[large br data should be decompressed successfully with byte stream]
expected: FAIL
[big-br-body.https.any.worker.html]
[large br data should be decompressed successfully]
expected: FAIL
[large br data should be decompressed successfully with byte stream]
expected: FAIL

View file

@ -2,17 +2,11 @@
expected: ERROR
[big-gzip-body.https.any.worker.html]
[large gzip data should be decompressed successfully]
expected: FAIL
[large gzip data should be decompressed successfully with byte stream]
expected: FAIL
[big-gzip-body.https.any.html]
[large gzip data should be decompressed successfully]
expected: FAIL
[large gzip data should be decompressed successfully with byte stream]
expected: FAIL