• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java Whirlpool0类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: testWhirlpool

import fr.cryptohash.Whirlpool0; //导入依赖的package包/类
/**
 * Test Whirlpool implementation.
 */
private static void testWhirlpool()
{
	Digest dig = new Whirlpool();
	Digest dig0 = new Whirlpool0();
	Digest dig1 = new Whirlpool1();

	testKat(dig, "",
   "19FA61D75522A4669B44E39C1D2E1726C530232130D407F89AFEE0964997F7A7"
   + "3E83BE698B288FEBCF88E3E03C4F0757EA8964E59B63D93708B138CC42A66EB3");
	testKat(dig, "a",
   "8ACA2602792AEC6F11A67206531FB7D7F0DFF59413145E6973C45001D0087B42"
   + "D11BC645413AEFF63A42391A39145A591A92200D560195E53B478584FDAE231A");
	testKat(dig, "abc",
   "4E2448A4C6F486BB16B6562C73B4020BF3043E3A731BCE721AE1B303D97E6D4C"
   + "7181EEBDB6C57E277D0E34957114CBD6C797FC9D95D8B582D225292076D4EEF5");
	testKat(dig, "message digest",
   "378C84A4126E2DC6E56DCC7458377AAC838D00032230F53CE1F5700C0FFB4D3B"
   + "8421557659EF55C106B4B52AC5A4AAA692ED920052838F3362E86DBD37A8903E");
	testKat(dig, "abcdefghijklmnopqrstuvwxyz",
   "F1D754662636FFE92C82EBB9212A484A8D38631EAD4238F5442EE13B8054E41B"
   + "08BF2A9251C30B6A0B8AAE86177AB4A6F68F673E7207865D5D9819A3DBA4EB3B");
	testKat(dig, "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
		+ "abcdefghijklmnopqrstuvwxyz0123456789",
   "DC37E008CF9EE69BF11F00ED9ABA26901DD7C28CDEC066CC6AF42E40F82F3A1E"
   + "08EBA26629129D8FB7CB57211B9281A65517CC879D7B962142C65F5A7AF01467");
	testKat(dig, "123456789012345678901234567890"
		+ "12345678901234567890123456789012345678901234567890",
   "466EF18BABB0154D25B9D38A6414F5C08784372BCCB204D6549C4AFADB601429"
   + "4D5BD8DF2A6C44E538CD047B2681A51A2C60481E88C5A20B2C2A80CF3A9A083B");
	testKat(dig, "abcdbcdecdefdefgefghfghighijhijk",
   "2A987EA40F917061F5D6F0A0E4644F488A7A5A52DEEE656207C562F988E95C69"
   + "16BDC8031BC5BE1B7B947639FE050B56939BAAA0ADFF9AE6745B7B181C3BE3FD");

	testKatMillionA(dig,
   "0C99005BEB57EFF50A7CF005560DDF5D29057FD86B20BFD62DECA0F1CCEA4AF5"
   + "1FC15490EDDC47AF32BB2B66C34FF9AD8C6008AD677F77126953B226E4ED8B01");

	testKat(dig0, "",
   "B3E1AB6EAF640A34F784593F2074416ACCD3B8E62C620175FCA0997B1BA23473"
   + "39AA0D79E754C308209EA36811DFA40C1C32F1A2B9004725D987D3635165D3C8");
	testKat(dig0, "The quick brown fox jumps over the lazy dog",
   "4F8F5CB531E3D49A61CF417CD133792CCFA501FD8DA53EE368FED20E5FE0248C"
   + "3A0B64F98A6533CEE1DA614C3A8DDEC791FF05FEE6D971D57C1348320F4EB42D");
	testKat(dig0, "The quick brown fox jumps over the lazy eog",
   "228FBF76B2A93469D4B25929836A12B7D7F2A0803E43DABA0C7FC38BC11C8F2A"
   + "9416BBCF8AB8392EB2AB7BCB565A64AC50C26179164B26084A253CAF2E012676");

	testKat(dig1, "",
   "470F0409ABAA446E49667D4EBE12A14387CEDBD10DD17B8243CAD550A089DC0F"
   + "EEA7AA40F6C2AAAB71C6EBD076E43C7CFCA0AD32567897DCB5969861049A0F5A");
	testKat(dig1, "The quick brown fox jumps over the lazy dog",
   "3CCF8252D8BBB258460D9AA999C06EE38E67CB546CFFCF48E91F700F6FC7C183"
   + "AC8CC3D3096DD30A35B01F4620A1E3A20D79CD5168544D9E1B7CDF49970E87F1");
	testKat(dig1, "The quick brown fox jumps over the lazy eog",
   "C8C15D2A0E0DE6E6885E8A7D9B8A9139746DA299AD50158F5FA9EECDDEF744F9"
   + "1B8B83C617080D77CB4247B1E964C2959C507AB2DB0F1F3BF3E3B299CA00CAE3");

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


示例2: testWhirlpool

import fr.cryptohash.Whirlpool0; //导入依赖的package包/类
@Test
public void testWhirlpool() {
    Digest dig = new Whirlpool();
    Digest dig0 = new Whirlpool0();
    Digest dig1 = new Whirlpool1();

    testKat(dig, "",
            "19FA61D75522A4669B44E39C1D2E1726C530232130D407F89AFEE0964997F7A7"
                    + "3E83BE698B288FEBCF88E3E03C4F0757EA8964E59B63D93708B138CC42A66EB3");
    testKat(dig, "a",
            "8ACA2602792AEC6F11A67206531FB7D7F0DFF59413145E6973C45001D0087B42"
                    + "D11BC645413AEFF63A42391A39145A591A92200D560195E53B478584FDAE231A");
    testKat(dig, "abc",
            "4E2448A4C6F486BB16B6562C73B4020BF3043E3A731BCE721AE1B303D97E6D4C"
                    + "7181EEBDB6C57E277D0E34957114CBD6C797FC9D95D8B582D225292076D4EEF5");
    testKat(dig, "message digest",
            "378C84A4126E2DC6E56DCC7458377AAC838D00032230F53CE1F5700C0FFB4D3B"
                    + "8421557659EF55C106B4B52AC5A4AAA692ED920052838F3362E86DBD37A8903E");
    testKat(dig, "abcdefghijklmnopqrstuvwxyz",
            "F1D754662636FFE92C82EBB9212A484A8D38631EAD4238F5442EE13B8054E41B"
                    + "08BF2A9251C30B6A0B8AAE86177AB4A6F68F673E7207865D5D9819A3DBA4EB3B");
    testKat(dig, "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
            + "abcdefghijklmnopqrstuvwxyz0123456789",
            "DC37E008CF9EE69BF11F00ED9ABA26901DD7C28CDEC066CC6AF42E40F82F3A1E"
                    + "08EBA26629129D8FB7CB57211B9281A65517CC879D7B962142C65F5A7AF01467");
    testKat(dig, "123456789012345678901234567890"
            + "12345678901234567890123456789012345678901234567890",
            "466EF18BABB0154D25B9D38A6414F5C08784372BCCB204D6549C4AFADB601429"
                    + "4D5BD8DF2A6C44E538CD047B2681A51A2C60481E88C5A20B2C2A80CF3A9A083B");
    testKat(dig, "abcdbcdecdefdefgefghfghighijhijk",
            "2A987EA40F917061F5D6F0A0E4644F488A7A5A52DEEE656207C562F988E95C69"
                    + "16BDC8031BC5BE1B7B947639FE050B56939BAAA0ADFF9AE6745B7B181C3BE3FD");

    testKatMillionA(dig,
            "0C99005BEB57EFF50A7CF005560DDF5D29057FD86B20BFD62DECA0F1CCEA4AF5"
                    + "1FC15490EDDC47AF32BB2B66C34FF9AD8C6008AD677F77126953B226E4ED8B01");

    testKat(dig0, "",
            "B3E1AB6EAF640A34F784593F2074416ACCD3B8E62C620175FCA0997B1BA23473"
                    + "39AA0D79E754C308209EA36811DFA40C1C32F1A2B9004725D987D3635165D3C8");
    testKat(dig0, "The quick brown fox jumps over the lazy dog",
            "4F8F5CB531E3D49A61CF417CD133792CCFA501FD8DA53EE368FED20E5FE0248C"
                    + "3A0B64F98A6533CEE1DA614C3A8DDEC791FF05FEE6D971D57C1348320F4EB42D");
    testKat(dig0, "The quick brown fox jumps over the lazy eog",
            "228FBF76B2A93469D4B25929836A12B7D7F2A0803E43DABA0C7FC38BC11C8F2A"
                    + "9416BBCF8AB8392EB2AB7BCB565A64AC50C26179164B26084A253CAF2E012676");

    testKat(dig1, "",
            "470F0409ABAA446E49667D4EBE12A14387CEDBD10DD17B8243CAD550A089DC0F"
                    + "EEA7AA40F6C2AAAB71C6EBD076E43C7CFCA0AD32567897DCB5969861049A0F5A");
    testKat(dig1, "The quick brown fox jumps over the lazy dog",
            "3CCF8252D8BBB258460D9AA999C06EE38E67CB546CFFCF48E91F700F6FC7C183"
                    + "AC8CC3D3096DD30A35B01F4620A1E3A20D79CD5168544D9E1B7CDF49970E87F1");
    testKat(dig1, "The quick brown fox jumps over the lazy eog",
            "C8C15D2A0E0DE6E6885E8A7D9B8A9139746DA299AD50158F5FA9EECDDEF744F9"
                    + "1B8B83C617080D77CB4247B1E964C2959C507AB2DB0F1F3BF3E3B299CA00CAE3");

    reportSuccess("Whirlpool");
}
 
开发者ID:jnorthrup,项目名称:sphlib,代码行数:60,代码来源:WhirlpoolTest.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java EPStatementObjectModel类代码示例发布时间:2022-05-22
下一篇:
Java SourceTaskContext类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap