91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 2KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2021-06-06
  • 語言: C/C++
  • 標簽: 通信??

資源簡介

單片機C語言實現的TEA算法加密程序..

資源截圖

代碼片段和文件信息

/*
The?Tiny?Encryption?Algorithm?or?TEA?is?a?Feistel?cipher?invented?by?David
Wheeler.?It?is?intended?for?use?in?applications?where?code?size?is?at?a
premium?or?where?it?is?necessary?for?someone?to?remember?the?algorithm?and
code?it?on?an?arbitrary?machine?at?a?later?time.

Since?its?round?function?is?relatively?weak?with?nonlinearity?coming?only?from
the?carry?propagation?TEA?has?64?rounds.?However?its?simplicity?means?that?it
runs?more?quickly?in?software?than?many?other?algorithms?with?fewer?more
complex?rounds.
*/

void?code(long*?v?long*?k)
{
unsigned?long?y=v[0]z=v[1]sum=0?????????????/*?set?up?*/
??????????????delta=0x9e3779b9?n=32?;?????????/*?key?schedule?constant*/

while?(n-->0)
{??????????????????????????????????????????????/*?basic?cycle?start*/
??sum?+=?delta?;
??y?+=?(z<<4)+k[0]?^?z+sum?^?(z>>5)+k[1]?;
??z?+=?(y<<4)+k[2]?^?y+sum?^?(y>>5)+k[3]?;?????/*?end?cycle?*/
}
v[0]=y?;
v[1]=z?;
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????2604??2000-06-29?15:16??TEA加密算法\tea.asm

?????文件????????927??2000-06-29?15:16??TEA加密算法\tea.c

?????文件???????1183??2000-06-29?15:16??TEA加密算法\tean.c

?????目錄??????????0??2016-09-05?21:16??TEA加密算法

-----------?---------??----------?-----??----

?????????????????4714????????????????????4


評論

共有 條評論