OLD | NEW |
| (Empty) |
1 Tests bad algorithm inputs for AES-GCM | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 | |
7 Importing AES-GCM key... | |
8 | |
9 encrypt() without iv... | |
10 error is: TypeError: AesGcmParams: iv: Missing required property | |
11 | |
12 encrypt() with iv that is a number... | |
13 error is: TypeError: AesGcmParams: iv: Not a BufferSource | |
14 | |
15 encrypt() with iv that is a string... | |
16 error is: TypeError: AesGcmParams: iv: Not a BufferSource | |
17 | |
18 encrypt() with additionalData that is a string... | |
19 error is: TypeError: AesGcmParams: additionalData: Not a BufferSource | |
20 | |
21 encrypt() with tagLength that is a string... | |
22 error is: TypeError: AesGcmParams: tagLength: Is not a number | |
23 | |
24 encrypt() with negative tagLength... | |
25 error is: TypeError: AesGcmParams: tagLength: Outside of numeric range | |
26 | |
27 encrypt() with tagLength larger than an octet... | |
28 error is: TypeError: AesGcmParams: tagLength: Outside of numeric range | |
29 | |
30 encrypt() with tagLength that is 0... | |
31 error is: OperationError: The tag length is invalid: Must be 32, 64, 96, 104, 11
2, 120, or 128 bits | |
32 | |
33 encrypt() with tagLength that is 130... | |
34 error is: OperationError: The tag length is invalid: Must be 32, 64, 96, 104, 11
2, 120, or 128 bits | |
35 PASS successfullyParsed is true | |
36 | |
37 TEST COMPLETE | |
38 | |
OLD | NEW |