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

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

?? aes.txt

?? 一個用vc編寫的aes算法實現
?? TXT
?? 第 1 頁 / 共 2 頁
字號:

An AES (Rijndael) Implementation in C/C++ (as specified in FIPS-197)
--------------------------------------------------------------------

This code implements AES for both 32 and 64 bit systems with optional
assembler support for x86 and AMD64/EM64T (but optimised for AMD64).

The basic AES source code files are as follows:

aes.h           the header file needed to use AES in C
aescpp.h        the header file required with to use AES in C++
aesopt.h        the header file for setting options (and some common code)
aestab.h        the header file for the AES table declaration
aescrypt.c      the main C source code file for encryption and decryption
aeskey.c        the main C source code file for the key schedule
aestab.c        the main file for the AES tables
brg_types.h     a header defining some standard types and DLL defines
brg_endian.h    a header containing code to detect or define endianness
aes_x86_v1.asm  x86 assembler (YASM) alternative to aescrypt.c using
                large tables
aes_x86_v2.asm  x86 assembler (YASM) alternative to aescrypt.c using
                compressed tables
aes_amd64.asm   AMD64 assembler (YASM) alternative to aescrypt.c using
                compressed tables

In addition AES modes are implemented in the files:

aes_modes.c     AES modes with optional support for VIA ACE detection and use
aes_via_ace.h   the header file for VIA ACE support

Other associated files for testing and support are:

aesaux.h        header for auxilliary routines for testsing
aesaux.c        auxilliary routines for testsingt
aestst.h        header file for setting the testing environment
rdtsc.h         a header file that provides access to the Time Stamp Counter
aestst.c        a simple test program for quick tests of the AES code
aesgav.c        a program to generate and verify the test vector files
aesrav.c        a program to verify output against the test vector files
aestmr.c        a program to time the code on x86 systems
modetest.c      a program to test the AES modes support
vbxam.doc       a demonstration of AES DLL use from Visual Basic in Microsoft Word
vb.txt          Visual Basic code from the above example (win32 only)
aesxam.c        an example of AES use
tablegen.c      a program to generate a simplified 'aestab.c' file for
                use with compilers that find aestab.c too complex
yasm.rules      the YASM build rules file for Microsoft Visual Studio 2005
via_ace.txt     describes support for the VIA ACE cryptography engine
aes.txt         this file

Building The AES Libraries
--------------------------

A. Versions
-----------

The code can be used to build static and dynamic libraries, each in five
versions:

    C           uses C source code only
    ASM_X86_V1C large table x86 assembler code for encrypt/decrypt
    ASM_X86_V2  compressed table x86 assembler for encrypt/decrypt and keying
    ASM_X86_V2C compressed table x86 assembler code for encrypt/decrypt
    ASM_AMD64   compressed table x86 assembler code for encrypt/decrypt

The C version can be compiled for Win32 or x64, the x86 assembler versions
are for Win32 only and the AMD64 version for x64 only.

B. Types
--------

The code makes use of types defined as uint_<nn>t where <nn> is the length
of the type, for example, the unsigned 32-bit type is 'uint_32t'.  These are
NOT the same as the fixed width integer types in C99, inttypes.h and stdint.h
since several attempts to use these types have shown that support for them is
still highly variable.  But a regular expression search and replace in VC++
with search on 'uint_{:z}t' and a replace with 'uint\1_t' will convert these
types to C99 types (there should be similar search/replace facilities on other
systems).

C. YASM
-------

If you wish to use the x86 assembler files you will also need the YASM open
source x86 assembler (r1331 or later) for Windows which can be obtained from:

  http://www.tortall.net/projects/yasm/

This assembler should be placed in the bin directory used by VC++, which, for
Visual Stduio 2005, is typically:

 C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin

You will also need to move the yasm.rules file from this distribution into
the directory where Visual Studio 2005 expects to find it, which is typically:

 C:\Program Files (x86)\Microsoft Visual Studio 8\VC\VCProjectDefaults

Alternatively you can configure the path for rules files within Visual Studio.

D. Configuration
----------------

