亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? aes.c

?? openswan
?? C
?? 第 1 頁 / 共 4 頁
字號:
}// y = output word, x = input word, r = row, c = column// for r = 0, 1, 2 and 3 = column accessed for row r#if defined(ARRAYS)#define s(x,c) x[c]#else#define s(x,c) x##c#endif// I am grateful to Frank Yellin for the following constructions// which, given the column (c) of the output state variable that// is being computed, return the input state variables which are// needed for each row (r) of the state// For the fixed block size options, compilers reduce these two // expressions to fixed variable references. For variable block // size code conditional clauses will sometimes be returned#define unused  77  // Sunset Strip#define fwd_var(x,r,c) \ ( r==0 ?			\    ( c==0 ? s(x,0) \    : c==1 ? s(x,1) \    : c==2 ? s(x,2) \    : c==3 ? s(x,3) \    : c==4 ? s(x,4) \    : c==5 ? s(x,5) \    : c==6 ? s(x,6) \    : s(x,7))		\ : r==1 ?			\    ( c==0 ? s(x,1) \    : c==1 ? s(x,2) \    : c==2 ? s(x,3) \    : c==3 ? nc==4 ? s(x,0) : s(x,4) \    : c==4 ? s(x,5) \    : c==5 ? nc==8 ? s(x,6) : s(x,0) \    : c==6 ? s(x,7) \    : s(x,0))		\ : r==2 ?			\    ( c==0 ? nc==8 ? s(x,3) : s(x,2) \    : c==1 ? nc==8 ? s(x,4) : s(x,3) \    : c==2 ? nc==4 ? s(x,0) : nc==8 ? s(x,5) : s(x,4) \    : c==3 ? nc==4 ? s(x,1) : nc==8 ? s(x,6) : s(x,5) \    : c==4 ? nc==8 ? s(x,7) : s(x,0) \    : c==5 ? nc==8 ? s(x,0) : s(x,1) \    : c==6 ? s(x,1) \    : s(x,2))		\ :					\    ( c==0 ? nc==8 ? s(x,4) : s(x,3) \    : c==1 ? nc==4 ? s(x,0) : nc==8 ? s(x,5) : s(x,4) \    : c==2 ? nc==4 ? s(x,1) : nc==8 ? s(x,6) : s(x,5) \    : c==3 ? nc==4 ? s(x,2) : nc==8 ? s(x,7) : s(x,0) \    : c==4 ? nc==8 ? s(x,0) : s(x,1) \    : c==5 ? nc==8 ? s(x,1) : s(x,2) \    : c==6 ? s(x,2) \    : s(x,3)))#define inv_var(x,r,c) \ ( r==0 ?			\    ( c==0 ? s(x,0) \    : c==1 ? s(x,1) \    : c==2 ? s(x,2) \    : c==3 ? s(x,3) \    : c==4 ? s(x,4) \    : c==5 ? s(x,5) \    : c==6 ? s(x,6) \    : s(x,7))		\ : r==1 ?			\    ( c==0 ? nc==4 ? s(x,3) : nc==8 ? s(x,7) : s(x,5) \    : c==1 ? s(x,0) \    : c==2 ? s(x,1) \    : c==3 ? s(x,2) \    : c==4 ? s(x,3) \    : c==5 ? s(x,4) \    : c==6 ? s(x,5) \    : s(x,6))		\ : r==2 ?			\    ( c==0 ? nc==4 ? s(x,2) : nc==8 ? s(x,5) : s(x,4) \    : c==1 ? nc==4 ? s(x,3) : nc==8 ? s(x,6) : s(x,5) \    : c==2 ? nc==8 ? s(x,7) : s(x,0) \    : c==3 ? nc==8 ? s(x,0) : s(x,1) \    : c==4 ? nc==8 ? s(x,1) : s(x,2) \    : c==5 ? nc==8 ? s(x,2) : s(x,3) \    : c==6 ? s(x,3) \    : s(x,4))		\ :					\    ( c==0 ? nc==4 ? s(x,1) : nc==8 ? s(x,4) : s(x,3) \    : c==1 ? nc==4 ? s(x,2) : nc==8 ? s(x,5) : s(x,4) \    : c==2 ? nc==4 ? s(x,3) : nc==8 ? s(x,6) : s(x,5) \    : c==3 ? nc==8 ? s(x,7) : s(x,0) \    : c==4 ? nc==8 ? s(x,0) : s(x,1) \    : c==5 ? nc==8 ? s(x,1) : s(x,2) \    : c==6 ? s(x,2) \    : s(x,3)))#define si(y,x,k,c) s(y,c) = const_word_in(x + 4 * c) ^ k[c]#define so(y,x,c)   word_out(y + 4 * c, s(x,c))#if defined(FOUR_TABLES)#define fwd_rnd(y,x,k,c)    s(y,c)= (k)[c] ^ four_tables(x,ft_tab,fwd_var,rf1,c)#define inv_rnd(y,x,k,c)    s(y,c)= (k)[c] ^ four_tables(x,it_tab,inv_var,rf1,c)#elif defined(ONE_TABLE)#define fwd_rnd(y,x,k,c)    s(y,c)= (k)[c] ^ one_table(x,upr,ft_tab,fwd_var,rf1,c)#define inv_rnd(y,x,k,c)    s(y,c)= (k)[c] ^ one_table(x,upr,it_tab,inv_var,rf1,c)#else#define fwd_rnd(y,x,k,c)    s(y,c) = fwd_mcol(no_table(x,s_box,fwd_var,rf1,c)) ^ (k)[c]#define inv_rnd(y,x,k,c)    s(y,c) = inv_mcol(no_table(x,inv_s_box,inv_var,rf1,c) ^ (k)[c])#endif#if defined(FOUR_LR_TABLES)#define fwd_lrnd(y,x,k,c)   s(y,c)= (k)[c] ^ four_tables(x,fl_tab,fwd_var,rf1,c)#define inv_lrnd(y,x,k,c)   s(y,c)= (k)[c] ^ four_tables(x,il_tab,inv_var,rf1,c)#elif defined(ONE_LR_TABLE)#define fwd_lrnd(y,x,k,c)   s(y,c)= (k)[c] ^ one_table(x,ups,fl_tab,fwd_var,rf1,c)#define inv_lrnd(y,x,k,c)   s(y,c)= (k)[c] ^ one_table(x,ups,il_tab,inv_var,rf1,c)#else#define fwd_lrnd(y,x,k,c)   s(y,c) = no_table(x,s_box,fwd_var,rf1,c) ^ (k)[c]#define inv_lrnd(y,x,k,c)   s(y,c) = no_table(x,inv_s_box,inv_var,rf1,c) ^ (k)[c]#endif#if AES_BLOCK_SIZE == 16#if defined(ARRAYS)#define locals(y,x)     x[4],y[4]#else#define locals(y,x)     x##0,x##1,x##2,x##3,y##0,y##1,y##2,y##3// the following defines prevent the compiler requiring the declaration// of generated but unused variables in the fwd_var and inv_var macros#define b04 unused#define b05 unused#define b06 unused#define b07 unused#define b14 unused#define b15 unused#define b16 unused#define b17 unused#endif#define l_copy(y, x)    s(y,0) = s(x,0); s(y,1) = s(x,1); \                        s(y,2) = s(x,2); s(y,3) = s(x,3);#define state_in(y,x,k) si(y,x,k,0); si(y,x,k,1); si(y,x,k,2); si(y,x,k,3)#define state_out(y,x)  so(y,x,0); so(y,x,1); so(y,x,2); so(y,x,3)#define round(rm,y,x,k) rm(y,x,k,0); rm(y,x,k,1); rm(y,x,k,2); rm(y,x,k,3)#elif AES_BLOCK_SIZE == 24#if defined(ARRAYS)#define locals(y,x)     x[6],y[6]#else#define locals(y,x)     x##0,x##1,x##2,x##3,x##4,x##5, \                        y##0,y##1,y##2,y##3,y##4,y##5#define b06 unused#define b07 unused#define b16 unused#define b17 unused#endif#define l_copy(y, x)    s(y,0) = s(x,0); s(y,1) = s(x,1); \                        s(y,2) = s(x,2); s(y,3) = s(x,3); \                        s(y,4) = s(x,4); s(y,5) = s(x,5);#define state_in(y,x,k) si(y,x,k,0); si(y,x,k,1); si(y,x,k,2); \                        si(y,x,k,3); si(y,x,k,4); si(y,x,k,5)#define state_out(y,x)  so(y,x,0); so(y,x,1); so(y,x,2); \                        so(y,x,3); so(y,x,4); so(y,x,5)#define round(rm,y,x,k) rm(y,x,k,0); rm(y,x,k,1); rm(y,x,k,2); \                        rm(y,x,k,3); rm(y,x,k,4); rm(y,x,k,5)#else#if defined(ARRAYS)#define locals(y,x)     x[8],y[8]#else#define locals(y,x)     x##0,x##1,x##2,x##3,x##4,x##5,x##6,x##7, \                        y##0,y##1,y##2,y##3,y##4,y##5,y##6,y##7#endif#define l_copy(y, x)    s(y,0) = s(x,0); s(y,1) = s(x,1); \                        s(y,2) = s(x,2); s(y,3) = s(x,3); \                        s(y,4) = s(x,4); s(y,5) = s(x,5); \                        s(y,6) = s(x,6); s(y,7) = s(x,7);#if AES_BLOCK_SIZE == 32#define state_in(y,x,k) si(y,x,k,0); si(y,x,k,1); si(y,x,k,2); si(y,x,k,3); \                        si(y,x,k,4); si(y,x,k,5); si(y,x,k,6); si(y,x,k,7)#define state_out(y,x)  so(y,x,0); so(y,x,1); so(y,x,2); so(y,x,3); \                        so(y,x,4); so(y,x,5); so(y,x,6); so(y,x,7)#define round(rm,y,x,k) rm(y,x,k,0); rm(y,x,k,1); rm(y,x,k,2); rm(y,x,k,3); \                        rm(y,x,k,4); rm(y,x,k,5); rm(y,x,k,6); rm(y,x,k,7)#else#define state_in(y,x,k) \switch(nc) \{   case 8: si(y,x,k,7); si(y,x,k,6); \    case 6: si(y,x,k,5); si(y,x,k,4); \    case 4: si(y,x,k,3); si(y,x,k,2); \            si(y,x,k,1); si(y,x,k,0); \}#define state_out(y,x) \switch(nc) \{   case 8: so(y,x,7); so(y,x,6); \    case 6: so(y,x,5); so(y,x,4); \    case 4: so(y,x,3); so(y,x,2); \            so(y,x,1); so(y,x,0); \}#if defined(FAST_VARIABLE)#define round(rm,y,x,k) \switch(nc) \{   case 8: rm(y,x,k,7); rm(y,x,k,6); \            rm(y,x,k,5); rm(y,x,k,4); \            rm(y,x,k,3); rm(y,x,k,2); \            rm(y,x,k,1); rm(y,x,k,0); \            break; \    case 6: rm(y,x,k,5); rm(y,x,k,4); \            rm(y,x,k,3); rm(y,x,k,2); \            rm(y,x,k,1); rm(y,x,k,0); \            break; \    case 4: rm(y,x,k,3); rm(y,x,k,2); \            rm(y,x,k,1); rm(y,x,k,0); \            break; \}#else#define round(rm,y,x,k) \switch(nc) \{   case 8: rm(y,x,k,7); rm(y,x,k,6); \    case 6: rm(y,x,k,5); rm(y,x,k,4); \    case 4: rm(y,x,k,3); rm(y,x,k,2); \            rm(y,x,k,1); rm(y,x,k,0); \}#endif#endif#endifvoid aes_encrypt(const aes_context *cx, const unsigned char in_blk[], unsigned char out_blk[]){   u_int32_t        locals(b0, b1);    const u_int32_t  *kp = cx->aes_e_key;#if !defined(ONE_TABLE) && !defined(FOUR_TABLES)    u_int32_t        f2;#endif    state_in(b0, in_blk, kp); kp += nc;#if defined(UNROLL)    switch(cx->aes_Nrnd)    {    case 14:    round(fwd_rnd,  b1, b0, kp         );                 round(fwd_rnd,  b0, b1, kp + nc    ); kp += 2 * nc;    case 12:    round(fwd_rnd,  b1, b0, kp         );                 round(fwd_rnd,  b0, b1, kp + nc    ); kp += 2 * nc;    case 10:    round(fwd_rnd,  b1, b0, kp         );                             round(fwd_rnd,  b0, b1, kp +     nc);                round(fwd_rnd,  b1, b0, kp + 2 * nc);                 round(fwd_rnd,  b0, b1, kp + 3 * nc);                round(fwd_rnd,  b1, b0, kp + 4 * nc);                 round(fwd_rnd,  b0, b1, kp + 5 * nc);                round(fwd_rnd,  b1, b0, kp + 6 * nc);                 round(fwd_rnd,  b0, b1, kp + 7 * nc);                round(fwd_rnd,  b1, b0, kp + 8 * nc);                round(fwd_lrnd, b0, b1, kp + 9 * nc);    }#elif defined(PARTIAL_UNROLL)    {   u_int32_t    rnd;        for(rnd = 0; rnd < (cx->aes_Nrnd >> 1) - 1; ++rnd)        {            round(fwd_rnd, b1, b0, kp);             round(fwd_rnd, b0, b1, kp + nc); kp += 2 * nc;        }        round(fwd_rnd,  b1, b0, kp);        round(fwd_lrnd, b0, b1, kp + nc);    }#else    {   u_int32_t    rnd;        for(rnd = 0; rnd < cx->aes_Nrnd - 1; ++rnd)        {            round(fwd_rnd, b1, b0, kp);             l_copy(b0, b1); kp += nc;        }        round(fwd_lrnd, b0, b1, kp);    }#endif    state_out(out_blk, b0);}void aes_decrypt(const aes_context *cx, const unsigned char in_blk[], unsigned char out_blk[]){   u_int32_t        locals(b0, b1);    const u_int32_t  *kp = cx->aes_d_key;#if !defined(ONE_TABLE) && !defined(FOUR_TABLES)    u_int32_t        f2, f4, f8, f9; #endif    state_in(b0, in_blk, kp); kp += nc;#if defined(UNROLL)    switch(cx->aes_Nrnd)    {    case 14:    round(inv_rnd,  b1, b0, kp         );                round(inv_rnd,  b0, b1, kp + nc    ); kp += 2 * nc;    case 12:    round(inv_rnd,  b1, b0, kp         );                round(inv_rnd,  b0, b1, kp + nc    ); kp += 2 * nc;    case 10:    round(inv_rnd,  b1, b0, kp         );                             round(inv_rnd,  b0, b1, kp +     nc);                round(inv_rnd,  b1, b0, kp + 2 * nc);                 round(inv_rnd,  b0, b1, kp + 3 * nc);                round(inv_rnd,  b1, b0, kp + 4 * nc);                 round(inv_rnd,  b0, b1, kp + 5 * nc);                round(inv_rnd,  b1, b0, kp + 6 * nc);                 round(inv_rnd,  b0, b1, kp + 7 * nc);                round(inv_rnd,  b1, b0, kp + 8 * nc);                round(inv_lrnd, b0, b1, kp + 9 * nc);    }#elif defined(PARTIAL_UNROLL)    {   u_int32_t    rnd;        for(rnd = 0; rnd < (cx->aes_Nrnd >> 1) - 1; ++rnd)        {            round(inv_rnd, b1, b0, kp);             round(inv_rnd, b0, b1, kp + nc); kp += 2 * nc;        }        round(inv_rnd,  b1, b0, kp);        round(inv_lrnd, b0, b1, kp + nc);    }#else    {   u_int32_t    rnd;        for(rnd = 0; rnd < cx->aes_Nrnd - 1; ++rnd)        {            round(inv_rnd, b1, b0, kp);             l_copy(b0, b1); kp += nc;        }        round(inv_lrnd, b0, b1, kp);    }#endif    state_out(out_blk, b0);}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久午夜电影网| 免费观看一级特黄欧美大片| 亚洲小说欧美激情另类| 国产永久精品大片wwwapp| 91福利国产成人精品照片| 亚洲国产精品av| 日韩va亚洲va欧美va久久| 99九九99九九九视频精品| 精品福利在线导航| 一区二区三区四区在线免费观看| 韩日精品视频一区| 欧美一区日韩一区| 午夜精品成人在线视频| 99国产一区二区三精品乱码| 国产欧美精品一区二区色综合| 美女网站视频久久| 91精品国产乱码久久蜜臀| 亚洲成a人片在线不卡一二三区| 成人免费三级在线| 国产欧美一区二区三区在线看蜜臀| 天天操天天色综合| 欧美三区在线观看| 一区二区在线观看免费| jvid福利写真一区二区三区| 国产日产欧美一区二区三区| 国产一区二区视频在线播放| 欧美一级午夜免费电影| 日日夜夜免费精品| 欧美精品黑人性xxxx| 亚洲一级二级三级在线免费观看| 91污在线观看| 亚洲精品中文字幕乱码三区| 在线免费观看日本一区| 亚洲精品菠萝久久久久久久| 91久久精品一区二区三区| 一区二区三区在线播| 欧美在线小视频| 日韩成人精品在线观看| 在线综合+亚洲+欧美中文字幕| 天使萌一区二区三区免费观看| 欧美精品精品一区| 国产精品影视网| 久久精品亚洲精品国产欧美| 国产精品自拍网站| 亚洲欧洲日韩av| 欧美在线观看一二区| 亚洲a一区二区| 7777精品伊人久久久大香线蕉经典版下载 | 国产成人av资源| 国产三级精品三级| www.欧美.com| 亚洲福利电影网| 日韩美女一区二区三区| 国产黄色91视频| 亚洲少妇中出一区| 欧美一区二区三区在线观看| 国产一区二区伦理| 亚洲精品欧美专区| 欧美一区二区啪啪| 成人蜜臀av电影| 亚洲成av人片在www色猫咪| 91精品午夜视频| 高清国产一区二区| 午夜精品久久久久久久久久| 久久久久久一级片| 欧美亚洲一区二区三区四区| 国模少妇一区二区三区| 亚洲欧美一区二区不卡| 91精品国模一区二区三区| 国产福利一区二区三区| 一区二区三区国产精华| 精品免费视频一区二区| 色一情一乱一乱一91av| 精品一区二区在线播放| 亚洲国产美女搞黄色| 精品国产伦理网| 欧美日韩中文另类| 国产.欧美.日韩| 麻豆一区二区99久久久久| 中文字幕中文乱码欧美一区二区 | 日韩av网站免费在线| 欧美国产97人人爽人人喊| 欧美四级电影网| 国产99精品国产| 蜜臀av性久久久久蜜臀av麻豆 | 国产午夜精品久久| 欧美日韩日本视频| 91美女福利视频| 国产一区二区三区免费观看| 性感美女极品91精品| 国产精品对白交换视频| 国产亚洲一二三区| 欧美一区二区免费| 9191久久久久久久久久久| 91国产丝袜在线播放| 成人亚洲一区二区一| 激情六月婷婷综合| 热久久久久久久| 日本视频一区二区三区| 午夜欧美在线一二页| 一区二区在线观看av| 一区二区中文字幕在线| 欧美国产激情二区三区 | 欧美成人r级一区二区三区| 欧美优质美女网站| 在线看国产一区| 在线日韩一区二区| 欧美视频在线观看一区二区| 欧美午夜电影一区| 在线观看亚洲精品| 色婷婷久久久综合中文字幕| 99久久精品免费精品国产| 成人av在线网站| 成人aaaa免费全部观看| 99国产精品99久久久久久| 成人夜色视频网站在线观看| 成人av电影在线播放| 99久久精品国产网站| 色婷婷久久久综合中文字幕| 在线免费观看日本一区| 欧美日韩视频在线第一区| 欧美日韩午夜精品| 日韩欧美123| 国产日韩精品一区二区三区| 中文字幕一区二区三区精华液| 国产精品女主播在线观看| 亚洲欧美偷拍卡通变态| 亚洲午夜久久久久久久久电影网| 午夜精彩视频在线观看不卡| 日本成人中文字幕在线视频| 激情图片小说一区| 波多野结衣在线一区| 91蝌蚪porny成人天涯| 欧美日韩精品欧美日韩精品一| 欧美美女黄视频| 26uuu成人网一区二区三区| 国产日韩av一区| 一区二区三区欧美在线观看| 午夜不卡在线视频| 寂寞少妇一区二区三区| 国产69精品久久久久777| 91精品福利视频| 91精品国产乱| 国产精品精品国产色婷婷| 五月天久久比比资源色| 国产一区二区三区最好精华液| 91麻豆国产福利在线观看| 91精品国产高清一区二区三区蜜臀| 久久久不卡影院| 亚洲va在线va天堂| 国产福利精品导航| 欧美人xxxx| 国产精品色一区二区三区| 亚洲不卡av一区二区三区| 成人综合在线观看| 欧美精品三级日韩久久| 国产精品卡一卡二卡三| 三级欧美韩日大片在线看| 成人激情综合网站| 欧美一区二区精品久久911| 国产精品三级电影| 美日韩一区二区三区| 色网综合在线观看| 国产女人18毛片水真多成人如厕| 亚洲国产成人va在线观看天堂| 国产成人av网站| 3d成人h动漫网站入口| 亚洲人成在线观看一区二区| 国产一区二区美女诱惑| 91精品中文字幕一区二区三区| 中文字幕的久久| 国产一区二区三区蝌蚪| 精品视频999| 亚洲欧洲成人自拍| 韩国毛片一区二区三区| 欧美日本在线视频| 亚洲一区二区欧美日韩| 97久久精品人人做人人爽| 久久精品夜色噜噜亚洲aⅴ| 另类小说图片综合网| 欧美三级中文字| 亚洲综合一二三区| 91在线观看美女| 国产精品乱人伦| 国产精品亚洲а∨天堂免在线| 日韩视频免费观看高清完整版 | 欧美aaa在线| 欧美系列在线观看| 亚洲嫩草精品久久| eeuss影院一区二区三区| 久久精品视频一区| 国产在线播放一区| 欧美不卡123| 国产在线精品一区二区不卡了| 日韩视频在线永久播放| 全部av―极品视觉盛宴亚洲| 欧美一区二区三区性视频| 亚洲成人第一页| 91精品综合久久久久久| 午夜成人免费电影|