当前位置: 首页>>代码示例>>Java>>正文


Java SHA384类代码示例

本文整理汇总了Java中fr.cryptohash.SHA384的典型用法代码示例。如果您正苦于以下问题:Java SHA384类的具体用法?Java SHA384怎么用?Java SHA384使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


SHA384类属于fr.cryptohash包,在下文中一共展示了SHA384类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: testSHA384

import fr.cryptohash.SHA384; //导入依赖的package包/类
/**
 * Test SHA-384 implementation.
 */
private static void testSHA384()
{
	Digest dig = new SHA384();
	testKat(dig, "abc",
		"cb00753f45a35e8bb5a03d699ac65007272c32ab0eded163"
		+ "1a8b605a43ff5bed8086072ba1e7cc2358baeca134c825a7");
	testKat(dig, "abcdefghbcdefghicdefghijdefghijkefghijklfghij"
		+ "klmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnop"
		+ "qrsmnopqrstnopqrstu",
		"09330c33f71147e83d192fc782cd1b4753111b173b3b05d2"
		+ "2fa08086e3b0f712fcc7c71a557e2db966c3e9fa91746039");

	testKatMillionA(dig,
		"9d0e1809716474cb086e834e310a4a1ced149e9c00f24852"
		+ "7972cec5704c2a5b07b8b3dc38ecc4ebae97ddd87f3d8985");

	reportSuccess("SHA-384");
}
 
开发者ID:muhatzg,项目名称:burstcoin,代码行数:22,代码来源:TestDigest.java

示例2: testSHA384

import fr.cryptohash.SHA384; //导入依赖的package包/类
@Test
public void testSHA384() {
    Digest dig = new SHA384();
    testKat(dig, "abc",
            "cb00753f45a35e8bb5a03d699ac65007272c32ab0eded163"
                    + "1a8b605a43ff5bed8086072ba1e7cc2358baeca134c825a7");
    testKat(dig, "abcdefghbcdefghicdefghijdefghijkefghijklfghij"
            + "klmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnop"
            + "qrsmnopqrstnopqrstu",
            "09330c33f71147e83d192fc782cd1b4753111b173b3b05d2"
                    + "2fa08086e3b0f712fcc7c71a557e2db966c3e9fa91746039");

    testKatMillionA(dig,
            "9d0e1809716474cb086e834e310a4a1ced149e9c00f24852"
                    + "7972cec5704c2a5b07b8b3dc38ecc4ebae97ddd87f3d8985");

    reportSuccess("SHA-384");
}
 
开发者ID:jnorthrup,项目名称:sphlib,代码行数:19,代码来源:SHA384Test.java


注:本文中的fr.cryptohash.SHA384类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。