資源簡介
C語言SM4算法實(shí)現(xiàn)。C語言SM4算法實(shí)現(xiàn)。
代碼片段和文件信息
/*
?*?Copyright?2008-2016?The?OpenSSL?Project?Authors.?All?Rights?Reserved.
?*
?*?Licensed?under?the?OpenSSL?license?(the?“License“).??You?may?not?use
?*?this?file?except?in?compliance?with?the?License.??You?can?obtain?a?copy
?*?in?the?file?LICENSE?in?the?source?distribution?or?at
?*?https://www.openssl.org/source/license.html
?*/
#include?“modes_lcl.h“
#include?
#if?!defined(STRICT_ALIGNMENT)?&&?!defined(PEDANTIC)
#?define?STRICT_ALIGNMENT?0
#endif
void?CRYPTO_cbc128_encrypt(const?unsigned?char?*in?unsigned?char?*out
???????????????????????????size_t?len?const?void?*key
???????????????????????????unsigned?char?ivec[16]?block128_f?block)
{
????size_t?n;
????const?unsigned?char?*iv?=?ivec;
#if?!defined(OPENSSL_SMALL_FOOTPRINT)
????if?(STRICT_ALIGNM
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2020-01-21?09:46??smalgo\
?????目錄???????????0??2020-01-21?09:46??smalgo\sms4\
?????文件????????4685??2020-01-21?09:46??smalgo\sms4\cbc128.c
?????目錄???????????0??2020-01-21?09:46??smalgo\sms4\include\
?????文件???????18454??2020-01-21?09:46??smalgo\sms4\include\crypto.h
?????文件????????9540??2020-01-21?09:46??smalgo\sms4\include\e_os2.h
?????文件???????10618??2020-01-21?09:46??smalgo\sms4\include\modes.h
?????文件????????6232??2020-01-21?09:46??smalgo\sms4\include\modes_lcl.h
?????文件????????4344??2020-01-21?09:46??smalgo\sms4\include\opensslconf.h
?????文件????????4339??2020-01-21?09:46??smalgo\sms4\include\opensslv.h
?????文件????????6205??2020-01-21?09:46??smalgo\sms4\include\ossl_typ.h
?????文件????????2495??2020-01-21?09:46??smalgo\sms4\include\rotate.h
?????文件????????6448??2020-01-21?09:46??smalgo\sms4\include\safestack.h
?????文件????????5832??2020-01-21?09:46??smalgo\sms4\include\sms4.h
?????文件????????3967??2020-01-21?09:46??smalgo\sms4\include\sms4_lcl.h
?????文件????????2938??2020-01-21?09:46??smalgo\sms4\include\stack.h
?????文件????????2120??2020-01-21?09:46??smalgo\sms4\include\symhacks.h
?????文件????????2734??2020-01-21?09:46??smalgo\sms4\sms4_cbc.c
?????文件??????892321??2020-01-21?09:46??smalgo\sms4\sms4_common.c
?????文件????????4460??2020-01-21?09:46??smalgo\sms4\sms4_enc.c
?????文件????????4172??2020-01-21?09:46??smalgo\sms4\sms4_setkey.c
評論
共有 條評論