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

正文內(nèi)容

des算法的實(shí)現(xiàn)及安全性分析畢業(yè)論文(編輯修改稿)

2025-07-25 08:26 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 {2,1,14,7,4,10,8,13,15,12,9,0,3,5,6,11}}}。//置換選擇1intPC_1[56]={56,48,40,32,24,16,8,0,57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,60,52,44,36,28,20,12,4,27,19,11,3}。//置換選擇2intPC_2[48]={13,16,10,23,0,4,2,27,14,5,20,9,22,18,11,3,25,7,15,6,26,19,12,1,40,51,30,36,46,54,29,39,50,44,32,46,43,48,38,55,33,52,45,41,49,35,28,31}。//對(duì)左移次數(shù)的規(guī)定intMOVE_TIMES[16]={1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1}。intByteToBit(ElemTypech,ElemTypebit[8])。intBitToByte(ElemTypebit[8],ElemType*ch)。intChar8ToBit64(ElemTypech[8],ElemTypebit[64])。intBit64ToChar8(ElemTypebit[64],ElemTypech[8])。intDES_MakeSubKeys(ElemTypekey[64],ElemTypesubKeys[16][48])。intDES_PC1_Transform(ElemTypekey[64],ElemTypetempbts[56])。intDES_PC2_Transform(ElemTypekey[56],ElemTypetempbts[48])。intDES_ROL(ElemTypedata[56],inttime)。intDES_IP_Transform(ElemTypedata[64])。intDES_IP_1_Transform(ElemTypedata[64])。intDES_E_Transform(ElemTypedata[48])。intDES_P_Transform(ElemTypedata[32])。intDES_SBOX(ElemTypedata[48])。intDES_XOR(ElemTypeR[48],ElemTypeL[48],intcount)。intDES_Swap(ElemTypeleft[32],ElemTyperight[32])。intDES_EncryptBlock(ElemTypeplainBlock[8],ElemTypesubKeys[16][48],ElemTypecipherBlock[8])。intDES_DecryptBlock(ElemTypecipherBlock[8],ElemTypesubKeys[16][48],ElemTypeplainBlock[8])。intDES_Encrypt(char*plainFile,char*keyStr,char*cipherFile)。intDES_Decrypt(char*cipherFile,char*keyStr,char*plainFile)。//字節(jié)轉(zhuǎn)換成二進(jìn)制intByteToBit(ElemTypech,ElemTypebit[8]){intt。for(t=0。t8。t++){*(bit+t)=(cht)amp。1。}return0。}//二進(jìn)制轉(zhuǎn)換成字節(jié)intBitToByte(ElemTypebit[8],ElemType*ch){intt。for(t=0。t8。t++){*ch|=*(bit+t)t。}return0。}//將長(zhǎng)度為8的字符串轉(zhuǎn)為二進(jìn)制位串intChar8ToBit64(ElemTypech[8],ElemTypebit[64]){intt。for(t=0。t8。t++){ByteToBit(*(ch+t),bit+(t3))。}return0。}//將二進(jìn)制位串轉(zhuǎn)為長(zhǎng)度為8的字符串intBit64ToChar8(ElemTypebit[64],ElemTypech[8]){intt。memset(ch,0,8)。for(t=0。t8。t++){BitToByte(bit+(t3),ch+t)。}return0。}//生成子密鑰intDES_MakeSubKeys(ElemTypekey[64],ElemTypesubKeys[16][48]){ElemTypetemp[56]。intt。DES_PC1_Transform(key,temp)。//PC1置換for(t=0。t16。t++){//16輪跌代,產(chǎn)生16個(gè)子密鑰DES_ROL(temp,MOVE_TIMES[t])。//循環(huán)左移DES_PC2_Transform(temp,subKeys[t])。//PC2置換,產(chǎn)生子密鑰}return0。}//密鑰置換1intDES_PC1_Transform(ElemTypekey[64],ElemTypetempbts[56]){intt。for(t=0。t56。t++){tempbts[t]=key[PC_1[t]]。}return0。}//密鑰置換2intDES_PC2_Transform(ElemTypekey[56],ElemTypetempbts[48]){intt。for(t=0。t48。t++){tempbts[t]=key[PC_2[t]]。}return0。}//循環(huán)左移intDES_ROL(ElemTypedata[56],inttime){ElemTypetemp[56]。 memcpy(temp,data,time)。memcpy(temp+time,data+28,time)。 memcpy(data,data+time,28time)。memcpy(data+28time,temp,time)。 memcpy(data+28,data+28+time,28time)。memcpy(data+56time,temp+time,time)。 return0。}//IP置換intDES_IP_Transform(ElemTypedata[64]){intt。ElemTypetemp[64]。for(t=0。t64。t++){temp[t]=data[IP_Table[t]]。}memcpy(data,temp,64)。return0。}//IP逆置換intDES_IP_1_Transform(ElemTypedata[64]){intt。ElemTypetemp[64]。for(t=0。t64。t++){temp[t]=data[IP_1_Table[t]]。}memcpy(data,temp,64)。return0。}160
點(diǎn)擊復(fù)制文檔內(nèi)容
醫(yī)療健康相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1