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

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

?? md5impl.c

?? IBE是一種非對稱密碼技術
?? C
字號:
/* Copyright 2003-2006, Voltage Security, all rights reserved.
 */
#include "vibecrypto.h"
#include "environment.h"
#include "base.h"
#include "libctx.h"
#include "algobj.h"
#include "digest.h"
#include "md5.h"

static void VOLT_CALLING_CONV Decode VOLT_PROTO_LIST ((
   UInt32 *,
   unsigned char *,
   unsigned int
));

int MD5Init (
   VoltAlgorithmObject *obj
   )
{
  VoltDigestClassCtx *digestCtx = (VoltDigestClassCtx *)(obj->classCtx);
  VoltMD5Ctx *md5Ctx = (VoltMD5Ctx *)(digestCtx->localDigestCtx);

  /* Populate the MD5 Ctx with the initial values.
   */
  md5Ctx->countLow = 0;
  md5Ctx->countHigh = 0;
  md5Ctx->currentBlockLen = 0;
  md5Ctx->state[0] = 0x67452301;
  md5Ctx->state[1] = 0xefcdab89;
  md5Ctx->state[2] = 0x98badcfe;
  md5Ctx->state[3] = 0x10325476;

  return (0);
}

int MD5Update (
   VoltAlgorithmObject *obj,
   unsigned char *dataToDigest,
   unsigned int dataToDigestLen
   )
{
  unsigned int copyLen;
  VoltDigestClassCtx *digestCtx = (VoltDigestClassCtx *)(obj->classCtx);
  VoltMD5Ctx *md5Ctx = (VoltMD5Ctx *)(digestCtx->localDigestCtx);
  VoltLibCtx *libCtx = (VoltLibCtx *)(obj->voltObject.libraryCtx);

  if (dataToDigest == (unsigned char *)0)
    dataToDigestLen = 0;

  /* Add the input length to the running total.
   */
  md5Ctx->countLow += dataToDigestLen;
  if (md5Ctx->countLow < dataToDigestLen)
    md5Ctx->countHigh++;

  /* If we have any data in the currentBlock, start there.
   */
  if (md5Ctx->currentBlockLen != 0)
  {
    /* Copy bytes into the currentBlock. If there is enough to complete
     * a block, copy enought to complete the block and then run
     * MD5Transform on it. If not, just copy the input into the block
     * and update currentBlockLen.
     */
    copyLen = dataToDigestLen;
    if ((dataToDigestLen + md5Ctx->currentBlockLen) >= 64)
      copyLen = 64 - md5Ctx->currentBlockLen;
    Z2Memcpy (
      md5Ctx->currentBlock + md5Ctx->currentBlockLen, dataToDigest,
      copyLen);
    md5Ctx->currentBlockLen += copyLen;

    /* If we don't have an entire block, we're done.
     */
    if (md5Ctx->currentBlockLen < 64)
      return (0);

    /* We have a block, process it.
     */
    md5Ctx->MD5Transform ((Pointer)md5Ctx, md5Ctx->currentBlock);
    dataToDigestLen -= copyLen;
    dataToDigest += copyLen;
    md5Ctx->currentBlockLen = 0;
  }

  /* As long as there are complete blocks in the dataToDigest, call
   * MD5Transform on them.
   */
  while (dataToDigestLen >= 64)
  {
    md5Ctx->MD5Transform ((Pointer)md5Ctx, dataToDigest);
    dataToDigestLen -= 64;
    dataToDigest += 64;
  }

  /* If there is any data left over, copy it into the currentBlock. If
   * not, we're done.
   */
  if (dataToDigestLen == 0)
    return (0);

  Z2Memcpy (md5Ctx->currentBlock, dataToDigest, dataToDigestLen);
  md5Ctx->currentBlockLen = dataToDigestLen;

  return (0);
}

