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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? ripemd.c

?? rsa加密算法的c++實(shí)現(xiàn),此程序?qū)崿F(xiàn)利用公鑰解密
?? C
?? 第 1 頁 / 共 3 頁
字號(hào):
/******************************************************************************//*                                                                            *//*  Functions for arithmetic and number theory with large integers in C       *//*  Software supplement to the book "Cryptography in C and C++"               *//*  by Michael Welschenbach                                                   *//*                                                                            *//*  Module ripemd.c         Revision: 16.05.2002                              *//*                                                                            *//*  Copyright (C) 1998-2003 by Michael Welschenbach                           *//*  Copyright (C) 2001-2003 by Springer-Verlag Berlin, Heidelberg             *//*  Copyright (C) 2001-2003 by Apress L.P., Berkeley, CA                      *//*  Copyright (C) 2002-2003 by Wydawnictwa MIKOM, Poland                      *//*  Copyright (C) 2002-2003 by PHEI, P.R.China                                *//*  Copyright (C) 2002-2003 by InfoBook, Korea                                *//*  Copyright (C) 2002-2003 by Triumph Publishing, Russia                     *//*                                                                            *//*  All Rights Reserved                                                       *//*                                                                            *//*  The software may be used for noncommercial purposes and may be altered,   *//*  as long as the following conditions are accepted without any              *//*  qualification:                                                            *//*                                                                            *//*  (1) All changes to the sources must be identified in such a way that the  *//*      changed software cannot be misinterpreted as the original software.   *//*                                                                            *//*  (2) The statements of copyright may not removed or altered.               *//*                                                                            *//*  (3) The following DISCLAIMER is accepted:                                 *//*                                                                            *//*  DISCLAIMER:                                                               *//*                                                                            *//*  There is no warranty for the software contained on this CD-ROM, to the    *//*  extent permitted by applicable law. The copyright holders provide the     *//*  software `as is' without warranty of any kind, either expressed or        *//*  implied, including, but not limited to, the implied warranty of fitness   *//*  for a particular purpose. The entire risk as to the quality and           *//*  performance of the program is with you.                                   *//*                                                                            *//*  In no event unless required by applicable law or agreed to in writing     *//*  will the copyright holders, or any of the individual authors named in     *//*  the source files, be liable to you for damages, including any general,    *//*  special, incidental or consequential damages arising out of any use of    *//*  the software or out of inability to use the software (including but not   *//*  limited to any financial losses, loss of data or data being rendered      *//*  inaccurate or losses sustained by you or by third parties as a result of  *//*  a failure of the software to operate with any other programs), even if    *//*  such holder or other party has been advised of the possibility of such    *//*  damages.                                                                  *//*                                                                            *//******************************************************************************/#include <stdio.h>#include <string.h>#include "flint.h"#include "ripemd.h"#ifndef inline#if (_MSC_VER >= 1100) || defined __GNUC__#define inline __inline#endif#endif/* Prototypes of local functions */static void appetize (ULONG *);static void swallow (ULONG *, ULONG *);static void digest (ULONG *, UCHAR *, ULONG[]);static void appetize128 (ULONG *);static void swallow128 (ULONG *, ULONG *);static void digest128 (ULONG *, UCHAR *, ULONG[]);#ifdef FLINT_SECUREstatic inline void ZeroUlong (ULONG *);static inline void Zero2Ulong (ULONG *, ULONG *);static inline void Zero4Ulong (ULONG *, ULONG *, ULONG *, ULONG *);static inline void ZeroUcharArray (void *, size_t);#endif/* Macros *//* Rotation, simulation of assembler instruction for barrel shifting */#define ROL(X, N)   (((X) << (N)) | ((X) >> (32-(N))))/* RIPEMD specific chaining of intermediate values in rounds */#define CHAIN128(A, B, C, D, X, S) { \          (A) = (D); (D) = (C); (C) = (B); \          (B) = ROL((X), (S)); \        }#define CHAIN160(A, B, C, D, E, X, S) { \          (A) = (E); (E) = (D); (D) = ROL((C), 10); (C) = (B); \          (B) = ROL((X), (S)) + (A); \        }/* Conversion of an array of type UCHAR into a value of type ULONG */#if defined LITTLE_ENDIAN#define UC2UL(ucptr)  *(unsigned long *)((ucptr))#else#define UC2UL(ucptr) \          (((unsigned long) *((ucptr)+3) << 24) | \           ((unsigned long) *((ucptr)+2) << 16) | \           ((unsigned long) *((ucptr)+1) <<  8) | \           ((unsigned long) *(ucptr)))#endif/* Addition of a single-digit number b to a double-digit number represented *//* by an array (a[1],a[0]). A carry in a[0]+=b is handled by increasing a[1]. */#define ADDC(a, b) { \          if (((a)[0] + (b)) < (a)[0]) {(a)[1]++;} \          (a)[0] += (b); \        }/* Constants *//* Choice of message words... */static const intr1[] = { 0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15,         7,  4, 13,  1, 10,  6, 15,  3, 12,  0,  9,  5,  2, 14, 11,  8,         3, 10, 14,  4,  9, 15,  8,  1,  2,  7,  0,  6, 13, 11,  5, 12,         1,  9, 11, 10,  0,  8, 12,  4, 13,  3,  7, 15, 14,  5,  6,  2,         4,  0,  5,  9,  7, 12,  2, 10, 14,  1,  3,  8, 11,  6, 15, 13};/* ... for parallel rounds */static const intr2[] = { 5, 14,  7,  0,  9,  2, 11,  4, 13,  6, 15,  8,  1, 10,  3, 12,         6, 11,  3,  7,  0, 13,  5, 10, 14, 15,  8, 12,  4,  9,  1,  2,        15,  5,  1,  3,  7, 14,  6,  9, 11,  8, 12,  2, 10,  0,  4, 13,         8,  6,  4,  1,  3, 11, 15,  0,  5, 12,  2, 13,  9,  7, 10, 14,        12, 15, 10,  4,  1,  5,  8,  7,  6,  2, 13, 14,  0,  3,  9, 11};/* Length of rotations... */static const ints1[] = {11, 14, 15, 12,  5,  8,  7,  9, 11, 13, 14, 15,  6,  7,  9,  8,         7,  6,  8, 13, 11,  9,  7, 15,  7, 12, 15,  9, 11,  7, 13, 12,        11, 13,  6,  7, 14,  9, 13, 15, 14,  8, 13,  6,  5, 12,  7,  5,        11, 12, 14, 15, 14, 15,  9,  8,  9, 14,  5,  6,  8,  6,  5, 12,         9, 15,  5, 11,  6,  8, 13, 12,  5, 12, 13, 14, 11,  8,  5,  6};/* ... for parallel rounds */static const ints2[] = { 8,  9,  9, 11, 13, 15, 15,  5,  7,  7,  8, 11, 14, 14, 12,  6,         9, 13, 15,  7, 12,  8,  9, 11,  7,  7, 12,  7,  6, 15, 13, 11,         9,  7, 15, 11,  8,  6,  6, 14, 12, 13,  5, 14, 13, 13,  7,  5,        15,  5,  8, 11, 14, 14,  6, 14,  6,  9, 12,  9, 12,  5, 15,  8,         8,  5, 12,  9, 12,  5, 14,  6,  8, 13,  6,  5, 15, 13, 11, 11};/*****************************************************************************//* RIPEMD-160 API                                                            *//*****************************************************************************//******************************************************************************//*                                                                            *//*  Function:   Hashing of a message of length byte in a single step          *//*  Syntax:     void ripemd160 (UCHAR *HashRes, UCHAR *clear, ULONG length);  *//*  Input:      UCHAR *clear (Pointer to message block)                       *//*              ULONG length (Length of message block)                        *//*  Output:     UCHAR *HashRes (Hash Value)                                   *//*  Returns:    -                                                             *//*                                                                            *//******************************************************************************/void __FLINT_APIripemd160 (UCHAR *HashRes, UCHAR *clear, ULONG length){  RMDSTAT hws;  ripeinit (&hws);  ripefinish (HashRes, &hws, clear, length);#ifdef FLINT_SECURE  ZeroUcharArray (&hws, sizeof (hws));#endif /* FLINT_SECURE */  return;}/******************************************************************************//* Functions for blockwise hashing a message in several steps                 *//* Procedure: Initialization with ripeinit                                    *//*            Hashing of block1, block2,... ,blockn with function ripehash    *//*            Finish operation with function ripefinish                       *//******************************************************************************//******************************************************************************//*                                                                            *//*  Function:   Initialization of RIPEMD-160 function                         *//*  Syntax:     void ripeinit (RMDSTAT *hws);                                 *//*  Input:      RMDSTAT *hws (RIPEMD status buffer)                           *//*  Output:     -                                                             *//*  Returns:    -                                                             *//*                                                                            *//******************************************************************************/void __FLINT_APIripeinit (RMDSTAT *hws){  appetize (hws->stomach);  hws->total[0] = 0;  hws->total[1] = 0;}/******************************************************************************//*                                                                            *//*  Function:   Hashing of a message block                                    *//*  Syntax:     int ripehash (RMDSTAT *hws, UCHAR *clear, ULONG length);      *//*  Input:      RMDSTAT *hws (RIPEMD status buffer)                           *//*              UCHAR *clear (Pointer to message block)                       *//*              ULONG length (Length of message block i bytes = 0 mod 64)     *//*  Output:     -                                                             *//*  Returns:    E_CLINT_OK if everything is O.K.                              *//*              E_CLINT_RMD if length != 0 mod 64                             *//*                                                                            *//******************************************************************************/int __FLINT_APIripehash (RMDSTAT *hws, UCHAR *clear, ULONG length){  ULONG ULBlock[16];    /* message block holding 16 values of type ULONG  */  ULONG noofblocks;     /* Number of blocks of 16 ULONG-vyluse            */  ULONG i, j;           /* Counter                                        */  /* If incomplete 64 byte block exists... */  if (length & 63)    {      return E_CLINT_RMD; /* ...return error code */    }  /* Number of 64 byte message blocks in clear */  noofblocks = length >> 6;  /* Process 64 byte message blocks in clear */  for (i = 0; i < noofblocks; i++)    {        for (j = 0; j < 16; j++)          {            ULBlock[j] = UC2UL (clear);            clear += 4;          }        swallow (hws->stomach, ULBlock);    }  /* Add length of message in clear to hws->total */  ADDC (hws->total, length);#ifdef FLINT_SECURE  /* Overwrite temporary variables */  Zero4Ulong (&ULBlock[0], &ULBlock[1], &ULBlock[2], &ULBlock[3]);  Zero4Ulong (&ULBlock[4], &ULBlock[5], &ULBlock[6], &ULBlock[7]);  Zero4Ulong (&ULBlock[8], &ULBlock[9], &ULBlock[10], &ULBlock[11]);  Zero4Ulong (&ULBlock[12], &ULBlock[13], &ULBlock[14], &ULBlock[15]);#endif  return E_CLINT_OK;}/******************************************************************************//*                                                                            *//*  Function:   Finish hash function RIPEMD-160                               *//*  Syntax:     void ripefinish (UCHAR *HashRes, RMDSTAT *hws, UCHAR *clear,  *//*                                                            ULONG length);  *//*  Input:      RMDSTAT *hws (RIPEMD status buffer)                           *//*              UCHAR *clear (Pointer to the last message block               *//*              ULONG length (Length of message block in bytes)               *//*  Output:     UCHAR HashRes (20 byte hash value)                            *//*  Returns:    -                                                             *//*                                                                            *//******************************************************************************/void __FLINT_APIripefinish (UCHAR *HashRes, RMDSTAT *hws, UCHAR *clear, ULONG length){  unsigned i;  /* Number of bytes in complete blocks */  ULONG blength = (length >> 6) << 6;  /* Process complete blocks in clear */  ripehash (hws, clear, blength);  /* Add length of message in clear to hws->total */  ADDC (hws->total,length - blength);  /* Process last incomplete block with padding and length of message */  digest (hws->stomach, clear + blength, hws->total);  for (i = 0; i < 20; i += 4)

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
97久久超碰精品国产| 欧美日韩视频专区在线播放| 亚洲精品videosex极品| 欧美不卡一区二区| 一本一道久久a久久精品| 韩国女主播一区| 亚洲va韩国va欧美va| 中文字幕一区av| 久久久国产精品午夜一区ai换脸| 欧美视频一区二区三区在线观看 | 亚洲人成精品久久久久| 日韩三区在线观看| 日本电影亚洲天堂一区| 成人av在线观| 岛国精品在线播放| 国产一区高清在线| 麻豆久久一区二区| 三级在线观看一区二区| 亚洲精品高清在线观看| 欧美国产国产综合| 国产午夜精品福利| xvideos.蜜桃一区二区| 欧美成人伊人久久综合网| 欧美三级电影一区| 91福利在线播放| 欧美中文字幕一二三区视频| 94色蜜桃网一区二区三区| 成人av动漫网站| 波多野结衣精品在线| 国产精品乡下勾搭老头1| 国产专区综合网| 国产美女娇喘av呻吟久久| 九九久久精品视频| 国内精品国产成人国产三级粉色| 免费成人结看片| 国产在线精品一区二区夜色| 精品一区二区三区不卡 | 一区二区三区加勒比av| 亚洲欧美日韩成人高清在线一区| 国产精品乱子久久久久| 中文久久乱码一区二区| 国产精品不卡一区二区三区| 亚洲天堂网中文字| 亚洲影院理伦片| 午夜成人在线视频| 美女性感视频久久| 精东粉嫩av免费一区二区三区| 精品无人码麻豆乱码1区2区 | 激情五月婷婷综合| 国产麻豆午夜三级精品| 国产成人免费网站| 成人午夜激情片| 色婷婷激情一区二区三区| 在线视频一区二区三区| 欧美视频一区二区三区在线观看| 91精品国产综合久久久久久漫画| 欧美白人最猛性xxxxx69交| 久久先锋影音av| 中文字幕色av一区二区三区| 一区二区三区欧美激情| 日韩主播视频在线| 国产在线播放一区| 97久久精品人人澡人人爽| 欧美探花视频资源| 日韩欧美一区二区三区在线| 久久精品一二三| 亚洲欧美另类久久久精品2019| 亚洲第一久久影院| 国产一区二区免费看| 不卡影院免费观看| 欧美日韩精品一区二区三区四区 | 中文字幕一区二区三| 亚洲一区二区三区四区的| 日本在线不卡一区| 国产成人av电影免费在线观看| 日本二三区不卡| 久久日一线二线三线suv| 亚洲色图在线视频| 久久99精品一区二区三区| 99精品国产热久久91蜜凸| 欧美精品久久久久久久久老牛影院| 精品福利在线导航| 一区二区不卡在线播放 | 夜夜揉揉日日人人青青一国产精品| 蜜臀av性久久久久蜜臀aⅴ流畅| 波多野结衣在线一区| 欧美女孩性生活视频| 欧美国产日韩亚洲一区| 日本不卡视频在线观看| 99久久精品国产导航| 精品三级在线看| 亚洲福利视频一区| 成人av在线观| 久久青草欧美一区二区三区| 婷婷成人激情在线网| 99久久亚洲一区二区三区青草| 日韩欧美视频一区| 亚洲国产精品久久艾草纯爱| 丁香一区二区三区| 欧美大片顶级少妇| 亚洲午夜精品网| 99久久精品免费精品国产| 欧美精品一区二区三区蜜桃| 亚洲综合无码一区二区| 成人av影视在线观看| 久久综合色8888| 久久精品国产一区二区三| 欧美日韩视频第一区| 亚洲人精品午夜| 成人激情午夜影院| 久久精品亚洲麻豆av一区二区| 五月婷婷激情综合网| 91福利在线看| 亚洲免费av观看| 99re免费视频精品全部| 中国色在线观看另类| 国内国产精品久久| 欧美sm极限捆绑bd| 日韩高清不卡一区| 欧美日韩在线一区二区| 一区二区免费看| 在线亚洲一区二区| 亚洲你懂的在线视频| 99久久777色| 亚洲欧洲精品一区二区三区| 成人永久免费视频| 国产精品国产精品国产专区不蜜 | 一区二区视频免费在线观看| 成人av网站大全| 亚洲视频小说图片| 91网上在线视频| 一区二区成人在线| 欧美日韩在线播放三区| 亚洲综合一二区| 在线不卡免费欧美| 日本不卡一二三区黄网| 日韩视频免费直播| 国产一区二区三区四区五区入口 | 日本国产一区二区| 一二三四社区欧美黄| 欧美色网一区二区| 同产精品九九九| 日韩精品一区在线观看| 狠狠色丁香九九婷婷综合五月| 精品粉嫩aⅴ一区二区三区四区| 国产美女精品一区二区三区| 欧美国产欧美综合| 91美女精品福利| 亚洲第一精品在线| 欧美成人三级在线| 国产jizzjizz一区二区| 国产精品丝袜黑色高跟| 色婷婷av一区二区| 免费国产亚洲视频| 欧美国产日韩在线观看| www.日韩av| 亚欧色一区w666天堂| 91精品国产综合久久久久久久久久 | 日韩伦理电影网| 欧美日韩久久久久久| 美腿丝袜在线亚洲一区 | 婷婷久久综合九色国产成人| 日韩精品综合一本久道在线视频| 国产福利一区二区三区视频| 亚洲欧洲国产日韩| 9191精品国产综合久久久久久| 久久99深爱久久99精品| 日本一区二区免费在线| 91福利在线免费观看| 麻豆freexxxx性91精品| 欧美韩国日本一区| 欧美日韩高清在线播放| 国产福利精品导航| 亚洲国产另类av| 国产日韩在线不卡| 欧美日韩综合色| 岛国av在线一区| 日本最新不卡在线| 国产精品色在线| 日韩欧美一区二区在线视频| 成人激情小说网站| 美女视频黄久久| 一区二区三区蜜桃| 国产日本一区二区| 欧美精品日韩一区| 91视频免费播放| 国产在线精品国自产拍免费| 夜夜嗨av一区二区三区| 国产三级一区二区| 欧美一区二区久久| 色婷婷亚洲综合| 国产成人免费视频网站高清观看视频 | 51精品国自产在线| 一本到不卡免费一区二区| 国产精品一区二区视频| 亚洲国产裸拍裸体视频在线观看乱了 | 国产大片一区二区| 蜜臀久久99精品久久久画质超高清| 综合久久国产九一剧情麻豆| 久久婷婷一区二区三区|