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

正文內(nèi)容

des算法實驗報告(存儲版)

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

下一頁面
  

【正文】 ck[7],input)。\039。 while(1) { fread(outputBlock,sizeof(char),8,output)。 if((output = fopen(name,rb)) == NULL) return 0。 bool inputBlock[8],outputBlock[8],keyBlock[8]。 } fclose(input)。 while(!feof(input)) { if((count=fread(InputBlock,sizeof(char),8,input)) == 8) { DES_Encrypt(InputBlock,Sub_Key,OutputBlock)。 printf(輸入密鑰\n)。 int count。 S_function(Expanded_Right)。 int round。 P_function(Expanded_Right)。 Char8ToBit64(Message,Result)。}異或int XOR(bool KR[48],bool KL[48] ,int count){ int i。⑨產(chǎn)生子密鑰int Key_Process(bool key[64],bool Sub_Key[16][48] ) { int round 。三、實驗內(nèi)容流程圖:主要代碼:①初始置換unsigned char Initial [] ={58, 50, 42, 34, 26, 18, 10, 2,60, 52, 44, 36, 28, 20, 12, 4,62, 54, 46, 38, 30, 22, 14, 6,64, 56, 48, 40, 32, 24, 16, 8,57, 49, 41, 33, 25, 17, 9, 1,59, 51, 43, 35, 27, 19, 11, 3,61, 53, 45, 37, 29, 21, 13, 5,63, 55, 47, 39, 31, 23, 15, 7}。因此,密鑰去掉第124……64位減至56位,所以實際密鑰長度為56位。上述換位處理的輸出,中間要經(jīng)過16輪加密變換。實 驗 報 告 姓名:xxxx 學(xué) 號:0XXXXX 班級:XXXXXXX 日期:2013/11/*題目:DES算法實驗一、實驗環(huán)境 1.硬件配置:處理器:Inter(R) Core(TM) i52430M CPU (4 CPUs) ,~內(nèi)存:2048MB RAM2.使用軟件:(1) 操作系統(tǒng):win7 旗艦版(2) 軟件工具:Microsoft Visual c++ 二、實驗涉及的相關(guān)概念或基本原理 DES是一個分組密碼算法,使用64位密鑰(除去8位奇偶校驗,實際密鑰長度為56位)對64比特的數(shù)據(jù)分組(二進(jìn)制數(shù)據(jù))加密,產(chǎn)生64位密文數(shù)據(jù)。 (2)加密處理。  密鑰通常表示為64位的自然數(shù),首先通過壓縮換位Key_Exchange去掉每個字節(jié)的第8位,用作奇偶校驗。不過解密要用加密的逆變換,就是把上面的最后換位表和初始換位表完全倒過來變換。⑧循環(huán)左移位數(shù)unsigned char Key_Move[]={1 , 1 , 2 , 2 , 2 , 2 , 2 , 2 , 1 , 2 , 2 , 2 , 2 , 2 , 2 , 1}。 } return 0。 int round。 S_function(Expanded_Right)。 bool Result[64]。 XOR(Expanded_Right,Sub_Key[round],48)。}加密文件int DES_EncryptFile(char *Final_Resu
點擊復(fù)制文檔內(nèi)容
法律信息相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1