資源簡介
2012年10月,美國NIST選擇了Keccak算法作為SHA - 3的標(biāo)準(zhǔn)算法,Keccak擁有良好的加密性能以及抗解密能力。
測試說明
測試代碼由makefile進(jìn)行管理
將整個(gè)文件夾拷貝到Linux目錄下,使用gcc編譯
編譯運(yùn)行步驟:
1、在本文件夾目錄下使用Linux命令行輸入 make 進(jìn)行編譯鏈接生成可執(zhí)行文件HashCalc
2. 命令行下輸入 ./HashCalc 執(zhí)行程序
3.命令行輸入make clean可清理編譯生成的文件
非Linux gcc編譯器,不用makefile下
main.c依賴于keccak.c和sha3nist.c文件
代碼片段和文件信息
/*?$Id:?keccak.c?259?2011-07-19?22:11:27Z?tp?$?*/
/*
?*?Keccak?implementation.
?*
?*?==========================(LICENSE?BEGIN)============================
?*
?*?Copyright?(c)?2007-2010??Projet?RNRT?SAPHIR
?*?
?*?Permission?is?hereby?granted?free?of?charge?to?any?person?obtaining
?*?a?copy?of?this?software?and?associated?documentation?files?(the
?*?“Software“)?to?deal?in?the?Software?without?restriction?including
?*?without?limitation?the?rights?to?use?copy?modify?merge?publish
?*?distribute?sublicense?and/or?sell?copies?of?the?Software?and?to
?*?permit?persons?to?whom?the?Software?is?furnished?to?do?so?subject?to
?*?the?following?conditions:
?*?
?*?The?above?copyright?notice?and?this?permission?notice?shall?be
?*?included?in?all?copies?or?substantial?portions?of?the?Software.
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-08-03?15:09??SHA-3\
?????文件???????54908??2013-01-27?20:16??SHA-3\keccak.c
?????文件????????3053??2017-08-03?15:02??SHA-3\main.c
?????文件?????????323??2017-08-03?11:07??SHA-3\Makefile
?????文件??????????78??2017-08-03?14:40??SHA-3\message_digest.txt
?????文件????????4375??2013-01-27?21:36??SHA-3\sha3nist.c
?????文件????????3091??2013-01-27?20:17??SHA-3\sha3nist.h
?????文件????????9472??2013-01-27?20:15??SHA-3\sph_keccak.h
?????文件???????66236??2013-01-27?20:17??SHA-3\sph_types.h
- 上一篇:C++讀取EXCEL
- 下一篇:掃雷 C語言源代碼
評(píng)論
共有 條評(píng)論