Java 类fr.cryptohash.SHA256 实例源码

项目:burstcoin    文件:TestDigest.java   
/**
 * Test SHA-256 implementation.
 */
private static void testSHA256()
{
    Digest dig = new SHA256();
    testKat(dig, "abc",
   "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad");
    testKat(dig, "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlm"
        + "nomnopnopq",
   "248d6a61d20638b8e5c026930c3e6039a33ce45964ff2167f6ecedd419db06c1");

    testKatMillionA(dig,
   "cdc76e5c9914fb9281a1c7e284d73e67f1809a48a497200e046d39ccc7112cd0");

    reportSuccess("SHA-256");
}
项目:risecoin    文件:TestDigest.java   
/**
 * Test SHA-256 implementation.
 */
private static void testSHA256()
{
    Digest dig = new SHA256();
    testKat(dig, "abc",
   "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad");
    testKat(dig, "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlm"
        + "nomnopnopq",
   "248d6a61d20638b8e5c026930c3e6039a33ce45964ff2167f6ecedd419db06c1");

    testKatMillionA(dig,
   "cdc76e5c9914fb9281a1c7e284d73e67f1809a48a497200e046d39ccc7112cd0");

    reportSuccess("SHA-256");
}
项目:digibytej-alice    文件:TestDigest.java   
/**
 * Test SHA-256 implementation.
 */
private static void testSHA256()
{
    Digest dig = new SHA256();
    testKat(dig, "abc",
   "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad");
    testKat(dig, "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlm"
        + "nomnopnopq",
   "248d6a61d20638b8e5c026930c3e6039a33ce45964ff2167f6ecedd419db06c1");

    testKatMillionA(dig,
   "cdc76e5c9914fb9281a1c7e284d73e67f1809a48a497200e046d39ccc7112cd0");

    reportSuccess("SHA-256");
}
项目:cannabiscoinj    文件:TestDigest.java   
/**
 * Test SHA-256 implementation.
 */
private static void testSHA256()
{
    Digest dig = new SHA256();
    testKat(dig, "abc",
   "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad");
    testKat(dig, "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlm"
        + "nomnopnopq",
   "248d6a61d20638b8e5c026930c3e6039a33ce45964ff2167f6ecedd419db06c1");

    testKatMillionA(dig,
   "cdc76e5c9914fb9281a1c7e284d73e67f1809a48a497200e046d39ccc7112cd0");

    reportSuccess("SHA-256");
}
项目:quarkcoinj    文件:TestDigest.java   
/**
 * Test SHA-256 implementation.
 */
private static void testSHA256()
{
    Digest dig = new SHA256();
    testKat(dig, "abc",
   "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad");
    testKat(dig, "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlm"
        + "nomnopnopq",
   "248d6a61d20638b8e5c026930c3e6039a33ce45964ff2167f6ecedd419db06c1");

    testKatMillionA(dig,
   "cdc76e5c9914fb9281a1c7e284d73e67f1809a48a497200e046d39ccc7112cd0");

    reportSuccess("SHA-256");
}
项目:animecoinj    文件:TestDigest.java   
/**
 * Test SHA-256 implementation.
 */
private static void testSHA256()
{
    Digest dig = new SHA256();
    testKat(dig, "abc",
   "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad");
    testKat(dig, "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlm"
        + "nomnopnopq",
   "248d6a61d20638b8e5c026930c3e6039a33ce45964ff2167f6ecedd419db06c1");

    testKatMillionA(dig,
   "cdc76e5c9914fb9281a1c7e284d73e67f1809a48a497200e046d39ccc7112cd0");

    reportSuccess("SHA-256");
}
项目:myriadcoinj    文件:TestDigest.java   
/**
 * Test SHA-256 implementation.
 */
private static void testSHA256()
{
    Digest dig = new SHA256();
    testKat(dig, "abc",
   "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad");
    testKat(dig, "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlm"
        + "nomnopnopq",
   "248d6a61d20638b8e5c026930c3e6039a33ce45964ff2167f6ecedd419db06c1");

    testKatMillionA(dig,
   "cdc76e5c9914fb9281a1c7e284d73e67f1809a48a497200e046d39ccc7112cd0");

    reportSuccess("SHA-256");
}
项目:dashj    文件:TestDigest.java   
/**
 * Test SHA-256 implementation.
 */
private static void testSHA256()
{
    Digest dig = new SHA256();
    testKat(dig, "abc",
   "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad");
    testKat(dig, "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlm"
        + "nomnopnopq",
   "248d6a61d20638b8e5c026930c3e6039a33ce45964ff2167f6ecedd419db06c1");

    testKatMillionA(dig,
   "cdc76e5c9914fb9281a1c7e284d73e67f1809a48a497200e046d39ccc7112cd0");

    reportSuccess("SHA-256");
}
项目:sphlib    文件:SHA256Test.java   
@Test
public void testSHA256() {
    Digest dig = new SHA256();
    testKat(dig, "abc",
            "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad");
    testKat(dig, "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlm"
            + "nomnopnopq",
            "248d6a61d20638b8e5c026930c3e6039a33ce45964ff2167f6ecedd419db06c1");

    testKatMillionA(dig,
            "cdc76e5c9914fb9281a1c7e284d73e67f1809a48a497200e046d39ccc7112cd0");

    reportSuccess("SHA-256");
}