int MD5Final (
   VoltAlgorithmObject *obj,
   unsigned char *digest
   )
{
  VoltLibCtx *libCtx = (VoltLibCtx *)(obj->voltObject.libraryCtx);
  VoltDigestClassCtx *digestCtx = (VoltDigestClassCtx *)(obj->classCtx);
  VoltMD5Ctx *md5Ctx = (VoltMD5Ctx *)(digestCtx->localDigestCtx);

  /* Perform padding.
   * currentBlock | 0x80 | 0x00 00 ... 00 | length
   * The length is 8 bytes, the length, in bits, of the input.
   * If there is not enough space left in currentBlock to hold the 0x80
   * byte and the 8 length bytes, finish up the current block with 0x80
   * and 0x00 00 00 ... Then create a new block of all 00's except for
   * the last 8 bytes, the length.
   */
  Z2Memset (
    md5Ctx->currentBlock + md5Ctx->currentBlockLen, 0,
    64 - md5Ctx->currentBlockLen);
  md5Ctx->currentBlock[md5Ctx->currentBlockLen] = 0x80;
  if (md5Ctx->currentBlockLen > 55)
  {
    md5Ctx->MD5Transform ((Pointer)md5Ctx, md5Ctx->currentBlock);
    Z2Memset (md5Ctx->currentBlock, 0, 64);
  }

  /* Set the last 8 bytes to be the length. We added number of bytes,
   * we want bits, so multiply by 8 (a left-shift by 3).
   */
  md5Ctx->countHigh <<= 3;
  md5Ctx->countHigh |= (md5Ctx->countLow >> 29);
  md5Ctx->countLow <<= 3;
  md5Ctx->currentBlock[56] = (unsigned char)(md5Ctx->countLow);
  md5Ctx->currentBlock[57] = (unsigned char)(md5Ctx->countLow >> 8);
  md5Ctx->currentBlock[58] = (unsigned char)(md5Ctx->countLow >> 16);
  md5Ctx->currentBlock[59] = (unsigned char)(md5Ctx->countLow >> 24);
  md5Ctx->currentBlock[60] = (unsigned char)(md5Ctx->countHigh);
  md5Ctx->currentBlock[61] = (unsigned char)(md5Ctx->countHigh >> 8);
  md5Ctx->currentBlock[62] = (unsigned char)(md5Ctx->countHigh >> 16);
  md5Ctx->currentBlock[63] = (unsigned char)(md5Ctx->countHigh >> 24);

  md5Ctx->MD5Transform ((Pointer)md5Ctx, md5Ctx->currentBlock);

  /* The state is the digest.
   */
  digest[0] = (unsigned char)(md5Ctx->state[0]);
  digest[1] = (unsigned char)(md5Ctx->state[0] >> 8);
  digest[2] = (unsigned char)(md5Ctx->state[0] >> 16);
  digest[3] = (unsigned char)(md5Ctx->state[0] >> 24);
  digest[4] = (unsigned char)(md5Ctx->state[1]);
  digest[5] = (unsigned char)(md5Ctx->state[1] >> 8);
  digest[6] = (unsigned char)(md5Ctx->state[1] >> 16);
  digest[7] = (unsigned char)(md5Ctx->state[1] >> 24);
  digest[8] = (unsigned char)(md5Ctx->state[2]);
  digest[9] = (unsigned char)(md5Ctx->state[2] >> 8);
  digest[10] = (unsigned char)(md5Ctx->state[2] >>16);
  digest[11] = (unsigned char)(md5Ctx->state[2] >> 24);
  digest[12] = (unsigned char)(md5Ctx->state[3]);
  digest[13] = (unsigned char)(md5Ctx->state[3] >> 8);
  digest[14] = (unsigned char)(md5Ctx->state[3] >> 16);
  digest[15] = (unsigned char)(md5Ctx->state[3] >> 24);

  return (0);
}

/* Constants for MD5Transform routine.
 */
#define S11 7
#define S12 12
#define S13 17
#define S14 22
#define S21 5
#define S22 9
#define S23 14
#define S24 20
#define S31 4
#define S32 11
#define S33 16
#define S34 23
#define S41 6
#define S42 10
#define S43 15
#define S44 21

/* F, G, H and I are basic MD5 functions.
 */
#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
#define H(x, y, z) ((x) ^ (y) ^ (z))
#define I(x, y, z) ((y) ^ ((x) | (~z)))

/* ROTATE_LEFT rotates x left n bits.
 */
#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))

/* FF, GG, HH, and II transformations for rounds 1, 2, 3, and 4.
   Rotation is separate from addition to prevent recomputation.
 */
#define FF(a, b, c, d, x, s, ac) { \
  (a) += F ((b), (c), (d)) + (x) + (UInt32)(ac); \
  (a) = ROTATE_LEFT ((a), (s)); \
  (a) += (b); \
}
#define GG(a, b, c, d, x, s, ac) { \
  (a) += G ((b), (c), (d)) + (x) + (UInt32)(ac); \
  (a) = ROTATE_LEFT ((a), (s)); \
  (a) += (b); \
}
#define HH(a, b, c, d, x, s, ac) { \
  (a) += H ((b), (c), (d)) + (x) + (UInt32)(ac); \
  (a) = ROTATE_LEFT ((a), (s)); \
  (a) += (b); \
}
#define II(a, b, c, d, x, s, ac) { \
  (a) += I ((b), (c), (d)) + (x) + (UInt32)(ac); \
  (a) = ROTATE_LEFT ((a), (s)); \
  (a) += (b); \
}

