Java 类fr.cryptohash.SHA1 实例源码

项目:burstcoin    文件:TestDigest.java   
/**
 * 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");
}
项目:risecoin    文件:TestDigest.java   
/**
 * 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");
}
项目:digibytej-alice    文件:TestDigest.java   
/**
 * 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");
}
项目:cannabiscoinj    文件:TestDigest.java   
/**
 * 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");
}
项目:quarkcoinj    文件:TestDigest.java   
/**
 * 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");
}
项目:animecoinj    文件:TestDigest.java   
/**
 * 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");
}
项目:myriadcoinj    文件:TestDigest.java   
/**
 * 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");
}
项目:dashj    文件:TestDigest.java   
/**
 * 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");
}
项目:sphlib    文件:SHA1Test.java   
@Test
public void testSHA1() {
    Digest dig = new SHA1();
    testKat(dig, "abc", "a9993e364706816aba3e25717850c26c9cd0d89d");
    testKat(dig, "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlm"
            + "nomnopnopq",
            "84983e441c3bd26ebaae4aa1f95129e5e54670f1");

    testKatMillionA(dig,
            "34aa973cd4c4daa4f61eeb2bdbad27316534016f");

    reportSuccess("SHA-1");
}