blob: 77d74907355c78e7d30363aab6eb137d18976071 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
<script src="../resources/common.js"></script>
</head>
<body>
<p id="description"></p>
<div id="console"></div>
<script>
description("Test digest with SHA-224");
jsTestIsAsync = true;
var message = asciiToUint8Array("Hello, World!");
var expectedDigest = "72a23dfa411ba6fde01dbfabf3b00a709c93ebf273dc29e2d8b261ff";
crypto.subtle.digest("sha-224", message).then(function(result){
digest = result;
shouldBe("bytesToHexString(digest)", "expectedDigest");
finishJSTest();
});
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>