void MD5Transform (
   Pointer ctx,
   unsigned char *block
   )
{
  VoltMD5Ctx *md5Ctx = (VoltMD5Ctx *)ctx;
  UInt32 a = md5Ctx->state[0];
  UInt32 b = md5Ctx->state[1];
  UInt32 c = md5Ctx->state[2];
  UInt32 d = md5Ctx->state[3];
  UInt32 *x = md5Ctx->xBlock;

  Decode (x, block, 64);

  /* Round 1 */
  FF (a, b, c, d, x[ 0], S11, 0xd76aa478); /* 1 */
  FF (d, a, b, c, x[ 1], S12, 0xe8c7b756); /* 2 */
  FF (c, d, a, b, x[ 2], S13, 0x242070db); /* 3 */
  FF (b, c, d, a, x[ 3], S14, 0xc1bdceee); /* 4 */
  FF (a, b, c, d, x[ 4], S11, 0xf57c0faf); /* 5 */
  FF (d, a, b, c, x[ 5], S12, 0x4787c62a); /* 6 */
  FF (c, d, a, b, x[ 6], S13, 0xa8304613); /* 7 */
  FF (b, c, d, a, x[ 7], S14, 0xfd469501); /* 8 */
  FF (a, b, c, d, x[ 8], S11, 0x698098d8); /* 9 */
  FF (d, a, b, c, x[ 9], S12, 0x8b44f7af); /* 10 */
  FF (c, d, a, b, x[10], S13, 0xffff5bb1); /* 11 */
  FF (b, c, d, a, x[11], S14, 0x895cd7be); /* 12 */
  FF (a, b, c, d, x[12], S11, 0x6b901122); /* 13 */
  FF (d, a, b, c, x[13], S12, 0xfd987193); /* 14 */
  FF (c, d, a, b, x[14], S13, 0xa679438e); /* 15 */
  FF (b, c, d, a, x[15], S14, 0x49b40821); /* 16 */

  /* Round 2 */
  GG (a, b, c, d, x[ 1], S21, 0xf61e2562); /* 17 */
  GG (d, a, b, c, x[ 6], S22, 0xc040b340); /* 18 */
  GG (c, d, a, b, x[11], S23, 0x265e5a51); /* 19 */
  GG (b, c, d, a, x[ 0], S24, 0xe9b6c7aa); /* 20 */
  GG (a, b, c, d, x[ 5], S21, 0xd62f105d); /* 21 */
  GG (d, a, b, c, x[10], S22,  0x2441453); /* 22 */
  GG (c, d, a, b, x[15], S23, 0xd8a1e681); /* 23 */
  GG (b, c, d, a, x[ 4], S24, 0xe7d3fbc8); /* 24 */
  GG (a, b, c, d, x[ 9], S21, 0x21e1cde6); /* 25 */
  GG (d, a, b, c, x[14], S22, 0xc33707d6); /* 26 */
  GG (c, d, a, b, x[ 3], S23, 0xf4d50d87); /* 27 */
  GG (b, c, d, a, x[ 8], S24, 0x455a14ed); /* 28 */
  GG (a, b, c, d, x[13], S21, 0xa9e3e905); /* 29 */
  GG (d, a, b, c, x[ 2], S22, 0xfcefa3f8); /* 30 */
  GG (c, d, a, b, x[ 7], S23, 0x676f02d9); /* 31 */
  GG (b, c, d, a, x[12], S24, 0x8d2a4c8a); /* 32 */

  /* Round 3 */
  HH (a, b, c, d, x[ 5], S31, 0xfffa3942); /* 33 */
  HH (d, a, b, c, x[ 8], S32, 0x8771f681); /* 34 */
  HH (c, d, a, b, x[11], S33, 0x6d9d6122); /* 35 */
  HH (b, c, d, a, x[14], S34, 0xfde5380c); /* 36 */
  HH (a, b, c, d, x[ 1], S31, 0xa4beea44); /* 37 */
  HH (d, a, b, c, x[ 4], S32, 0x4bdecfa9); /* 38 */
  HH (c, d, a, b, x[ 7], S33, 0xf6bb4b60); /* 39 */
  HH (b, c, d, a, x[10], S34, 0xbebfbc70); /* 40 */
  HH (a, b, c, d, x[13], S31, 0x289b7ec6); /* 41 */
  HH (d, a, b, c, x[ 0], S32, 0xeaa127fa); /* 42 */
  HH (c, d, a, b, x[ 3], S33, 0xd4ef3085); /* 43 */
  HH (b, c, d, a, x[ 6], S34,  0x4881d05); /* 44 */
  HH (a, b, c, d, x[ 9], S31, 0xd9d4d039); /* 45 */
  HH (d, a, b, c, x[12], S32, 0xe6db99e5); /* 46 */
  HH (c, d, a, b, x[15], S33, 0x1fa27cf8); /* 47 */
  HH (b, c, d, a, x[ 2], S34, 0xc4ac5665); /* 48 */

  /* Round 4 */
  II (a, b, c, d, x[ 0], S41, 0xf4292244); /* 49 */
  II (d, a, b, c, x[ 7], S42, 0x432aff97); /* 50 */
  II (c, d, a, b, x[14], S43, 0xab9423a7); /* 51 */
  II (b, c, d, a, x[ 5], S44, 0xfc93a039); /* 52 */
  II (a, b, c, d, x[12], S41, 0x655b59c3); /* 53 */
  II (d, a, b, c, x[ 3], S42, 0x8f0ccc92); /* 54 */
  II (c, d, a, b, x[10], S43, 0xffeff47d); /* 55 */
  II (b, c, d, a, x[ 1], S44, 0x85845dd1); /* 56 */
  II (a, b, c, d, x[ 8], S41, 0x6fa87e4f); /* 57 */
  II (d, a, b, c, x[15], S42, 0xfe2ce6e0); /* 58 */
  II (c, d, a, b, x[ 6], S43, 0xa3014314); /* 59 */
  II (b, c, d, a, x[13], S44, 0x4e0811a1); /* 60 */
  II (a, b, c, d, x[ 4], S41, 0xf7537e82); /* 61 */
  II (d, a, b, c, x[11], S42, 0xbd3af235); /* 62 */
  II (c, d, a, b, x[ 2], S43, 0x2ad7d2bb); /* 63 */
  II (b, c, d, a, x[ 9], S44, 0xeb86d391); /* 64 */

  md5Ctx->state[0] += a;
  md5Ctx->state[1] += b;
  md5Ctx->state[2] += c;
  md5Ctx->state[3] += d;
}

