Skip to content

Commit cc76732

Browse files
committed
fixup! crypto: improve accuracy of SubtleCrypto.supports
1 parent 5710d4e commit cc76732

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

test/fixtures/webcrypto/supports-level-2.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,18 @@ export const vectors = {
121121
[false,
122122
{ name: 'ECDH', public: ECDH.publicKey },
123123
{ name: 'HMAC', hash: 'SHA-256' }],
124+
[false,
125+
{ name: 'ECDH', public: ECDH.publicKey },
126+
{ name: 'HMAC', hash: 'SHA-256', length: 255 }],
124127
[true,
125128
{ name: 'ECDH', public: ECDH.publicKey },
126129
{ name: 'HMAC', hash: 'SHA-256', length: 256 }],
127130
[false,
128131
{ name: 'ECDH', public: ECDH.publicKey },
129132
{ name: 'HMAC', hash: 'SHA-256', length: 257 }],
133+
[false,
134+
{ name: 'ECDH', public: ECDH.publicKey },
135+
{ name: 'HMAC', hash: 'SHA-256', length: 264 }],
130136
[true,
131137
{ name: 'ECDH', public: ECDH.publicKey },
132138
'HKDF'],
@@ -159,6 +165,8 @@ export const vectors = {
159165
{ name: 'ECDH', public: ECDH.publicKey }, 256],
160166
[false,
161167
{ name: 'ECDH', public: ECDH.publicKey }, 257],
168+
[false,
169+
{ name: 'ECDH', public: ECDH.publicKey }, 264],
162170
[false, { name: 'ECDH', public: ECDH.privateKey }],
163171
[false, 'ECDH'],
164172

0 commit comments

Comments
 (0)