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

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

?? ecrypt-sync-ae.h

?? phelix加密算法源代碼,是一個開源的加密算法
?? H
字號:
/* ecrypt-sync-ae.h *//*  * Header file for synchronous stream ciphers with authentication * mechanism.  *  * *** Please only edit parts marked with "[edit]". *** */#ifndef ECRYPT_SYNC_AE#define ECRYPT_SYNC_AE#include "ecrypt-portable.h"/* ------------------------------------------------------------------------- *//* Cipher parameters *//*  * The name of your cipher. */#define ECRYPT_NAME "Phelix"    /* [edit] */ #define ECRYPT_PROFILE "SW"/* * Specify which key, IV, and MAC sizes are supported by your * cipher. A user should be able to enumerate the supported sizes by * running the following code: * * for (i = 0; ECRYPT_KEYSIZE(i) <= ECRYPT_MAXKEYSIZE; ++i) *   { *     keysize = ECRYPT_KEYSIZE(i); * *     ... *   } * * All sizes are in bits. */#define ECRYPT_MAXKEYSIZE 256                 /* [edit] */#define ECRYPT_KEYSIZE(i) (128 + (i)*64)      /* [edit] */#define ECRYPT_MAXIVSIZE  128                 /* [edit] */#define ECRYPT_IVSIZE(i)  (128 + (i)*32)      /* [edit] */#define ECRYPT_MAXMACSIZE 128                 /* [edit] */#define ECRYPT_MACSIZE(i) (64 + (i)*16)       /* [edit] *//* ------------------------------------------------------------------------- *//* Data structures *//*  * ECRYPT_AE_ctx is the structure containing the representation of the * internal state of your cipher.  * * If your cipher also supports unauthenticated encryption, and you * want to allow the user to call the unauthenticated functions * declared in "ecrypt-sync.h" as well, you might want to set the * ECRYPT_SUPPORTS_UAE flag and define the ECRYPT_AE_ctx context as an * extension of the ECRYPT_ctx structure defined in "ecrypt-sync.h". */#undef ECRYPT_SUPPORTS_UAE                    /* [edit] */#ifndef ECRYPT_SUPPORTS_UAEtypedef struct{  /*    * [edit]   *   * In case your implementation does NOT support unauthenticated   * encryption, put here all state variable needed during the   * authenticated encryption process. If it does, use the structure   * below.   */    struct          /* key schedule (no change after SetupNonce)    */        {        u32 keySize;        /* initial key size, in bits: 0..256    */        u32 macSize;        /* mac tag     size, in bits: 0..128    */        u32 X_1_bump;       /* 4*(keySize/8)+256*(macSize mod 128)  */        u32 X_0[8];         /* processed working key material       */        u32 X_1[8];        } ks;               /* ks --> "key schedule" */    struct          /* internal cipher state (varies during block) */        {        u32 oldZ[4];        /* previous four Z_4 values for output  */        u32 Z[5];           /* 5 internal state words (160 bits)    */        u32 i;              /* block number                         */        u32 aadLen[2];      /* 64-bit aadLen counter (LSW first)    */        u32 msgLen;         /* low 32 bits of msgLen                */        u32 aadXor;         /* aadXor constant                      */        } cs;               /* cs --> "cipher state"                */} ECRYPT_AE_ctx;#else#include "ecrypt-sync.h"typedef struct{  /*   * [edit]   *   * In case your implementation does support unauthenticated   * encryption, put here all additional state variables (if any)   * needed to generate the MAC.   */} ECRYPT_macctx;typedef struct{  ECRYPT_ctx ctx;  ECRYPT_macctx macctx;} ECRYPT_AE_ctx;#endif/* ------------------------------------------------------------------------- *//* Mandatory functions *//* * Key and message independent initialization. This function will be * called once when the program starts (e.g., to build expanded S-box * tables). */void ECRYPT_init(void);/* * Key setup. It is the user's responsibility to select the values of * keysize, ivsize, and macsize from the set of supported values * specified above. */void ECRYPT_AE_keysetup(  ECRYPT_AE_ctx* ctx,   const u8* key,   u32 keysize,                /* Key size in bits. */   u32 ivsize,                 /* IV size in bits. */   u32 macsize);               /* MAC size in bits. */ /* * IV setup. After having called ECRYPT_AE_keysetup(), the user is * allowed to call ECRYPT_AE_ivsetup() different times in order to * encrypt/decrypt different messages with the same key but different * IV's. */void ECRYPT_AE_ivsetup(  ECRYPT_AE_ctx* ctx,   const u8* iv);/* * Authenticated encryption/decryption of arbitrary length messages. * * For efficiency reasons, the API provides two types of authenticated * encrypt/decrypt functions. The ECRYPT_AE_encrypt_bytes() function * (declared here) encrypts byte strings of arbitrary length, while * the ECRYPT_AE_encrypt_blocks() function (defined later) only * accepts lengths which are multiples of ECRYPT_BLOCKLENGTH. *  * The user is allowed to make multiple calls to * ECRYPT_AE_encrypt_blocks() to incrementally encrypt a long message, * but he is NOT allowed to make additional encryption calls once he * has called ECRYPT_AE_encrypt_bytes() (unless he starts a new * message of course). For example, this sequence of calls is * acceptable: * * ECRYPT_AE_keysetup(); * * ECRYPT_AE_ivsetup(); * ECRYPT_AE_encrypt_blocks(); * ECRYPT_AE_encrypt_blocks(); * ECRYPT_AE_encrypt_bytes(); * ECRYPT_AE_finalize(); * * ECRYPT_AE_ivsetup(); * ECRYPT_AE_encrypt_blocks(); * ECRYPT_AE_encrypt_blocks(); * ECRYPT_AE_finalize(); * * ECRYPT_AE_ivsetup(); * ECRYPT_AE_encrypt_bytes(); * ECRYPT_AE_finalize(); *  * The following sequence is not: * * ECRYPT_AE_keysetup(); * ECRYPT_AE_ivsetup(); * ECRYPT_AE_encrypt_blocks(); * ECRYPT_AE_encrypt_bytes(); * ECRYPT_AE_encrypt_blocks(); * ECRYPT_AE_finalize(); *//* * By default ECRYPT_AE_encrypt_bytes() and ECRYPT_AE_decrypt_bytes() * are defined as macros which redirect the call to a single function * ECRYPT_AE_process_bytes(). If you want to provide separate * encryption and decryption functions, please undef * ECRYPT_HAS_SINGLE_BYTE_FUNCTION. */#undef ECRYPT_HAS_SINGLE_BYTE_FUNCTION       /* [edit] */#ifdef ECRYPT_HAS_SINGLE_BYTE_FUNCTION#define ECRYPT_AE_encrypt_bytes(ctx, plaintext, ciphertext, msglen)   \  ECRYPT_AE_process_bytes(0, ctx, plaintext, ciphertext, msglen)#define ECRYPT_AE_decrypt_bytes(ctx, ciphertext, plaintext, msglen)   \  ECRYPT_AE_process_bytes(1, ctx, ciphertext, plaintext, msglen)void ECRYPT_AE_process_bytes(  int action,                 /* 0 = encrypt; 1 = decrypt; */  ECRYPT_AE_ctx* ctx,   const u8* input,   u8* output,   u32 msglen);                /* Message length in bytes. */ #elsevoid ECRYPT_AE_encrypt_bytes(  ECRYPT_AE_ctx* ctx,   const u8* plaintext,   u8* ciphertext,   u32 msglen);                /* Message length in bytes. */ void ECRYPT_AE_decrypt_bytes(  ECRYPT_AE_ctx* ctx,   const u8* ciphertext,   u8* plaintext,   u32 msglen);                /* Message length in bytes. */ #endif/* * MAC output. The ECRYPT_AE_finalize() function produces a MAC, and * is to be called both after the encryption and the decryption of a * message. The user is supposed to check whether both MAC's are * identical and to delete all decrypted text if they are not. */void ECRYPT_AE_finalize(  ECRYPT_AE_ctx* ctx,  u8* mac);/* ------------------------------------------------------------------------- *//* Optional features *//*  * Please set the ECRYPT_SUPPORTS_AAD flag if your cipher can * authenticate associated data (without encrypting it). The function * ECRYPT_AE_authenticate_x() will be called (possibly multiple times) * before any call to ECRYPT_AE_encrypt_x(). The function has both a * byte and a block version (defined later), which are intended to be * used in the same way as the encryption function above. */#define ECRYPT_SUPPORTS_AAD                    /* [edit] */#ifdef ECRYPT_SUPPORTS_AAD/* * If ECRYPT_SUPPORTS_INCREMENTAL_AAD flag is NOT set, the user is * only allowed to call ECRYPT_AE_authenticate_x() once. This * restriction is important for schemes which need to know the length * of the complete AAD in advance. */#define ECRYPT_SUPPORTS_INCREMENTAL_AAD       /* [edit] */void ECRYPT_AE_authenticate_bytes(  ECRYPT_AE_ctx* ctx,  const u8* aad,  u32 aadlen);                /* Length of associated data in bytes. */#endif/* ------------------------------------------------------------------------- *//* Optional optimizations *//*  * By default, the functions in this section are implemented using * calls to functions declared above. However, you might want to * implement them differently for performance reasons. *//* * All-in-one authenticated encryption/decryption of (short) packets. * * The default definitions of these functions can be found in * "ecrypt-sync-ae.c". If you want to implement them differently, * please undef the ECRYPT_USES_DEFAULT_ALL_IN_ONE flag. */#undef ECRYPT_USES_DEFAULT_ALL_IN_ONE        /* [edit] *//* * Undef ECRYPT_HAS_SINGLE_PACKET_FUNCTION if you want to provide * separate packet encryption and decryption functions. */#undef ECRYPT_HAS_SINGLE_PACKET_FUNCTION     /* [edit] */#ifdef ECRYPT_HAS_SINGLE_PACKET_FUNCTION#define ECRYPT_AE_encrypt_packet(                                     \    ctx, iv, aad, aadlen, plaintext, ciphertext, mglen, mac)          \  ECRYPT_AE_process_packet(0,                                         \    ctx, iv, aad, aadlen, plaintext, ciphertext, mglen, mac)#define ECRYPT_AE_decrypt_packet(                                     \    ctx, iv, aad, aadlen, ciphertext, plaintext, mglen, mac)          \  ECRYPT_AE_process_packet(1,                                         \    ctx, iv, aad, aadlen, ciphertext, plaintext, mglen, mac)void ECRYPT_AE_process_packet(  int action,                 /* 0 = encrypt; 1 = decrypt; */  ECRYPT_AE_ctx* ctx,   const u8* iv,  const u8* aad,  u32 aadlen,  const u8* input,   u8* output,   u32 msglen,  u8* mac);#elsevoid ECRYPT_AE_encrypt_packet(  ECRYPT_AE_ctx* ctx,   const u8* iv,  const u8* aad,  u32 aadlen,  const u8* plaintext,   u8* ciphertext,   u32 msglen,  u8* mac);void ECRYPT_AE_decrypt_packet(  ECRYPT_AE_ctx* ctx,   const u8* iv,  const u8* aad,  u32 aadlen,  const u8* ciphertext,   u8* plaintext,   u32 msglen,  u8* mac);#endif/* * Authenticated encryption/decryption of blocks. *  * By default, these functions are defined as macros. If you want to * provide a different implementation, please undef the * ECRYPT_USES_DEFAULT_BLOCK_MACROS flag and implement the functions * declared below. */#define ECRYPT_BLOCKLENGTH 4                  /* [edit] */#define ECRYPT_USES_DEFAULT_BLOCK_MACROS      /* [edit] */#ifdef ECRYPT_USES_DEFAULT_BLOCK_MACROS#define ECRYPT_AE_encrypt_blocks(ctx, plaintext, ciphertext, blocks)  \  ECRYPT_AE_encrypt_bytes(ctx, plaintext, ciphertext,                 \    (blocks) * ECRYPT_BLOCKLENGTH)#define ECRYPT_AE_decrypt_blocks(ctx, ciphertext, plaintext, blocks)  \  ECRYPT_AE_decrypt_bytes(ctx, ciphertext, plaintext,                 \    (blocks) * ECRYPT_BLOCKLENGTH)#ifdef ECRYPT_SUPPORTS_AAD#define ECRYPT_AE_authenticate_blocks(ctx, aad, blocks)               \  ECRYPT_AE_authenticate_bytes(ctx, aad,                              \    (blocks) * ECRYPT_BLOCKLENGTH)#endif#else/* * Undef ECRYPT_HAS_SINGLE_BLOCK_FUNCTION if you want to provide * separate block encryption and decryption functions. */#define ECRYPT_HAS_SINGLE_BLOCK_FUNCTION      /* [edit] */#ifdef ECRYPT_HAS_SINGLE_BLOCK_FUNCTION#define ECRYPT_AE_encrypt_blocks(ctx, plaintext, ciphertext, blocks)  \  ECRYPT_AE_process_blocks(0, ctx, plaintext, ciphertext, blocks)#define ECRYPT_AE_decrypt_blocks(ctx, ciphertext, plaintext, blocks)  \  ECRYPT_AE_process_blocks(1, ctx, ciphertext, plaintext, blocks)void ECRYPT_AE_process_blocks(  int action,                 /* 0 = encrypt; 1 = decrypt; */  ECRYPT_AE_ctx* ctx,   const u8* input,   u8* output,   u32 blocks);                /* Message length in blocks. */#elsevoid ECRYPT_AE_encrypt_blocks(  ECRYPT_AE_ctx* ctx,   const u8* plaintext,   u8* ciphertext,   u32 blocks);                /* Message length in blocks. */ void ECRYPT_AE_decrypt_blocks(  ECRYPT_AE_ctx* ctx,   const u8* ciphertext,   u8* plaintext,   u32 blocks);                /* Message length in blocks. */ #endif#ifdef ECRYPT_SUPPORTS_AADvoid ECRYPT_AE_authenticate_blocks(  ECRYPT_AE_ctx* ctx,  const u8* aad,  u32 blocks);                /* Message length in blocks. */ #endif#endif/* * If your cipher can be implemented in different ways, you can use * the ECRYPT_VARIANT parameter to allow the user to choose between * them at compile time (e.g., gcc -DECRYPT_VARIANT=3 ...). Please * only use this possibility if you really think it could make a * significant difference and keep the number of variants * (ECRYPT_MAXVARIANT) as small as possible (definitely not more than * 10). Note also that all variants should have exactly the same * external interface (i.e., the same ECRYPT_BLOCKLENGTH, etc.).  */#define ECRYPT_MAXVARIANT 1                   /* [edit] */#ifndef ECRYPT_VARIANT#define ECRYPT_VARIANT 1#endif#if (ECRYPT_VARIANT > ECRYPT_MAXVARIANT)#error this variant does not exist#endif/* ------------------------------------------------------------------------- */#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久精品国产免大香伊| 欧美成人video| www.亚洲免费av| 国内精品自线一区二区三区视频| 午夜在线成人av| 亚洲电影第三页| 亚洲成av人片一区二区梦乃| 亚洲午夜av在线| 亚洲成a人v欧美综合天堂下载 | 国产精品91一区二区| 奇米综合一区二区三区精品视频| 五月天中文字幕一区二区| 污片在线观看一区二区| 亚洲国产日韩a在线播放性色| 亚洲1区2区3区4区| 久久99国产精品免费| 国产成人福利片| 99久久免费国产| 91久久精品日日躁夜夜躁欧美| 欧美亚洲免费在线一区| 欧美精品乱码久久久久久| 欧美成人一区二区三区片免费| 久久精品夜夜夜夜久久| 中文字幕在线一区二区三区| 一区二区三区产品免费精品久久75| 亚洲午夜日本在线观看| 免费在线欧美视频| 国产成a人无v码亚洲福利| 在线亚洲免费视频| 欧美成人国产一区二区| 国产精品久久久久三级| 日韩精品欧美精品| 高清不卡在线观看| 欧美高清hd18日本| 欧美国产国产综合| 午夜欧美视频在线观看| 东方aⅴ免费观看久久av| 99re热视频这里只精品| 日韩午夜三级在线| 中文字幕色av一区二区三区| 日本va欧美va欧美va精品| www.欧美.com| 欧美电影免费观看完整版| 亚洲视频你懂的| 韩国精品主播一区二区在线观看 | 欧美大片在线观看一区二区| 日本一区二区久久| 婷婷六月综合网| 91麻豆.com| 欧美国产精品一区二区三区| 美女视频黄免费的久久| 色综合久久99| 国产精品久久久久影视| 国产在线视频一区二区| 欧美日韩国产影片| 国产精品少妇自拍| 国产乱码精品1区2区3区| 51精品视频一区二区三区| 有坂深雪av一区二区精品| 波多野结衣一区二区三区| 26uuu另类欧美| 老汉av免费一区二区三区| 欧美色图一区二区三区| **网站欧美大片在线观看| 国产成人午夜精品影院观看视频| 在线精品视频一区二区| 国产女同性恋一区二区| 极品美女销魂一区二区三区免费| 欧美日本一道本在线视频| 亚洲小说欧美激情另类| 色综合天天在线| 国产精品灌醉下药二区| 国产**成人网毛片九色 | 国产综合一区二区| 91精品欧美一区二区三区综合在| 一区二区日韩av| 欧美日韩一区高清| 亚洲一级二级在线| 欧美色电影在线| 丝袜a∨在线一区二区三区不卡| 欧美人动与zoxxxx乱| 日韩国产成人精品| 精品国产凹凸成av人网站| 久久丁香综合五月国产三级网站| 日韩欧美一卡二卡| 国产一区二区免费在线| 久久精品日产第一区二区三区高清版 | 在线观看国产精品网站| 亚洲一区在线视频观看| 91精品欧美久久久久久动漫| 美女脱光内衣内裤视频久久网站| 日韩免费高清电影| 国产精品主播直播| 日本一区二区三区免费乱视频| voyeur盗摄精品| 亚洲综合色区另类av| 日韩欧美在线影院| 韩国精品一区二区| 亚洲卡通欧美制服中文| 欧美精品乱人伦久久久久久| 国产一区91精品张津瑜| 国产精品成人在线观看| 欧美日韩成人综合在线一区二区| 日本美女一区二区| 亚洲欧洲日韩av| 在线不卡a资源高清| 国产一区二区三区高清播放| 亚洲女女做受ⅹxx高潮| 91精品国产一区二区人妖| 高清不卡一区二区在线| 午夜精品国产更新| 欧美激情综合五月色丁香| 欧美日韩电影一区| 国产成人午夜视频| 五月婷婷久久综合| 国产精品久久久久毛片软件| 欧美一区2区视频在线观看| 成人性色生活片免费看爆迷你毛片| 一区二区视频免费在线观看| 久久毛片高清国产| 4hu四虎永久在线影院成人| 国产91精品露脸国语对白| 艳妇臀荡乳欲伦亚洲一区| 国产三级精品视频| 日韩一区和二区| 欧美在线观看视频在线| 成人禁用看黄a在线| 精品一区二区av| 日韩av中文在线观看| 1区2区3区欧美| 国产亚洲婷婷免费| 精品国产凹凸成av人导航| 欧美三区在线视频| 日本久久电影网| 成人福利视频在线| 国产一区二区三区四| 日本免费新一区视频| 性感美女久久精品| 亚洲一区在线观看视频| 日韩理论片网站| 久久亚洲私人国产精品va媚药| 欧美高清一级片在线| 欧美日韩免费一区二区三区| 91女人视频在线观看| 成人国产在线观看| 成人av免费网站| 成人免费毛片a| 成人sese在线| 成人av午夜电影| 成人av在线资源网| 成人福利在线看| 99久精品国产| 在线观看免费亚洲| 欧美亚洲愉拍一区二区| 欧美日韩三级在线| 欧美一区二区三区四区在线观看| 欧美日韩成人一区| 5月丁香婷婷综合| 精品日韩欧美在线| 日本一区免费视频| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆 | 色94色欧美sute亚洲13| 91福利社在线观看| 欧美日韩成人激情| 欧美xxxx老人做受| 久久精品一区四区| 成人免费在线播放视频| 亚洲美腿欧美偷拍| 五月天激情小说综合| 国产在线一区二区综合免费视频| 国产老妇另类xxxxx| 成人动漫一区二区| 欧美日韩大陆一区二区| 欧美第一区第二区| 国产精品久久福利| 午夜精品久久久久久久| 老司机免费视频一区二区| 粉嫩av一区二区三区在线播放 | 中文字幕一区av| 亚洲韩国精品一区| 狠狠色丁香婷婷综合久久片| 成人午夜免费av| 欧美色爱综合网| 久久久亚洲欧洲日产国码αv| 国产精品你懂的| 日韩精品欧美精品| a在线欧美一区| 欧美一级欧美三级在线观看| 中文一区一区三区高中清不卡| 夜夜操天天操亚洲| 国产99久久久国产精品免费看| 色综合久久综合| 久久一区二区视频| 亚洲一卡二卡三卡四卡五卡| 国产成人亚洲综合a∨婷婷 | 成人综合在线视频| 欧美网站大全在线观看| 久久久国产一区二区三区四区小说 | 久久久久亚洲蜜桃| 亚洲一区二区影院|