/* Decodes input (unsigned char) into output (UInt32). Assumes len is
     a multiple of 4.
 */
static void Decode (
   UInt32 *output,
   unsigned char *input,
   unsigned int len
   )
{
  unsigned int i, j;

  for (i = 0, j = 0; j < len; i++, j += 4)
    output[i] = ((UInt32)input[j]) | (((UInt32)input[j+1]) << 8) |
      (((UInt32)input[j+2]) << 16) | (((UInt32)input[j+3]) << 24);
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一区二区三区国产| 日韩一卡二卡三卡四卡| 成人一区在线看| 国产一区二区三区四区在线观看| 日本成人在线电影网| 日韩电影在线观看网站| 日本最新不卡在线| 美女被吸乳得到大胸91| 久久国产精品第一页| 久久国产综合精品| 久久爱www久久做| 国产精品小仙女| 成人av影院在线| 色哟哟国产精品| 在线观看免费一区| 88在线观看91蜜桃国自产| 日韩欧美一级特黄在线播放| 日韩欧美一级片| 久久精品视频一区二区三区| 亚洲国产精品ⅴa在线观看| 亚洲欧洲精品成人久久奇米网| 亚洲欧洲成人精品av97| 亚洲综合偷拍欧美一区色| 午夜精品福利在线| 蜜桃久久久久久久| 国产很黄免费观看久久| 99久久亚洲一区二区三区青草| 色婷婷综合久久久中文字幕| 欧美日本不卡视频| 欧美不卡一区二区三区四区| 欧美激情在线看| 亚洲美女区一区| 日韩av一区二区三区四区| 国内精品久久久久影院色| bt7086福利一区国产| 91激情在线视频| 91精品免费在线| 国产婷婷色一区二区三区| 综合婷婷亚洲小说| 日韩电影在线看| 成人免费看片app下载| 91年精品国产| 日韩午夜激情视频| 国产精品久久久久影视| 亚洲一二三四在线| 久久99国产精品久久99| 成人app在线观看| 欧美日韩视频专区在线播放| 欧美成人在线直播| 成人免费一区二区三区视频| 日韩精品一二区| 成人激情图片网| 欧美疯狂做受xxxx富婆| 国产精品午夜电影| 视频在线观看国产精品| 岛国精品一区二区| 欧美久久高跟鞋激| 中文字幕制服丝袜一区二区三区 | 99精品久久免费看蜜臀剧情介绍| 欧美亚洲禁片免费| 国产日本欧美一区二区| 亚洲va韩国va欧美va精品| 成人一区在线看| 日韩午夜精品视频| 一区二区高清在线| 成人毛片视频在线观看| 欧美一区二区黄色| 夜夜揉揉日日人人青青一国产精品| 久久www免费人成看片高清| 欧日韩精品视频| 中文字幕不卡三区| 裸体歌舞表演一区二区| 欧美日韩在线播| 亚洲婷婷综合色高清在线| 精品综合免费视频观看| 欧美日韩高清影院| 亚洲色欲色欲www| 国产91精品一区二区麻豆网站| 在线不卡中文字幕播放| 亚洲男人电影天堂| 成人免费视频国产在线观看| 日韩一区二区三区在线观看| 亚洲一区av在线| 一本在线高清不卡dvd| 欧美国产视频在线| 久久99精品国产.久久久久 | 国产欧美一区二区在线观看| 人人爽香蕉精品| 欧美日韩精品欧美日韩精品一综合| 中文字幕亚洲区| 国产成人免费在线| 久久人人爽爽爽人久久久| 亚洲成人自拍偷拍| 欧美亚洲综合一区| 亚洲综合免费观看高清完整版| 97久久人人超碰| 国产精品久久久久久久久动漫| 国内精品国产三级国产a久久| 欧美成人vps| 久久国产精品露脸对白| 精品美女一区二区| 六月丁香婷婷久久| 日韩视频免费观看高清完整版 | 欧洲人成人精品| 亚洲精品国产a| 色综合久久久久综合99| 亚洲视频在线一区二区| 99热这里都是精品| 亚洲欧美一区二区久久| 99riav一区二区三区| 亚洲色图欧美在线| 91小视频在线| 亚洲综合视频网| 欧美日韩第一区日日骚| 日韩福利电影在线| 精品国产网站在线观看| 国产乱码精品1区2区3区| 国产亚洲欧美一级| 成人午夜电影久久影院| 国产精品国产三级国产aⅴ入口 | 麻豆91免费看| 久久精品视频在线免费观看| 成人免费视频网站在线观看| 亚洲丝袜另类动漫二区| 91黄色小视频| 日韩电影在线一区二区| 2021中文字幕一区亚洲| 波多野结衣中文字幕一区| 国产精品不卡在线观看| 欧美性大战xxxxx久久久| 视频一区二区三区入口| 精品少妇一区二区三区免费观看| 国产乱子伦视频一区二区三区 | 国产午夜精品福利| 91麻豆文化传媒在线观看| 亚洲综合色区另类av| 欧美一区二区三区视频在线观看| 老司机免费视频一区二区三区| 久久青草欧美一区二区三区| 91啪在线观看| 六月丁香婷婷色狠狠久久| 国产精品久久影院| 欧美丰满美乳xxx高潮www| 国产精品一二三四区| 亚洲精品久久嫩草网站秘色| 欧美高清视频在线高清观看mv色露露十八 | 国产精品私人影院| 在线中文字幕一区二区| 日韩av成人高清| 国产欧美一区二区精品久导航| 91美女片黄在线| 久久精品国产免费看久久精品| 国产精品嫩草99a| 欧美高清视频一二三区 | 91色在线porny| 精品在线播放免费| 亚洲欧洲中文日韩久久av乱码| 欧美一区二区日韩一区二区| 成人国产在线观看| 日本亚洲免费观看| 亚洲色图一区二区三区| 日韩久久免费av| 97se亚洲国产综合在线| 国产一区二区三区精品视频| 亚洲午夜精品久久久久久久久| 久久久噜噜噜久久中文字幕色伊伊 | 国产精品妹子av| 欧美裸体一区二区三区| 波波电影院一区二区三区| 麻豆中文一区二区| 亚洲国产精品影院| 成人欧美一区二区三区1314 | 亚洲一级不卡视频| 中文字幕av一区二区三区免费看| 337p亚洲精品色噜噜狠狠| 色综合久久久久综合99| 国产不卡一区视频| 激情欧美日韩一区二区| 午夜精品视频一区| 亚洲黄色免费网站| 国产精品久久久久四虎| www国产精品av| 日韩欧美一级片| 91精品欧美一区二区三区综合在| 一本一道综合狠狠老| 成人黄动漫网站免费app| 国产精品羞羞答答xxdd| 久久精品99久久久| 午夜视频一区二区三区| 亚洲三级久久久| 精品久久99ma| 日韩欧美一区二区三区在线| 在线观看一区二区精品视频| 日韩二区三区在线观看| 午夜电影久久久| 亚洲同性gay激情无套| 欧美一区日本一区韩国一区| 欧美欧美午夜aⅴ在线观看| 99精品视频一区| 国产99久久久久久免费看农村|