freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

des算法實(shí)驗(yàn)報(bào)告-全文預(yù)覽

2025-06-03 18:48 上一頁面

下一頁面
  

【正文】 ,sizeof(char),8,output)。 else break。\039。 } fclose(input)。 return 1。 } } } if(count == 7) fwrite(inputBlock,sizeof(char),8 inputBlock[7],input)。count7。 times += 8。 fileLen=ftell(output)。 memcpy(keyBlock,key,8)。 scanf(%s,key)。 bool Sub_Key[16][48]。 unsigned name[30]。 return 1。 DES_Encrypt(InputBlock,Sub_Key,OutputBlock)。 } } if(count) { memset(InputBlock+ count,39。 Char8ToBit64(keyBlock,bKey)。 getchar()。 printf(輸入文件名\n)。 unsigned char key[64]。 return 0。 XOR(Result,Expanded_Right,32)。 M_Expand(Expanded_Right)。 Initial_Exchange(Result)。}解密算法int DES_Decrypt(bool Final_Result[8],bool Sub_Key[16][48],bool Message[8]) { bool Expanded_Right[48]。 if(round!=15) Swap(Result,Result+32)。 XOR(Expanded_Right,Sub_Key[round],48)。 for(round=0。 bool Result[64]。icount。 Key_Transform2(temp,Sub_Key[round])。 Key_Transform1(key,temp)。⑦置換選擇2unsigned char Compression[] ={14, 17, 11, 24, 1, 5, 3, 28, 15, 6, 21, 10,23, 19, 12, 4, 26, 9, 16, 7, 27, 20, 13, 2,41, 52, 31, 37, 47, 55, 30, 40, 51, 45, 33, 48,44, 49, 39, 56, 34, 53, 46, 42, 50, 36, 29, 32}。③擴(kuò)展變換Eunsigned char Expansion[] ={32, 1, 2, 3, 4, 5,4, 5, 6, 7, 8, 9,8, 9, 10, 11, 12, 13,12, 13, 14, 15, 16, 17,16, 17, 18, 19, 20, 21,20, 21, 22, 23, 24, 25,24, 25, 26, 27, 28, 29,28, 29, 30, 31, 32, 1}。   從密文到明文的解密過程可采用與加密完全相同的算法。輸入的64位密鑰,首先通過壓縮換位得到56位的密鑰,每層分成兩部分,一部分28位為C0,一部分為D0。 按此進(jìn)行,輸出32位,再按照表4 換位表P進(jìn)行變換,這樣就完成了F(R,K)的變換。其中,經(jīng)過i輪處理后的點(diǎn)左右32位分別為Li和Ri則可做如下定義: Li=Ri1 Ri=Li1 ⊕F(Ri1,K) 其中,F(xiàn)為F變換(3)最后換位。表中的數(shù)值表示輸入位被置換后的新位置。DES的所有的保密性均依賴于密鑰。DES是一個(gè)對稱密碼體制,加密和解密使用同意密鑰,解密和加密使用同一算法(這樣,在
點(diǎn)擊復(fù)制文檔內(nèi)容
法律信息相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1