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

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

?? aestst.c

?? AES加密算法的VS2005工程實現
?? C
字號:
/*
 ---------------------------------------------------------------------------
 Copyright (c) 2003, Dr Brian Gladman, Worcester, UK.   All rights reserved.

 LICENSE TERMS

 The free distribution and use of this software in both source and binary
 form is allowed (with or without changes) provided that:

   1. distributions of this source code include the above copyright
      notice, this list of conditions and the following disclaimer;

   2. distributions in binary form include the above copyright
      notice, this list of conditions and the following disclaimer
      in the documentation and/or other associated materials;

   3. the copyright holder's name is not used to endorse products
      built using this software without specific written permission.

 ALTERNATIVELY, provided that this notice is retained in full, this product
 may be distributed under the terms of the GNU General Public License (GPL),
 in which case the provisions of the GPL apply INSTEAD OF those given above.

 DISCLAIMER

 This software is provided 'as is' with no explicit or implied warranties
 in respect of its properties, including, but not limited to, correctness
 and/or fitness for purpose.
 ---------------------------------------------------------------------------
 Issue 09/09/2006
*/

// Correct Output (for variable block size - AES_BLOCK_SIZE undefined):

// lengths:  block = 16 bytes, key = 16 bytes
// key     = 2b7e151628aed2a6abf7158809cf4f3c
// input   = 3243f6a8885a308d313198a2e0370734
// encrypt = 3925841d02dc09fbdc118597196a0b32
// decrypt = 3243f6a8885a308d313198a2e0370734

// lengths:  block = 16 bytes, key = 24 bytes
// key     = 2b7e151628aed2a6abf7158809cf4f3c762e7160f38b4da5
// input   = 3243f6a8885a308d313198a2e0370734
// encrypt = f9fb29aefc384a250340d833b87ebc00
// decrypt = 3243f6a8885a308d313198a2e0370734

// lengths:  block = 16 bytes, key = 32 bytes
// key     = 2b7e151628aed2a6abf7158809cf4f3c762e7160f38b4da56a784d9045190cfe
// input   = 3243f6a8885a308d313198a2e0370734
// encrypt = 1a6e6c2c662e7da6501ffb62bc9e93f3
// decrypt = 3243f6a8885a308d313198a2e0370734

#include <stdio.h>
#include <memory.h>
#include <windows.h>
#include <string.h>

#ifdef AES_CPP
#include "aescpp.h"
#else
#include "aes.h"
#endif
#include "aesaux.h"
#include "aestst.h"
#include "tdefs.h"

#if defined(USE_DLL)
fn_ptrs fn;
#endif

void out_state(long s0, long s1, long s2, long s3)
{
    printf("\n%08x%08x508x%08x", s0, s1, s2, s3);
}

void oblk(char m[], unsigned char v[], unsigned long n)
{   unsigned long i;
    
    printf("\n%s", m);

    for(i = 0; i < n; ++i)
        printf("%02x", v[i]);
}

void message(const char *s)   { printf(s); }

unsigned char pih[32] = // hex digits of pi
{
    0x32, 0x43, 0xf6, 0xa8, 0x88, 0x5a, 0x30, 0x8d,
    0x31, 0x31, 0x98, 0xa2, 0xe0, 0x37, 0x07, 0x34,
    0x4a, 0x40, 0x93, 0x82, 0x22, 0x99, 0xf3, 0x1d,
    0x00, 0x82, 0xef, 0xa9, 0x8e, 0xc4, 0xe6, 0xc8
};

unsigned char exh[32] =  // hex digits of e
{
    0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6,
    0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f, 0x3c,
    0x76, 0x2e, 0x71, 0x60, 0xf3, 0x8b, 0x4d, 0xa5,
    0x6a, 0x78, 0x4d, 0x90, 0x45, 0x19, 0x0c, 0xfe
};

unsigned char res[3][32] =
{
    { 0x39, 0x25, 0x84, 0x1d, 0x02, 0xdc, 0x09, 0xfb,
        0xdc, 0x11, 0x85, 0x97, 0x19, 0x6a, 0x0b, 0x32
    },
    { 0xf9, 0xfb, 0x29, 0xae, 0xfc, 0x38, 0x4a, 0x25,
        0x03, 0x40, 0xd8, 0x33, 0xb8, 0x7e, 0xbc, 0x00
    },
    { 0x1a, 0x6e, 0x6c, 0x2c, 0x66, 0x2e, 0x7d, 0xa6,
        0x50, 0x1f, 0xfb, 0x62, 0xbc, 0x9e, 0x93, 0xf3
    }
};

void cycles(volatile uint_64t *rtn)
{
#if defined( _MSCVER )
    __asm   // read the Pentium Time Stamp Counter
    {   cpuid
        rdtsc
        mov     ecx,rtn
        mov     [ecx],eax
        mov     [ecx+4],edx
        cpuid
    }
#elif defined( __GNUC__ )
    __asm__ __volatile__("rdtsc": "=A" (*rtn));
#endif
}

