/** * Test SHA-1 implementation. */ private static void testSHA1() { Digest dig = new SHA1(); testKat(dig, "abc", "a9993e364706816aba3e25717850c26c9cd0d89d"); testKat(dig, "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlm" + "nomnopnopq", "84983e441c3bd26ebaae4aa1f95129e5e54670f1"); testKatMillionA(dig, "34aa973cd4c4daa4f61eeb2bdbad27316534016f"); reportSuccess("SHA-1"); }
@Test public void testSHA1() { Digest dig = new SHA1(); testKat(dig, "abc", "a9993e364706816aba3e25717850c26c9cd0d89d"); testKat(dig, "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlm" + "nomnopnopq", "84983e441c3bd26ebaae4aa1f95129e5e54670f1"); testKatMillionA(dig, "34aa973cd4c4daa4f61eeb2bdbad27316534016f"); reportSuccess("SHA-1"); }