The following configurations are available as projects for Visual Studio 2005
but the following descriptions should allow them to be built in other x86
environments:

    lib_generic_c       Win32 and x64
        headers:        aes.h, aesopt.h, aestab.h, brg_endian.h, tdefs,h
        C source:       aescrypt.c, aeskey.c, aestab.c, aes_modes.c
        defines
    dll_generic_c       Win32 and x64
        headers:        aes.h, aesopt.h, aestab.h, brg_endian.h, tdefs,h
        C source:       aescrypt.c, aeskey.c, aestab.c, aes_modes.c
        defines         DLL_EXPORT

    lib_asm_x86_v1c     Win32
        headers:        aes.h, aesopt.h, aestab.h, brg_endian.h, tdefs,h
        C source:       aeskey.c, aestab.c, aes_modes.c
        x86 assembler:  aes_x86_v1.asm
        defines         ASM_X86_V1C (set for C and assembler files)
    dll_asm_x86_v1c     Win32
        headers:        aes.h, aesopt.h, aestab.h, brg_endian.h, tdefs,h
        C source:       aeskey.c, aestab.c, aes_modes.c
        x86 assembler:  aes_x86_v1.asm
        defines         DLL_EXPORT, ASM_X86_V1C (set for C and assembler files)

    lib_asm_x86_v2c     Win32
        headers:        aes.h, aesopt.h, aestab.h, brg_endian.h, tdefs,h
        C source:       aeskey.c, aestab.c, aes_modes.c
        x86 assembler:  aes_x86_v2.asm
        defines         ASM_X86_V2C (set for C and assembler files)
    dll_asm_x86_v2c     Win32
        headers:        aes.h, aesopt.h, aestab.h, brg_endian.h, tdefs,h
        C source:       aeskey.c, aestab.c, aes_modes.c
        x86 assembler:  aes_x86_v1.asm
        defines         DLL_EXPORT, ASM_X86_V2C (set for C and assembler files)

    lib_asm_x86_v2      Win32
        headers:        aes.h, aesopt.h, aestab.h, brg_endian.h, tdefs,h
        C source:       aes_modes.c
        x86 assembler:  aes_x86_v1.asm
        defines         ASM_X86_V2 (set for C and assembler files)
    dll_asm_x86_v2      Win32
        headers:        aes.h, aesopt.h, aestab.h, brg_endian.h, tdefs,h
        C source:       aes_modes.c
        x86 assembler:  aes_x86_v1.asm
        defines         DLL_EXPORT, ASM_AMD64_C (set for C and assembler files)

    lib_asm_amd64_c     x64
        headers:        aes.h, aesopt.h, aestab.h, brg_endian.h, tdefs,h
        C source:       aes_modes.c
        x86 assembler:  aes_amd64.asm
        defines         ASM_X86_V2 (set for C and assembler files)
    dll_asm_amd64_c     x64
        headers:        aes.h, aesopt.h, aestab.h, brg_endian.h, tdefs,h
        C source:       aes_modes.c
        x86 assembler:  aes_amd64.asm
        defines         DLL_EXPORT, ASM_AMD64_C (set for C and assembler files)

Notes:

ASM_X86_V1C is defined if using the version 1 assembler code (aescrypt1.asm).
            The defines in the assember file must match those in aes.h and
            aesopt.h).  Also remember to include/exclude the right assembler
            and C files in the build to avoid undefined or multiply defined
            symbols - include aescrypt1.asm and exclude aescrypt.c and
            aescrypt2.asm.

ASM_X86_V2  is defined if using the version 2 assembler code (aescrypt2.asm).
            This version provides a full, self contained assembler version
            and does not use any C source code files except for the mutiple
            block encryption modes that are provided by aes_modes.c. The define
            ASM_X86_V2 must be set on the YASM command line (or in aescrypt2.asm)
            to use this version and all C files except aec_modes.c and. for the
            DLL build, aestab.c must be excluded from the build.

ASM_X86_V2C is defined when using the version 2 assembler code (aescrypt2.asm)
            with faster key scheduling provided by the in C code (the options in
            the assember file must match those in aes.h and aesopt.h).  In this
            case aeskey.c and aestab.c are needed with aescrypt2.asm and the
            define ASM_X86_V2C must be set for both the C files and for
            asecrypt2.asm command lines (or in aesopt.h and aescrypt2.asm).
            Include aescrypt2.asm aeskey.c and aestab.c, exclude aescrypt.c for
            this option.

ASM_AMD64_C is defined when using the AMD64 assembly code because the C key
            scheduling is sued in this case.

DLL_EXPORT  must be defined to generate the DLL version of the code and
            to run tests on it

