Implement HMAC key generation (#34278)

* Implement HMAC key generation

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:
Simon Wülker 2024-11-18 18:28:24 +01:00 committed by GitHub
parent 11dfbd6f90
commit 2485bd9a63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 263 additions and 1874 deletions

View file

@ -1,76 +1,4 @@
[ecdsa.https.any.worker.html]
[generate wrong key step: ECDSA P-256 with SHA-1 signing with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-256 with SHA-256 signing with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-256 with SHA-384 signing with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-256 with SHA-512 signing with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-384 with SHA-1 signing with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-384 with SHA-256 signing with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-384 with SHA-384 signing with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-384 with SHA-512 signing with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-521 with SHA-1 signing with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-521 with SHA-256 signing with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-521 with SHA-384 signing with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-521 with SHA-512 signing with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-256 with SHA-1 verifying with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-256 with SHA-256 verifying with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-256 with SHA-384 verifying with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-256 with SHA-512 verifying with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-384 with SHA-1 verifying with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-384 with SHA-256 verifying with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-384 with SHA-384 verifying with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-384 with SHA-512 verifying with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-521 with SHA-1 verifying with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-521 with SHA-256 verifying with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-521 with SHA-384 verifying with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-521 with SHA-512 verifying with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-256 with SHA-1 verification]
expected: FAIL
@ -755,80 +683,80 @@
[importVectorKeys step: ECDSA P-521 with SHA-512 - The signature is all zeroes verification]
expected: FAIL
[importVectorKeys step: ECDSA P-256 with SHA-1 signing with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-256 with SHA-256 signing with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-256 with SHA-384 signing with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-256 with SHA-512 signing with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-384 with SHA-1 signing with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-384 with SHA-256 signing with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-384 with SHA-384 signing with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-384 with SHA-512 signing with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-521 with SHA-1 signing with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-521 with SHA-256 signing with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-521 with SHA-384 signing with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-521 with SHA-512 signing with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-256 with SHA-1 verifying with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-256 with SHA-256 verifying with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-256 with SHA-384 verifying with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-256 with SHA-512 verifying with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-384 with SHA-1 verifying with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-384 with SHA-256 verifying with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-384 with SHA-384 verifying with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-384 with SHA-512 verifying with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-521 with SHA-1 verifying with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-521 with SHA-256 verifying with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-521 with SHA-384 verifying with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-521 with SHA-512 verifying with wrong algorithm name]
expected: FAIL
[ecdsa.https.any.html]
[generate wrong key step: ECDSA P-256 with SHA-1 signing with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-256 with SHA-256 signing with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-256 with SHA-384 signing with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-256 with SHA-512 signing with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-384 with SHA-1 signing with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-384 with SHA-256 signing with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-384 with SHA-384 signing with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-384 with SHA-512 signing with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-521 with SHA-1 signing with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-521 with SHA-256 signing with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-521 with SHA-384 signing with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-521 with SHA-512 signing with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-256 with SHA-1 verifying with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-256 with SHA-256 verifying with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-256 with SHA-384 verifying with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-256 with SHA-512 verifying with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-384 with SHA-1 verifying with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-384 with SHA-256 verifying with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-384 with SHA-384 verifying with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-384 with SHA-512 verifying with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-521 with SHA-1 verifying with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-521 with SHA-256 verifying with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-521 with SHA-384 verifying with wrong algorithm name]
expected: FAIL
[generate wrong key step: ECDSA P-521 with SHA-512 verifying with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-256 with SHA-1 verification]
expected: FAIL
@ -1512,3 +1440,75 @@
[importVectorKeys step: ECDSA P-521 with SHA-512 - The signature is all zeroes verification]
expected: FAIL
[importVectorKeys step: ECDSA P-256 with SHA-1 signing with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-256 with SHA-256 signing with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-256 with SHA-384 signing with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-256 with SHA-512 signing with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-384 with SHA-1 signing with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-384 with SHA-256 signing with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-384 with SHA-384 signing with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-384 with SHA-512 signing with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-521 with SHA-1 signing with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-521 with SHA-256 signing with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-521 with SHA-384 signing with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-521 with SHA-512 signing with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-256 with SHA-1 verifying with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-256 with SHA-256 verifying with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-256 with SHA-384 verifying with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-256 with SHA-512 verifying with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-384 with SHA-1 verifying with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-384 with SHA-256 verifying with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-384 with SHA-384 verifying with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-384 with SHA-512 verifying with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-521 with SHA-1 verifying with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-521 with SHA-256 verifying with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-521 with SHA-384 verifying with wrong algorithm name]
expected: FAIL
[importVectorKeys step: ECDSA P-521 with SHA-512 verifying with wrong algorithm name]
expected: FAIL