@@ -19,24 +19,26 @@ export const vectors = {
19
19
[ ! boringSSL , 'SHA3-512' ] ,
20
20
] ,
21
21
'generateKey' : [
22
- [ ! boringSSL , { name : 'HMAC' , hash : 'SHA3-256' } ] ,
23
22
[ ! boringSSL , { name : 'HMAC' , hash : 'SHA3-256' , length : 256 } ] ,
24
23
[ false , { name : 'HMAC' , hash : 'SHA3-256' , length : 25 } ] ,
25
24
[ ! boringSSL , { name : 'RSASSA-PKCS1-v1_5' , hash : 'SHA3-256' , ...RSA_KEY_GEN } ] ,
26
25
[ ! boringSSL , { name : 'RSA-PSS' , hash : 'SHA3-256' , ...RSA_KEY_GEN } ] ,
27
26
[ ! boringSSL , { name : 'RSA-OAEP' , hash : 'SHA3-256' , ...RSA_KEY_GEN } ] ,
28
- [ ! boringSSL , { name : 'HMAC' , hash : 'SHA3-256' } ] ,
29
27
[ ! boringSSL , { name : 'HMAC' , hash : 'SHA3-256' , length : 256 } ] ,
30
28
[ false , { name : 'HMAC' , hash : 'SHA3-256' , length : 25 } ] ,
31
29
[ false , { name : 'HMAC' , hash : 'SHA3-256' , length : 0 } ] ,
30
+
31
+ // This interaction is not defined for now.
32
+ // https://github.com/WICG/webcrypto-modern-algos/issues/23
33
+ [ false , { name : 'HMAC' , hash : 'SHA3-256' } ] ,
32
34
] ,
33
35
'deriveKey' : [
34
36
[ ! boringSSL ,
35
37
{ name : 'HKDF' , hash : 'SHA3-256' , salt : Buffer . alloc ( 0 ) , info : Buffer . alloc ( 0 ) } ,
36
38
{ name : 'AES-CBC' , length : 128 } ] ,
37
39
[ ! boringSSL ,
38
40
{ name : 'HKDF' , hash : 'SHA3-256' , salt : Buffer . alloc ( 0 ) , info : Buffer . alloc ( 0 ) } ,
39
- { name : 'HMAC' , hash : 'SHA3-256' } ] ,
41
+ { name : 'HMAC' , hash : 'SHA3-256' , length : 256 } ] ,
40
42
[ false ,
41
43
{ name : 'HKDF' , hash : 'SHA3-256' , salt : Buffer . alloc ( 0 ) , info : Buffer . alloc ( 0 ) } ,
42
44
'HKDF' ] ,
@@ -45,14 +47,29 @@ export const vectors = {
45
47
{ name : 'AES-CBC' , length : 128 } ] ,
46
48
[ ! boringSSL ,
47
49
{ name : 'PBKDF2' , hash : 'SHA3-256' , salt : Buffer . alloc ( 0 ) , iterations : 1 } ,
48
- { name : 'HMAC' , hash : 'SHA3-256' } ] ,
50
+ { name : 'HMAC' , hash : 'SHA3-256' , length : 256 } ] ,
49
51
[ false ,
50
52
{ name : 'PBKDF2' , hash : 'SHA3-256' , salt : Buffer . alloc ( 0 ) , iterations : 1 } ,
51
53
'HKDF' ] ,
52
54
[ ! boringSSL ,
53
55
{ name : 'X25519' , public : X25519 . publicKey } ,
54
- { name : 'HMAC' , hash : 'SHA3-256' } ] ,
56
+ { name : 'HMAC' , hash : 'SHA3-256' , length : 256 } ] ,
55
57
[ ! boringSSL ,
58
+ { name : 'ECDH' , public : ECDH . publicKey } ,
59
+ { name : 'HMAC' , hash : 'SHA3-256' , length : 256 } ] ,
60
+
61
+ // This interaction is not defined for now.
62
+ // https://github.com/WICG/webcrypto-modern-algos/issues/23
63
+ [ false ,
64
+ { name : 'HKDF' , hash : 'SHA3-256' , salt : Buffer . alloc ( 0 ) , info : Buffer . alloc ( 0 ) } ,
65
+ { name : 'HMAC' , hash : 'SHA3-256' } ] ,
66
+ [ false ,
67
+ { name : 'PBKDF2' , hash : 'SHA3-256' , salt : Buffer . alloc ( 0 ) , iterations : 1 } ,
68
+ { name : 'HMAC' , hash : 'SHA3-256' } ] ,
69
+ [ false ,
70
+ { name : 'X25519' , public : X25519 . publicKey } ,
71
+ { name : 'HMAC' , hash : 'SHA3-256' } ] ,
72
+ [ false ,
56
73
{ name : 'ECDH' , public : ECDH . publicKey } ,
57
74
{ name : 'HMAC' , hash : 'SHA3-256' } ] ,
58
75
] ,
0 commit comments