int main(void)
{   unsigned char   out[32], ret[32], err = 0;
    f_ectx          alge[1];
    f_dctx          algd[1];

#if defined(USE_DLL) && defined(DYNAMIC_LINK)
    HINSTANCE   h_dll;
    if(!(h_dll = init_dll(&fn))) 
        return -1;
#elif defined(STATIC_TABLES)
    gen_tabs();
#endif

    message("\nRun tests for the AES algorithm");
#if defined(USE_DLL)
    message(" (DLL Version)");
#endif
#if defined(AES_CPP)
    message(" (CPP Version)");
#endif

    memset(&alge, 0, sizeof(aes_encrypt_ctx));
    memset(&algd, 0, sizeof(aes_decrypt_ctx));

#if defined( AES_128 )
    memset(out, 0xcc, 16); memset(ret, 0xcc, 16);
    printf("\n\n// lengths:  block = 16, bytes, key = 16 bytes");
    f_enc_key128(alge, exh);
    oblk("// key     = ", exh, 16);
    oblk("// input   = ", pih, 16);
    do_enc(alge, pih, out, 1);
    oblk("// encrypt = ", out, 16);
    if(memcmp(out, res[0], 16)) { message (" error"); err += 1; }
    f_dec_key128(algd, exh);
    do_dec(algd, out, ret, 1);
    oblk("// decrypt = ", ret, 16);
    if(memcmp(ret, pih, 16)) { message (" error"); err += 2; }
#endif

#if defined( AES_192 )
    memset(out, 0xcc, 16); memset(ret, 0xcc, 16);
    printf("\n\n// lengths:  block = 16, bytes, key = 24 bytes");
    f_enc_key192(alge, exh);
    oblk("// key     = ", exh, 24);
    oblk("// input   = ", pih, 16);
    do_enc(alge, pih, out, 1);
    oblk("// encrypt = ", out, 16);
    if(memcmp(out, res[1], 16))  { message (" error"); err += 4; }
    f_dec_key192(algd, exh);
    do_dec(algd, out, ret, 1);
    oblk("// decrypt = ", ret, 16);
    if(memcmp(ret, pih, 16))  { message (" error"); err += 8; }
#endif

#if defined( AES_256 )
    memset(out, 0xcc, 16); memset(ret, 0xcc, 16);
    printf("\n\n// lengths:  block = 16, bytes, key = 32 bytes");
    f_enc_key256(alge, exh);
    oblk("// key     = ", exh, 32);
    oblk("// input   = ", pih, 16);
    do_enc(alge, pih, out, 1);
    oblk("// encrypt = ", out, 16);
    if(memcmp(out, res[2], 16))  { message (" error"); err += 16; }
    f_dec_key256(algd, exh);
    do_dec(algd, out, ret, 1);
    oblk("// decrypt = ", ret, 16);
    if(memcmp(ret, pih, 16))  { message (" error"); err += 32; }
#endif

    if(!err)
        message("\n\nThese values are all correct\n\n");
    else
        message("\n\nSome values are in error\n\n");

#if defined(USE_DLL) && defined(DYNAMIC_LINK)
    if(h_dll) FreeLibrary(h_dll);
#endif
    return 0;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久综合久久鬼色| 日精品一区二区| 色94色欧美sute亚洲线路一久 | 日韩视频123| 激情久久五月天| 中文字幕乱码久久午夜不卡| av成人免费在线| 一区二区三区四区在线| 欧美日韩不卡视频| 精品一区二区精品| 国产精品久久久久久亚洲毛片| 久久成人综合网| 国产区在线观看成人精品| av一区二区三区四区| 亚洲电影视频在线| 久久嫩草精品久久久精品一| 成人高清视频在线| 亚洲国产成人在线| 色老汉av一区二区三区| 亚洲色图都市小说| 欧美电影一区二区三区| 黄页视频在线91| 亚洲视频免费在线观看| 91精品国产综合久久福利软件 | 婷婷一区二区三区| 久久综合九色综合97婷婷| 久久精品99久久久| 国产精品免费免费| 精品视频在线免费| 国产乱淫av一区二区三区| 亚洲男帅同性gay1069| 91年精品国产| 看国产成人h片视频| 国产精品无圣光一区二区| 欧美日韩激情在线| 丝袜亚洲另类欧美综合| 日本一区二区视频在线| 成人午夜视频网站| 天天操天天色综合| 国产午夜精品一区二区 | 成人激情图片网| 亚洲aaa精品| 欧美国产成人在线| 99精品在线免费| 美日韩黄色大片| 一区二区三区在线观看欧美| 精品乱人伦小说| 成人一区二区三区中文字幕| 国产精品久久久久久亚洲毛片| 91影院在线观看| 日韩不卡免费视频| 亚洲人亚洲人成电影网站色| 日韩三级在线观看| 色噜噜久久综合| 丝袜亚洲另类丝袜在线| 精品国产91洋老外米糕| 91成人免费在线视频| 成人一区二区三区中文字幕| 亚洲欧美日韩久久| 欧美精品1区2区| 91在线观看一区二区| 精品一区二区免费| 中文无字幕一区二区三区| 日韩欧美亚洲国产另类| 欧美天堂一区二区三区| 不卡一区在线观看| 国产一区二区在线看| 自拍偷拍国产亚洲| 国产欧美一区二区在线观看| 色88888久久久久久影院野外| 午夜精品久久久久久久99水蜜桃| 日韩欧美一级二级三级久久久| 粉嫩高潮美女一区二区三区 | 亚洲影视在线观看| 中文av一区特黄| 精品久久久久久综合日本欧美| 国产精品99久| 久久成人羞羞网站| 日产国产欧美视频一区精品| 亚洲激情校园春色| 亚洲视频一区在线| 国产精品久久久久久久久免费丝袜| 在线观看精品一区| 91麻豆自制传媒国产之光| 国产a级毛片一区| 国产精品一区在线| 亚洲国产精品一区二区www在线 | 久久99精品网久久| 高潮精品一区videoshd| 美洲天堂一区二卡三卡四卡视频| 亚洲欧美中日韩| 日韩欧美一区在线观看| 欧美日韩精品一二三区| 欧美日韩一区二区在线观看视频 | 亚洲免费av高清| 欧美成人性战久久| 欧美成人一区二区三区片免费 | 91丨九色丨黑人外教| 成人福利电影精品一区二区在线观看 | 亚洲福利一区二区| 亚洲自拍偷拍综合| 夜夜嗨av一区二区三区中文字幕| 精品国产乱码久久久久久影片| 日本韩国欧美一区二区三区| 色综合欧美在线视频区| 色综合久久久久综合体桃花网| 韩国一区二区视频| 狠狠色丁香久久婷婷综合_中| 性久久久久久久久| 午夜精品久久久久久久| 成人欧美一区二区三区黑人麻豆 | 久久人人爽爽爽人久久久| 欧美日韩一二区| 欧美剧情电影在线观看完整版免费励志电影| 国产一区二区三区四区在线观看| 五月婷婷综合在线| 日韩中文字幕一区二区三区| 日韩精品乱码av一区二区| 亚洲精品国产品国语在线app| 国产亚洲综合av| 国产精品免费视频观看| 亚洲六月丁香色婷婷综合久久| 久久久三级国产网站| 国产视频一区二区在线观看| 欧美一区二区三区在线电影| 日韩视频在线你懂得| 精品剧情在线观看| 中文子幕无线码一区tr| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 色婷婷综合激情| 播五月开心婷婷综合| 91免费观看视频在线| 欧美专区在线观看一区| 日韩一区二区三区观看| 精品国产3级a| 国产精品视频免费| 一区二区三区四区不卡在线| 亚洲成av人影院在线观看网| 奇米影视7777精品一区二区| 国产一区二区三区不卡在线观看| 精品一区二区在线视频| 成人性生交大片免费看视频在线| 狠狠色丁香久久婷婷综| 免费人成在线不卡| 福利一区二区在线| 在线欧美小视频| 日韩一区二区三区电影| 亚洲国产精品成人综合色在线婷婷 | 欧美这里有精品| 欧美tk—视频vk| 精品国产乱子伦一区| 国产精品免费看片| 国产精品乱码人人做人人爱 | 久久精品亚洲精品国产欧美kt∨| 精品国产1区二区| 最近中文字幕一区二区三区| 日韩综合一区二区| 成人一区二区三区| 欧美精品日日鲁夜夜添| 91精品国产综合久久香蕉的特点 | 日韩专区一卡二卡| 琪琪久久久久日韩精品| 从欧美一区二区三区| 欧美日韩国产高清一区二区三区 | 日韩视频一区二区三区在线播放| 日韩欧美国产一区二区在线播放 | 成人免费看片app下载| 欧美高清视频在线高清观看mv色露露十八 | 欧美一区二区三区性视频| 精品写真视频在线观看| 一本大道av伊人久久综合| 日韩精品一区二区三区视频| 久久香蕉国产线看观看99| 一区二区三区在线视频观看| 韩国精品一区二区| 色视频成人在线观看免| 精品sm捆绑视频| 午夜精品久久久久久久久久| 大白屁股一区二区视频| 欧美一区二区播放| 欧美精品一区二区久久久| 国产欧美一区二区精品仙草咪 | 欧美激情在线观看视频免费| 亚洲一区二区综合| 国产精品一二二区| 欧美丰满嫩嫩电影| 亚洲欧美激情小说另类| 亚洲一区二区三区在线播放| 懂色av中文一区二区三区| 欧美精品自拍偷拍动漫精品| 亚洲天堂网中文字| 性久久久久久久久| 99久久精品费精品国产一区二区| 欧美午夜精品一区| 中文字幕一区av| 国产精品一区二区在线观看网站| 成人av中文字幕| 国产亚洲欧美激情| 久久精品国产成人一区二区三区 | 91丨porny丨首页|