DLL_IMPORT  must be defined to use the DLL version of the code in an
            application program

Directories the paths for the various directories for test vector input and
            output have to be set in aestst.h

VIA ACE     see the via_ace.txt for this item

Static      The static libraries are named:
Libraries
                aes_lib_generic_c.lib
                aes_lib_asm_x86_v1c.lib
                aes_lib_asm_x86_v2.lib
                aes_lib_asm_x86_v2c.lib
                aes_lib_asm_amd64_c.lib

            and placed in one of the the directories:

                lib\win32\release\
                lib\win32\debug\
                lib\x64\release\
                lib\x64\debug\

            in the aes root directory depending on the platform(win32 or
            x64) and the build (release or debug). After any of these is
            built it is then copied into aes.lib, which is the library
            that is subsequently used for testing. Hence testing is for
            the last static library built.

Dynamic     The static libraries are named:
Libraries
                aes_lib_generic_c.dll
                aes_lib_asm_x86_v1c.dll
                aes_lib_asm_x86_v2.dll
                aes_lib_asm_x86_v2c.dll
                aes_lib_asm_amd64_c.dll

            and placed in one of the the directories:

                dll\win32\release\
                dll\win32\debug\
                dll\x64\release\
                dll\x64\debug\

            in the aes root directory depending on the platform(win32 or
            x64) and the build (release or debug).  Each DLL library:

                aes_<ext>.dll

            has three associated files:

                aes_dll_<ext>.lib   the library file for implicit linking
                aes_dll_<ext>.exp   the exports file
                aes_dll_<ext>.pdb   the symbol file

            After any DLL is built it and its three related files are then
            copied into aes.lib, aes.lib, aes,exp and aes.pdb, which are
            the libraries used for testing.  Hence testing is for the last
            static library or DLL built.

