本文整理汇总了Java中fr.cryptohash.RIPEMD128类的典型用法代码示例。如果您正苦于以下问题:Java RIPEMD128类的具体用法?Java RIPEMD128怎么用?Java RIPEMD128使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RIPEMD128类属于fr.cryptohash包,在下文中一共展示了RIPEMD128类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: testRIPEMD128
import fr.cryptohash.RIPEMD128; //导入依赖的package包/类
/**
* Test RIPEMD-128 implementation.
*/
private static void testRIPEMD128()
{
Digest dig = new RIPEMD128();
testKat(dig, "",
"cdf26213a150dc3ecb610f18f6b38b46");
testKat(dig, "a",
"86be7afa339d0fc7cfc785e72f578d33");
testKat(dig, "abc",
"c14a12199c66e4ba84636b0f69144c77");
testKat(dig, "message digest",
"9e327b3d6e523062afc1132d7df9d1b8");
testKat(dig, "abcdefghijklmnopqrstuvwxyz",
"fd2aa607f71dc8f510714922b371834e");
testKat(dig, "abcdbcdecdefdefgefghfghighijhijkijkljklmklmn"
+ "lmnomnopnopq",
"a1aa0689d0fafa2ddc22e88b49133a06");
testKat(dig, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqr"
+ "stuvwxyz0123456789",
"d1e959eb179c911faea4624c60c5c702");
testKat(dig, "12345678901234567890123456789012345678901234"
+ "567890123456789012345678901234567890",
"3f45ef194732c2dbb2c4a2c769795fa3");
testKatMillionA(dig,
"4a7f5723f954eba1216c9d8f6320431f");
reportSuccess("RIPEMD-128");
}
开发者ID:muhatzg,项目名称:burstcoin,代码行数:32,代码来源:TestDigest.java
示例2: testRIPEMD128
import fr.cryptohash.RIPEMD128; //导入依赖的package包/类
@Test
public void testRIPEMD128() {
Digest dig = new RIPEMD128();
testKat(dig, "",
"cdf26213a150dc3ecb610f18f6b38b46");
testKat(dig, "a",
"86be7afa339d0fc7cfc785e72f578d33");
testKat(dig, "abc",
"c14a12199c66e4ba84636b0f69144c77");
testKat(dig, "message digest",
"9e327b3d6e523062afc1132d7df9d1b8");
testKat(dig, "abcdefghijklmnopqrstuvwxyz",
"fd2aa607f71dc8f510714922b371834e");
testKat(dig, "abcdbcdecdefdefgefghfghighijhijkijkljklmklmn"
+ "lmnomnopnopq",
"a1aa0689d0fafa2ddc22e88b49133a06");
testKat(dig, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqr"
+ "stuvwxyz0123456789",
"d1e959eb179c911faea4624c60c5c702");
testKat(dig, "12345678901234567890123456789012345678901234"
+ "567890123456789012345678901234567890",
"3f45ef194732c2dbb2c4a2c769795fa3");
testKatMillionA(dig,
"4a7f5723f954eba1216c9d8f6320431f");
reportSuccess("RIPEMD-128");
}
开发者ID:jnorthrup,项目名称:sphlib,代码行数:29,代码来源:RIPEMD128Test.java
注:本文中的fr.cryptohash.RIPEMD128类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论