GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [WebCrypto] Fix supports() for exportKey and wrapKey · web-platform-tests/wpt@3127c3a

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • WebCryptoAPI
    • supports.tentative.https.any.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎WebCryptoAPI/supports.tentative.https.any.js‎

Copy file name to clipboardExpand all lines: WebCryptoAPI/supports.tentative.https.any.js
+19Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,25 @@ promise_test(async (t) => {
728728
'deriveKey X25519-HMAC-SHA-256 should fail');
729729
}, 'deriveKey promise tests');
730730

731+
// Test supports for exportKey op
732+
test(() => {
733+
assert_true(SubtleCrypto.supports('exportKey', 'AES-GCM'),
734+
'exportKey AES-GCM should pass');
735+
assert_false(SubtleCrypto.supports('exportKey', 'HKDF'),
736+
'exportKey HKDF should fail');
737+
assert_false(SubtleCrypto.supports('exportKey', 'PBKDF2'),
738+
'exportKey PBKDF2 should fail');
739+
}, 'exportKey tests');
740+
741+
// Test supports for wrapKey op
742+
test(() => {
743+
assert_true(SubtleCrypto.supports('wrapKey', 'AES-KW', 'AES-GCM'),
744+
'wrapKey AES-KW-AES-GCM should pass');
745+
assert_false(SubtleCrypto.supports('wrapKey', 'AES-KW', 'HKDF'),
746+
'wrapKey AES-KW-HKDF should fail');
747+
assert_false(SubtleCrypto.supports('wrapKey', 'AES-KW', 'PBKDF2'),
748+
'wrapKey AES-KW-PBKDF2 should fail');
749+
}, 'wrapKey tests');
731750

732751

733752
done();

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.