| Index: LayoutTests/crypto/sign-verify-expected.txt
|
| diff --git a/LayoutTests/crypto/sign-verify-expected.txt b/LayoutTests/crypto/sign-verify-expected.txt
|
| index adf41401069ef9941951433b53217c56c82cedb2..a9bd2f278ecf8c35079fd7dde34e8fc5b8d30fab 100644
|
| --- a/LayoutTests/crypto/sign-verify-expected.txt
|
| +++ b/LayoutTests/crypto/sign-verify-expected.txt
|
| @@ -1,3 +1,10 @@
|
| +CONSOLE ERROR: key.algorithm does not match that of operation (HMAC's hash differs)
|
| +CONSOLE ERROR: Algorithm: HMAC: HmacParams: hash: Missing or not a dictionary
|
| +CONSOLE ERROR: Algorithm: HMAC: HmacParams: hash: Algorithm: Not an object
|
| +CONSOLE ERROR: Algorithm: HMAC: HmacParams: hash: Algorithm: Not an object
|
| +CONSOLE ERROR: Algorithm: HMAC: HmacParams: hash: Algorithm: name: Missing or not a string
|
| +CONSOLE ERROR: Algorithm: HMAC: HmacParams: hash: Algorithm: Unrecognized algorithm name
|
| +CONSOLE ERROR: Algorithm: HMAC: HmacParams: hash: Algorithm: AES-CBC: Unsupported operation
|
| Tests cypto.subtle.sign and crypto.subtle.verify
|
|
|
| On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
|
| @@ -56,13 +63,13 @@ PASS crypto.subtle.verify(hmacSha1, keys.hmacSha1, 'a', data) threw exception Ty
|
| PASS crypto.subtle.verify(hmacSha1, keys.hmacSha1, [], data) threw exception TypeError: Failed to execute 'verify' on 'SubtleCrypto': Invalid signature argument.
|
| PASS crypto.subtle.sign({name: 'sha-1'}, keys.hmacSha1, data) threw exception NotSupportedError: Failed to execute 'sign' on 'SubtleCrypto': Algorithm: SHA-1: Unsupported operation.
|
| PASS crypto.subtle.sign({name: 'RSAES-PKCS1-v1_5'}, keys.hmacSha1, data) threw exception NotSupportedError: Failed to execute 'sign' on 'SubtleCrypto': Algorithm: RSAES-PKCS1-v1_5: Unsupported operation.
|
| -PASS crypto.subtle.sign({name: 'hmac', hash: {name: 'sha-256'}}, keys.hmacSha1, data) threw exception NotSupportedError: Failed to execute 'sign' on 'SubtleCrypto': key.algorithm does not match that of operation (HMAC's hash differs).
|
| -PASS crypto.subtle.sign({name: 'hmac'}, keys.hmacSha1, data) threw exception TypeError: Failed to execute 'sign' on 'SubtleCrypto': Algorithm: HMAC: HmacParams: hash: Missing or not a dictionary.
|
| -PASS crypto.subtle.sign({name: 'hmac', hash: 3}, keys.hmacSha1, data) threw exception TypeError: Failed to execute 'sign' on 'SubtleCrypto': Algorithm: HMAC: HmacParams: hash: Algorithm: Not an object.
|
| -PASS crypto.subtle.sign({name: 'hmac', hash: null}, keys.hmacSha1, data) threw exception TypeError: Failed to execute 'sign' on 'SubtleCrypto': Algorithm: HMAC: HmacParams: hash: Algorithm: Not an object.
|
| -PASS crypto.subtle.sign({name: 'hmac', hash: {}}, keys.hmacSha1, data) threw exception TypeError: Failed to execute 'sign' on 'SubtleCrypto': Algorithm: HMAC: HmacParams: hash: Algorithm: name: Missing or not a string.
|
| -PASS crypto.subtle.sign({name: 'hmac', hash: {name: 'foo'}}, keys.hmacSha1, data) threw exception NotSupportedError: Failed to execute 'sign' on 'SubtleCrypto': Algorithm: HMAC: HmacParams: hash: Algorithm: Unrecognized algorithm name.
|
| -PASS crypto.subtle.sign({name: 'hmac', hash: {name: 'AES-CBC'}}, keys.hmacSha1, data) threw exception NotSupportedError: Failed to execute 'sign' on 'SubtleCrypto': Algorithm: HMAC: HmacParams: hash: Algorithm: AES-CBC: Unsupported operation.
|
| +PASS: 'crypto.subtle.sign({name: 'hmac', hash: {name: 'sha-256'}}, keys.hmacSha1, data)' rejected with null
|
| +PASS: 'crypto.subtle.sign({name: 'hmac'}, keys.hmacSha1, data)' rejected with null
|
| +PASS: 'crypto.subtle.sign({name: 'hmac', hash: 3}, keys.hmacSha1, data)' rejected with null
|
| +PASS: 'crypto.subtle.sign({name: 'hmac', hash: null}, keys.hmacSha1, data)' rejected with null
|
| +PASS: 'crypto.subtle.sign({name: 'hmac', hash: {}}, keys.hmacSha1, data)' rejected with null
|
| +PASS: 'crypto.subtle.sign({name: 'hmac', hash: {name: 'foo'}}, keys.hmacSha1, data)' rejected with null
|
| +PASS: 'crypto.subtle.sign({name: 'hmac', hash: {name: 'AES-CBC'}}, keys.hmacSha1, data)' rejected with null
|
| PASS successfullyParsed is true
|
|
|
| TEST COMPLETE
|
|
|