| Index: LayoutTests/crypto/subtle/hkdf-deriveBits-failures-expected.txt
|
| diff --git a/LayoutTests/crypto/subtle/hkdf-deriveBits-failures-expected.txt b/LayoutTests/crypto/subtle/hkdf-deriveBits-failures-expected.txt
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f9d62ce7800423960611d79016420cd144d2ace5
|
| --- /dev/null
|
| +++ b/LayoutTests/crypto/subtle/hkdf-deriveBits-failures-expected.txt
|
| @@ -0,0 +1,23 @@
|
| +Test bad inputs to HKDF deriveBits()
|
| +
|
| +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
|
| +
|
| +
|
| +
|
| +deriveBits() with an unsupported hash...
|
| +error is: NotSupportedError: HkdfParams: hash: HMAC: Unsupported operation: digest
|
| +
|
| +deriveBits() with a key that doesn't match the algorithm...
|
| +error is: InvalidAccessError: key.algorithm does not match that of operation
|
| +
|
| +deriveBits() with requested length too long...
|
| +error is: OperationError: The length provided for HKDF is too large.
|
| +PASS derivedKey.type is "secret"
|
| +PASS typeof derivedKey.extractable is 'boolean'
|
| +PASS derivedKey.extractable is true
|
| +PASS derivedKey.algorithm.name is "AES-GCM"
|
| +PASS derivedKey.usages.join(',') is "encrypt"
|
| +PASS successfullyParsed is true
|
| +
|
| +TEST COMPLETE
|
| +
|
|
|