|
[WebCrypto] Move cloneKey test to respective algorithm directory
Creates a cloneKey.js per algorithm classes (symmetric/RSA/EC), which is called by each algorithm falling in respective class.
- In symmetric-cloneKey.js, hashing and length are extra parameter which are present for HMAC and for HMAC/AES algorithm respectively. They have been handled via if case.
- In ec-cloneKey.js, EC specific return values are checked. Similarly for RSA-cloneKey.js handles RSA specific return values.
- Tests iterates for each particular algorithm depending on the extractable, key usage, algorithm parameters(i.e. hashing algorithm, named curve) and key data.
The input data is present in the test file. HMAC has 8/64/88/128 bit data test. Similar for PBKDF2 & HKDF but also includes empty bit data test.
Old files that has been updated:
- clone-aesKey.html has been split in AES-CBC and AES-GCM. There were no cloneKey tests for AES-CTR and AES-KW, they have been added.
- clone-ecKey-private/public has been split into ECDH and ECDSA. ECDH public test was missing, and has been added.
- clone-hkdf and clone-pbkdf2, has been moved to HKDF and PBKDF2 respective directories.
- clone-rsaHashedKey, holds tests only for RSASSA-PKCS1, tests has been moved to the algorithm directory.
BUG= 452269
R=eroman
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191772
Total comments: 14
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+3759 lines, -4555 lines) |
Patch |
|
M |
LayoutTests/TestExpectations
|
View
|
1
|
3 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
|
A |
LayoutTests/crypto/subtle/aes-cbc/cloneKey.html
|
View
|
1
2
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
|
A + |
LayoutTests/crypto/subtle/aes-cbc/cloneKey-expected.txt
|
View
|
2
|
2 chunks |
+1 line, -211 lines |
0 comments
|
Download
|
|
A |
LayoutTests/crypto/subtle/aes-ctr/cloneKey.html
|
View
|
1
2
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/crypto/subtle/aes-ctr/cloneKey-expected.txt
|
View
|
2
|
1 chunk |
+79 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/crypto/subtle/aes-gcm/cloneKey.html
|
View
|
1
2
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
|
A + |
LayoutTests/crypto/subtle/aes-gcm/cloneKey-expected.txt
|
View
|
2
|
2 chunks |
+1 line, -211 lines |
0 comments
|
Download
|
|
A |
LayoutTests/crypto/subtle/aes-kw/cloneKey.html
|
View
|
1
2
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/crypto/subtle/aes-kw/cloneKey-expected.txt
|
View
|
2
|
1 chunk |
+79 lines, -0 lines |
0 comments
|
Download
|
|
D |
LayoutTests/crypto/subtle/clone-aesKey.html
|
View
|
|
1 chunk |
+0 lines, -91 lines |
0 comments
|
Download
|
|
D |
LayoutTests/crypto/subtle/clone-aesKey-expected.txt
|
View
|
|
1 chunk |
+0 lines, -429 lines |
0 comments
|
Download
|
|
D |
LayoutTests/crypto/subtle/clone-ecKey-private.html
|
View
|
|
1 chunk |
+0 lines, -107 lines |
0 comments
|
Download
|
|
D |
LayoutTests/crypto/subtle/clone-ecKey-private-expected.txt
|
View
|
|
1 chunk |
+0 lines, -219 lines |
0 comments
|
Download
|
|
D |
LayoutTests/crypto/subtle/clone-ecKey-public.html
|
View
|
|
1 chunk |
+0 lines, -96 lines |
0 comments
|
Download
|
|
D |
LayoutTests/crypto/subtle/clone-ecKey-public-expected.txt
|
View
|
|
1 chunk |
+0 lines, -219 lines |
0 comments
|
Download
|
|
D |
LayoutTests/crypto/subtle/clone-hkdfKey.html
|
View
|
|
1 chunk |
+0 lines, -84 lines |
0 comments
|
Download
|
|
D |
LayoutTests/crypto/subtle/clone-hkdfKey-expected.txt
|
View
|
|
1 chunk |
+0 lines, -279 lines |
0 comments
|
Download
|
|
D |
LayoutTests/crypto/subtle/clone-hmacKey.html
|
View
|
|
1 chunk |
+0 lines, -96 lines |
0 comments
|
Download
|
|
D |
LayoutTests/crypto/subtle/clone-hmacKey-empty.html
|
View
|
|
1 chunk |
+0 lines, -34 lines |
0 comments
|
Download
|
|
D |
LayoutTests/crypto/subtle/clone-hmacKey-empty-expected.txt
|
View
|
|
1 chunk |
+0 lines, -16 lines |
0 comments
|
Download
|
|
D |
LayoutTests/crypto/subtle/clone-hmacKey-expected.txt
|
View
|
|
1 chunk |
+0 lines, -711 lines |
0 comments
|
Download
|
|
D |
LayoutTests/crypto/subtle/clone-pbkdf2Key.html
|
View
|
|
1 chunk |
+0 lines, -85 lines |
0 comments
|
Download
|
|
D |
LayoutTests/crypto/subtle/clone-pbkdf2Key-expected.txt
|
View
|
|
1 chunk |
+0 lines, -414 lines |
0 comments
|
Download
|
|
D |
LayoutTests/crypto/subtle/clone-rsaHashedKey-private.html
|
View
|
|
1 chunk |
+0 lines, -100 lines |
0 comments
|
Download
|
|
D |
LayoutTests/crypto/subtle/clone-rsaHashedKey-private-expected.txt
|
View
|
|
1 chunk |
+0 lines, -267 lines |
0 comments
|
Download
|
|
D |
LayoutTests/crypto/subtle/clone-rsaHashedKey-public.html
|
View
|
|
1 chunk |
+0 lines, -100 lines |
0 comments
|
Download
|
|
D |
LayoutTests/crypto/subtle/clone-rsaHashedKey-public-expected.txt
|
View
|
|
1 chunk |
+0 lines, -525 lines |
0 comments
|
Download
|
|
A |
LayoutTests/crypto/subtle/ecdh/cloneKey.html
|
View
|
1
2
|
1 chunk |
+27 lines, -0 lines |
0 comments
|
Download
|
|
A + |
LayoutTests/crypto/subtle/ecdh/cloneKey-expected.txt
|
View
|
1
2
|
4 chunks |
+76 lines, -76 lines |
0 comments
|
Download
|
|
A |
LayoutTests/crypto/subtle/ecdsa/cloneKey.html
|
View
|
1
2
|
1 chunk |
+27 lines, -0 lines |
0 comments
|
Download
|
|
A + |
LayoutTests/crypto/subtle/ecdsa/cloneKey-expected.txt
|
View
|
1
2
|
12 chunks |
+147 lines, -42 lines |
0 comments
|
Download
|
|
A |
LayoutTests/crypto/subtle/hkdf/cloneKey.html
|
View
|
1
2
3
|
1 chunk |
+30 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/crypto/subtle/hkdf/cloneKey-expected.txt
|
View
|
1
2
|
1 chunk |
+684 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/crypto/subtle/hmac/cloneKey.html
|
View
|
1
2
|
1 chunk |
+29 lines, -0 lines |
0 comments
|
Download
|
|
A + |
LayoutTests/crypto/subtle/hmac/cloneKey-empty.html
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
A + |
LayoutTests/crypto/subtle/hmac/cloneKey-empty-expected.txt
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
|
A |
LayoutTests/crypto/subtle/hmac/cloneKey-expected.txt
|
View
|
1
2
|
1 chunk |
+1413 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/crypto/subtle/pbkdf2/cloneKey.html
|
View
|
1
2
3
|
1 chunk |
+30 lines, -0 lines |
0 comments
|
Download
|
|
A + |
LayoutTests/crypto/subtle/pbkdf2/cloneKey-expected.txt
|
View
|
1
2
|
10 chunks |
+270 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/crypto/subtle/resources/ec-cloneKey.js
|
View
|
1
2
|
1 chunk |
+110 lines, -0 lines |
0 comments
|
Download
|
|
A + |
LayoutTests/crypto/subtle/resources/rsa-cloneKey.js
|
View
|
1
2
|
3 chunks |
+32 lines, -51 lines |
0 comments
|
Download
|
|
A + |
LayoutTests/crypto/subtle/resources/symmetric-cloneKey.js
|
View
|
1
2
3
|
4 chunks |
+27 lines, -44 lines |
0 comments
|
Download
|
|
A |
LayoutTests/crypto/subtle/rsassa-pkcs1-v1_5/cloneKey.html
|
View
|
1
2
|
1 chunk |
+28 lines, -0 lines |
0 comments
|
Download
|
|
A + |
LayoutTests/crypto/subtle/rsassa-pkcs1-v1_5/cloneKey-expected.txt
|
View
|
1
2
|
11 chunks |
+558 lines, -42 lines |
0 comments
|
Download
|
Total messages: 15 (3 generated)
|