Automatic update from web-platform-tests [WebCryptoAPI] Improve test coverage and reduce duplication (#61397) * [WebCryptoAPI] Fix byte utility assertions * [WebCryptoAPI] Check CryptoKey usages exactly * [WebCryptoAPI] Await ML-KEM key exports * [WebCryptoAPI] Verify generated EdDSA signatures * [WebCryptoAPI] Check complete derived keys * [WebCryptoAPI] Scope ECDH test state locally * [WebCryptoAPI] Scope CFRG test state locally * [WebCryptoAPI] Test all invalid key usages * [WebCryptoAPI] Simplify resolved vector promises * [WebCryptoAPI] Preserve vector setup rejections * [WebCryptoAPI] Restore key test timeouts * [WebCryptoAPI] Clarify EdDSA input snapshot tests * [WebCryptoAPI] Modernize simple JavaScript idioms * [WebCryptoAPI] Share ML key import tests * [WebCryptoAPI] Share generateKey algorithm data * [WebCryptoAPI] Replace stale generateKey generator * [WebCryptoAPI] Share RSA key fixtures * [WebCryptoAPI] Share ML-DSA key fixtures * [WebCryptoAPI] Share AES test fixtures * [WebCryptoAPI] Share supports test runner * [WebCryptoAPI] Share XOF digest test runner * [WebCryptoAPI] Encode buffer views as raw bytes * [WebCryptoAPI] Check CryptoKey algorithm members * [WebCryptoAPI] Share ECDH test fixtures * [WebCryptoAPI] Share MAC sign and verify tests * [WebCryptoAPI] Share KDF derivation tests * [WebCryptoAPI] Share EC and OKP key fixtures * [WebCryptoAPI] Share ECDH derivation tests * [WebCryptoAPI] Share digest tests and source data * [WebCryptoAPI] Share asymmetric signature tests -- wpt-commits: 82c3d9069cf2e93e5528a1f428fa122bd9af651d wpt-pr: 61397
18 lines
715 B
JavaScript
18 lines
715 B
JavaScript
// META: title=WebCryptoAPI: deriveBits() and deriveKey() Using HKDF
|
|
// META: variant=?1-1000
|
|
// META: variant=?1001-2000
|
|
// META: variant=?2001-3000
|
|
// META: variant=?3001-last
|
|
// META: script=../util/helpers.js
|
|
// META: script=/common/subset-tests.js
|
|
// META: script=hkdf_vectors.js
|
|
// META: script=kdf.js
|
|
// META: script=hkdf.js
|
|
|
|
// Define subtests from a `promise_test` to ensure the harness does not
|
|
// complete before the subtests are available. `explicit_done` cannot be used
|
|
// for this purpose because the global `done` function is automatically invoked
|
|
// by the WPT infrastructure in dedicated worker tests defined using the
|
|
// "multi-global" pattern.
|
|
promise_test(define_tests, 'setup - define tests');
|