return importKeyExcludingUsage("encrypt").then(function(key) {
return crypto.subtle.encrypt({name: 'AES-CBC', iv: iv}, key, data);
}).then(failAndFinishJSTest, function(result) {
- error = result;
- shouldBeNull("error");
+ logError(result);
});
}
return importKeyExcludingUsage("decrypt").then(function(key) {
return crypto.subtle.decrypt({name: 'AES-CBC', iv: iv}, key, data);
}).then(failAndFinishJSTest, function(result) {
- error = result;
- shouldBeNull("error");
+ logError(result);
});
}