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