E. Testing
----------

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
26uuu久久天堂性欧美| 国产欧美视频一区二区三区| 国产91精品露脸国语对白| 亚洲精品免费在线观看| 精品国产一区二区三区不卡| 欧美在线观看视频在线| 国产精品一区二区三区网站| 午夜视频一区在线观看| 国产精品剧情在线亚洲| 91精品国产品国语在线不卡| 99精品1区2区| 国产精品一二三四五| 秋霞电影一区二区| 亚洲最色的网站| 国产日韩欧美a| 26uuu另类欧美| 日韩免费观看高清完整版在线观看| 99精品久久99久久久久| 国产成人免费视频一区| 久久99在线观看| 亚洲va韩国va欧美va| 亚洲欧美激情在线| 国产精品人妖ts系列视频| 欧美精品一区二区三区四区 | 国产成人免费在线观看不卡| 日韩av在线发布| 亚洲不卡av一区二区三区| 亚洲色大成网站www久久九九| 国产日韩三级在线| 国产日韩成人精品| 欧美国产日韩亚洲一区| 久久人人超碰精品| 久久久影院官网| 精品久久国产老人久久综合| 欧美精品v日韩精品v韩国精品v| 欧美亚洲禁片免费| 色乱码一区二区三区88| 97精品电影院| 91女人视频在线观看| 99视频一区二区| 91日韩精品一区| 色拍拍在线精品视频8848| 91丨国产丨九色丨pron| 99国产欧美另类久久久精品 | 日韩限制级电影在线观看| 欧美日韩卡一卡二| 欧美美女喷水视频| 欧美日韩国产片| 欧美一区二区日韩一区二区| 日韩一区二区在线播放| 欧美电视剧免费观看| 久久综合色综合88| 中文字幕乱码亚洲精品一区 | 欧美韩日一区二区三区四区| 久久久高清一区二区三区| 国产欧美一区二区精品忘忧草| 亚洲国产精品v| 亚洲欧美一区二区三区国产精品| 一区二区三区免费在线观看| 亚洲成人自拍一区| 美女被吸乳得到大胸91| 国产成人综合亚洲网站| 91免费观看视频| 欧美美女激情18p| 欧美精品一区二区三区在线播放 | 久久精品一二三| 亚洲欧洲制服丝袜| 日本欧美加勒比视频| 国产成人在线免费观看| 99riav久久精品riav| 欧美高清激情brazzers| 精品国产乱子伦一区| 一区二区中文视频| 图片区日韩欧美亚洲| 国产在线精品免费| 一本一本久久a久久精品综合麻豆| 欧美日韩国产精品成人| xfplay精品久久| 亚洲日本青草视频在线怡红院 | 成人app软件下载大全免费| 欧洲另类一二三四区| 欧美成人一区二区三区片免费| 国产精品国产三级国产普通话蜜臀| 亚洲综合男人的天堂| 精品一区二区免费| 一本色道久久综合亚洲aⅴ蜜桃| 91精品国产综合久久精品| 国产女人水真多18毛片18精品视频| 亚洲精品va在线观看| 国产在线精品免费| 欧美日韩精品欧美日韩精品一| 国产欧美日韩精品一区| 日韩精品一级二级| 91啪亚洲精品| 久久精品亚洲一区二区三区浴池| 亚洲图片欧美一区| 岛国av在线一区| 日韩限制级电影在线观看| 亚洲精品菠萝久久久久久久| 国产麻豆精品久久一二三| 欧美色爱综合网| 亚洲欧洲综合另类在线| 国产久卡久卡久卡久卡视频精品| 欧美亚洲国产一区二区三区va| 久久久久成人黄色影片| 日韩国产欧美三级| 色视频成人在线观看免| 国产精品免费丝袜| 国产麻豆一精品一av一免费| 欧美一区二区三区播放老司机| 一区二区在线观看视频 | 91性感美女视频| 久久久精品影视| 精品一区二区三区久久| 欧美精品黑人性xxxx| 一区二区三区四区乱视频| 成人激情开心网| 国产日产亚洲精品系列| 韩国av一区二区三区在线观看| 欧美日韩国产在线播放网站| 一二三区精品视频| 99久久99久久综合| 国产欧美精品一区二区三区四区 | 亚洲图片欧美一区| 91一区在线观看| 中文字幕中文字幕在线一区| 国产大陆亚洲精品国产| 国产色一区二区| 国产传媒日韩欧美成人| 久久久久国产免费免费| 国产一区二区三区四| 精品欧美久久久| 另类小说视频一区二区| 91精品国产欧美一区二区成人 | 国产一区二区免费在线| 91精品在线麻豆| 日本不卡免费在线视频| 欧美一区二区久久| 久久国产欧美日韩精品| 777欧美精品| 亚洲国产综合人成综合网站| 欧美性一区二区| 亚洲成av人片一区二区梦乃| 91麻豆精品国产91久久久资源速度 | 免费日本视频一区| 日韩欧美国产1| 国产精品99久久久久久宅男| 欧美激情一区二区三区蜜桃视频| 国产精品一区二区91| 国产婷婷精品av在线| 成人禁用看黄a在线| 中文字幕一区二区5566日韩| 91麻豆精品视频| 一区二区三区视频在线观看 | 国产精品麻豆视频| 91性感美女视频| 亚洲444eee在线观看| 91精品欧美综合在线观看最新| 日本亚洲三级在线| 欧美精品一区二区三区蜜桃 | 久久奇米777| aaa亚洲精品一二三区| 一区二区在线免费| 日韩一区二区三区在线| 国产黄色成人av| 一区二区三区国产精品| 欧美一区二区三区思思人| 国产一区二区三区黄视频 | 久久草av在线| 综合分类小说区另类春色亚洲小说欧美 | 久久嫩草精品久久久精品一| 国产精品1024| 亚洲韩国精品一区| 久久久无码精品亚洲日韩按摩| 色综合天天综合| 美女诱惑一区二区| 中文字幕二三区不卡| 在线一区二区三区| 国内精品写真在线观看| 亚洲人午夜精品天堂一二香蕉| 在线播放视频一区| av中文字幕不卡| 日韩精品一级二级 | 男人的j进女人的j一区| 日本一区二区三区电影| 7777精品伊人久久久大香线蕉超级流畅 | 亚洲成av人片一区二区| 久久久精品中文字幕麻豆发布| 欧美亚男人的天堂| 岛国一区二区在线观看| 日韩va亚洲va欧美va久久| 国产精品免费视频网站| 欧美v日韩v国产v| 欧洲精品视频在线观看| 国产一区二区三区四区五区入口| 亚洲午夜国产一区99re久久| 国产精品视频一区二区三区不卡| 91精品欧美一区二区三区综合在 | 欧美在线观看视频一区二区三区| 精品影视av免费|