<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>jsSHA (http://caligatio.github.com/jsSHA/) Tests</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mocha/2.5.3/mocha.min.css" /> <style type="text/css"> body { margin: 5px } </style> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mocha/2.5.3/mocha.min.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/chai/3.5.0/chai.min.js"></script> <script type="text/javascript" src="../src/sha_dev.js"></script> <script type="text/javascript">mocha.setup('bdd')</script> <script type="text/javascript" src="test_hashes.js"></script> <script type="text/javascript" src="test_multi.js"></script> <script type="text/javascript" src="test_hmac.js"></script> </head> <body onload="mocha.run()"> <h1><a href="http://caligatio.github.com/jsSHA/">jsSHA</a> Hash Test Page</h1> <h2>Hash Tests</h2> <p> These tests implement the test vectors found on the <a href="http://csrc.nist.gov/groups/ST/toolkit/examples.html">NIST Examples</a> page. </p> <p> Note that the "Long" test involves hashing a 1,000,000 character string and can take quite a while depending on the browser and machine. </p> <h2>Custom Tests</h2> <p> Values for SHAKE tests can be generated using the included genShake.py. Similarly, values for the multiple round tests can be generated using the included getHashRounds.py. </p> <div id="mocha"></div> </body> </html>