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

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

?? crypt.c

?? zip壓縮
?? C
?? 第 1 頁 / 共 2 頁
字號:
/*  Copyright (c) 1990-2000 Info-ZIP.  All rights reserved.  See the accompanying file LICENSE, version 2000-Apr-09 or later  (the contents of which are also included in zip.h) for terms of use.  If, for some reason, all these files are missing, the Info-ZIP license  also may be found at:  ftp://ftp.info-zip.org/pub/infozip/license.html*//*  crypt.c (full version) by Info-ZIP.      Last revised:  [see crypt.h]  This encryption/decryption source code for Info-Zip software was  originally written in Europe.  The whole source package can be  freely distributed, including from the USA.  (Prior to January 2000,  re-export from the US was a violation of US law.)  NOTE on copyright history:  Previous versions of this source package (up to version 2.8) were  not copyrighted and put in the public domain.  If you cannot comply  with the Info-Zip LICENSE, you may want to look for one of those  public domain versions. *//*  This encryption code is a direct transcription of the algorithm from  Roger Schlafly, described by Phil Katz in the file appnote.txt.  This  file (appnote.txt) is distributed with the PKZIP program (even in the  version without encryption capabilities). */#define ZCRYPT_INTERNAL#include "zip.h"#include "crypt.h"#include "ttyio.h"#if CRYPT#ifndef FALSE#  define FALSE 0#endif#ifdef ZIP   /* For the encoding task used in Zip (and ZipCloak), we want to initialize      the crypt algorithm with some reasonably unpredictable bytes, see      the crypthead() function. The standard rand() library function is      used to supply these `random' bytes, which in turn is initialized by      a srand() call. The srand() function takes an "unsigned" (at least 16bit)      seed value as argument to determine the starting point of the rand()      pseudo-random number generator.      This seed number is constructed as "Seed = Seed1 .XOR. Seed2" with      Seed1 supplied by the current time (= "(unsigned)time()") and Seed2      as some (hopefully) nondeterministic bitmask. On many (most) systems,      we use some "process specific" number, as the PID or something similar,      but when nothing unpredictable is available, a fixed number may be      sufficient.      NOTE:      1.) This implementation requires the availability of the following          standard UNIX C runtime library functions: time(), rand(), srand().          On systems where some of them are missing, the environment that          incorporates the crypt routines must supply suitable replacement          functions.      2.) It is a very bad idea to use a second call to time() to set the          "Seed2" number! In this case, both "Seed1" and "Seed2" would be          (almost) identical, resulting in a (mostly) "zero" constant seed          number passed to srand().      The implementation environment defined in the "zip.h" header should      supply a reasonable definition for ZCR_SEED2 (an unsigned number; for      most implementations of rand() and srand(), only the lower 16 bits are      significant!). An example that works on many systems would be           "#define ZCR_SEED2  (unsigned)getpid()".      The default definition for ZCR_SEED2 supplied below should be regarded      as a fallback to allow successful compilation in "beta state"      environments.    */#  include <time.h>     /* time() function supplies first part of crypt seed */   /* "last resort" source for second part of crypt seed pattern */#  ifndef ZCR_SEED2#    define ZCR_SEED2 (unsigned)3141592654L     /* use PI as default pattern */#  endif#  ifdef GLOBAL         /* used in Amiga system headers, maybe others too */#    undef GLOBAL#  endif#  define GLOBAL(g) g#else /* !ZIP */#  define GLOBAL(g) G.g#endif /* ?ZIP */#ifdef UNZIP   /* char *key = (char *)NULL; moved to globals.h */#  ifndef FUNZIP     local int testp OF((__GPRO__ ZCONST uch *h));     local int testkey OF((__GPRO__ ZCONST uch *h, ZCONST char *key));#  endif#endif /* UNZIP */#ifndef UNZIP             /* moved to globals.h for UnZip */   local ulg keys[3];     /* keys defining the pseudo-random sequence */#endif /* !UNZIP */#ifndef Trace#  ifdef CRYPT_DEBUG#    define Trace(x) fprintf x#  else#    define Trace(x)#  endif#endif#ifndef CRC_32_TAB#  define CRC_32_TAB     crc_32_tab#endif#define CRC32(c, b) (CRC_32_TAB[((int)(c) ^ (b)) & 0xff] ^ ((c) >> 8))/*********************************************************************** * Return the next byte in the pseudo-random sequence */int decrypt_byte(__G)    __GDEF{    unsigned temp;  /* POTENTIAL BUG:  temp*(temp^1) may overflow in an                     * unpredictable manner on 16-bit systems; not a problem                     * with any known compiler so far, though */    temp = ((unsigned)GLOBAL(keys[2]) & 0xffff) | 2;    return (int)(((temp * (temp ^ 1)) >> 8) & 0xff);}/*********************************************************************** * Update the encryption keys with the next byte of plain text */int update_keys(__G__ c)    __GDEF    int c;                      /* byte of plain text */{    GLOBAL(keys[0]) = CRC32(GLOBAL(keys[0]), c);    GLOBAL(keys[1]) += GLOBAL(keys[0]) & 0xff;    GLOBAL(keys[1]) = GLOBAL(keys[1]) * 134775813L + 1;    {      register int keyshift = (int)(GLOBAL(keys[1]) >> 24);      GLOBAL(keys[2]) = CRC32(GLOBAL(keys[2]), keyshift);    }    return c;}/*********************************************************************** * Initialize the encryption keys and the random header according to * the given password. */void init_keys(__G__ passwd)    __GDEF    ZCONST char *passwd;        /* password string with which to modify keys */{    GLOBAL(keys[0]) = 305419896L;    GLOBAL(keys[1]) = 591751049L;    GLOBAL(keys[2]) = 878082192L;    while (*passwd != '\0') {        update_keys(__G__ (int)*passwd);        passwd++;    }}#ifdef ZIP/*********************************************************************** * Write encryption header to file zfile using the password passwd * and the cyclic redundancy check crc. */void crypthead(passwd, crc, zfile)    ZCONST char *passwd;         /* password string */    ulg crc;                     /* crc of file being encrypted */    FILE *zfile;                 /* where to write header */{    int n;                       /* index in random header */    int t;                       /* temporary */    int c;                       /* random byte */    int ztemp;                   /* temporary for zencoded value */    uch header[RAND_HEAD_LEN-2]; /* random header */    static unsigned calls = 0;   /* ensure different random header each time */    /* First generate RAND_HEAD_LEN-2 random bytes. We encrypt the     * output of rand() to get less predictability, since rand() is     * often poorly implemented.     */    if (++calls == 1) {        srand((unsigned)time(NULL) ^ ZCR_SEED2);    }    init_keys(passwd);    for (n = 0; n < RAND_HEAD_LEN-2; n++) {        c = (rand() >> 7) & 0xff;        header[n] = (uch)zencode(c, t);    }    /* Encrypt random header (last two bytes is high word of crc) */    init_keys(passwd);    for (n = 0; n < RAND_HEAD_LEN-2; n++) {        ztemp = zencode(header[n], t);        putc(ztemp, zfile);    }    ztemp = zencode((int)(crc >> 16) & 0xff, t);    putc(ztemp, zfile);    ztemp = zencode((int)(crc >> 24) & 0xff, t);    putc(ztemp, zfile);}#ifdef UTIL/*********************************************************************** * Encrypt the zip entry described by z from file source to file dest * using the password passwd.  Return an error code in the ZE_ class. */int zipcloak(z, source, dest, passwd)    struct zlist far *z;    /* zip entry to encrypt */    FILE *source, *dest;    /* source and destination files */    ZCONST char *passwd;    /* password string */{    int c;                  /* input byte */    int res;                /* result code */    ulg n;                  /* holds offset and counts size */    ush flag;               /* previous flags */    int t;                  /* temporary */    int ztemp;              /* temporary storage for zencode value */    /* Set encrypted bit, clear extended local header bit and write local       header to output file */    if ((n = (ulg)ftell(dest)) == (ulg)-1L) return ZE_TEMP;    z->off = n;    flag = z->flg;    z->flg |= 1,  z->flg &= ~8;    z->lflg |= 1, z->lflg &= ~8;    z->siz += RAND_HEAD_LEN;    if ((res = putlocal(z, dest)) != ZE_OK) return res;    /* Initialize keys with password and write random header */    crypthead(passwd, z->crc, dest);    /* Skip local header in input file */    if (fseek(source, (long)(4 + LOCHEAD + (ulg)z->nam + (ulg)z->ext),              SEEK_CUR)) {        return ferror(source) ? ZE_READ : ZE_EOF;    }    /* Encrypt data */    for (n = z->siz - RAND_HEAD_LEN; n; n--) {        if ((c = getc(source)) == EOF) {            return ferror(source) ? ZE_READ : ZE_EOF;        }        ztemp = zencode(c, t);        putc(ztemp, dest);    }    /* Skip extended local header in input file if there is one */    if ((flag & 8) != 0 && fseek(source, 16L, SEEK_CUR)) {        return ferror(source) ? ZE_READ : ZE_EOF;    }    if (fflush(dest) == EOF) return ZE_TEMP;    return ZE_OK;}/*********************************************************************** * Decrypt the zip entry described by z from file source to file dest * using the password passwd.  Return an error code in the ZE_ class. */int zipbare(z, source, dest, passwd)    struct zlist far *z;  /* zip entry to encrypt */    FILE *source, *dest;  /* source and destination files */    ZCONST char *passwd;  /* password string */{    int c0, c1;           /* last two input bytes */    ulg offset;           /* used for file offsets */    ulg size;             /* size of input data */    int r;                /* size of encryption header */    int res;              /* return code */    ush flag;             /* previous flags */    /* Save position and skip local header in input file */    if ((offset = (ulg)ftell(source)) == (ulg)-1L ||        fseek(source, (long)(4 + LOCHEAD + (ulg)z->nam + (ulg)z->ext),              SEEK_CUR)) {        return ferror(source) ? ZE_READ : ZE_EOF;    }    /* Initialize keys with password */    init_keys(passwd);    /* Decrypt encryption header, save last two bytes */    c1 = 0;    for (r = RAND_HEAD_LEN; r; r--) {        c0 = c1;        if ((c1 = getc(source)) == EOF) {            return ferror(source) ? ZE_READ : ZE_EOF;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品日韩一区二区| 91久久一区二区| 国产福利不卡视频| 在线免费观看日韩欧美| 日韩精品在线一区| 亚洲精品国久久99热| 久热成人在线视频| 欧美亚男人的天堂| 日本一区免费视频| 狠狠色丁香婷婷综合久久片| 欧美在线999| 久久日韩粉嫩一区二区三区| 亚洲成在人线在线播放| 99久久精品国产麻豆演员表| 蜜桃视频在线观看一区| 欧美亚洲禁片免费| 18成人在线观看| 国产ts人妖一区二区| 日韩欧美中文字幕精品| 亚洲777理论| 一区二区三区欧美在线观看| 国产成人在线视频网站| 日韩三区在线观看| 日韩二区三区在线观看| 91亚洲资源网| 久久久不卡影院| 狠狠色综合日日| 日韩欧美激情四射| 午夜成人免费视频| 在线观看日韩国产| 亚洲精品欧美综合四区| www.成人网.com| 久久综合精品国产一区二区三区 | 中文字幕一区二区三区av| 国内一区二区视频| ww亚洲ww在线观看国产| 国产精品资源在线| 久久久影视传媒| 国产一区二区在线观看免费| 激情深爱一区二区| 精品福利视频一区二区三区| 蜜臀av一区二区在线观看| 日韩三级视频在线看| 久久黄色级2电影| 久久先锋影音av鲁色资源| 国产精品香蕉一区二区三区| 日本一区二区三区免费乱视频| 成人午夜在线视频| 亚洲欧美综合色| 在线免费不卡电影| 亚洲综合在线免费观看| 欧美伦理电影网| 久久99精品久久久久久| 国产91对白在线观看九色| 成人欧美一区二区三区视频网页 | 裸体一区二区三区| 久久日韩精品一区二区五区| 国产精华液一区二区三区| 中文字幕在线不卡国产视频| 欧美在线高清视频| 樱花草国产18久久久久| 91麻豆精品国产91| 另类小说综合欧美亚洲| 91精品国产色综合久久不卡电影| 精品一区二区三区视频在线观看| 国产精品亚洲一区二区三区妖精| 欧美国产欧美综合| 成人av中文字幕| 亚洲美女淫视频| 日韩久久免费av| 国产激情一区二区三区四区 | 精品国产露脸精彩对白| 97aⅴ精品视频一二三区| 婷婷开心激情综合| 国产欧美综合在线观看第十页| 色激情天天射综合网| 韩日欧美一区二区三区| 在线亚洲人成电影网站色www| 蜜桃在线一区二区三区| 亚洲欧美aⅴ...| 久久久久久久av麻豆果冻| 欧美性淫爽ww久久久久无| 国产麻豆欧美日韩一区| 午夜欧美在线一二页| 日韩欧美国产电影| 色婷婷精品大在线视频| 成人综合在线网站| 丝袜美腿亚洲色图| 国产精品不卡在线| 久久综合网色—综合色88| 欧美日韩久久一区二区| 99精品视频在线观看免费| 精品久久国产97色综合| 欧美色电影在线| 国产一区二区毛片| 久久99在线观看| 亚洲最色的网站| 国产精品久久久久天堂| 欧美精品一区二区久久久| 欧美一区二区三区不卡| 欧美日韩高清一区二区| 97久久人人超碰| 国产成人av福利| 高清不卡一二三区| 国产精品小仙女| 久久精品国产99国产精品| 蜜乳av一区二区| 欧美电影免费观看高清完整版在 | 精品在线播放免费| 三级在线观看一区二区| 一区二区三区在线视频观看 | 91精品免费在线观看| 欧美三级在线视频| 欧美视频在线一区二区三区 | 99精品国产一区二区三区不卡| 久久99国产精品尤物| 日韩av高清在线观看| 首页综合国产亚洲丝袜| 欧美中文字幕一区二区三区| 国产成人午夜片在线观看高清观看| 裸体健美xxxx欧美裸体表演| 老汉av免费一区二区三区| 奇米777欧美一区二区| 蜜臂av日日欢夜夜爽一区| 免费观看久久久4p| 激情六月婷婷久久| 激情欧美一区二区三区在线观看| 国产一区二区三区不卡在线观看 | 国产精品18久久久| 国产剧情一区在线| 免费观看成人鲁鲁鲁鲁鲁视频| 亚洲mv在线观看| 日韩中文字幕亚洲一区二区va在线 | 精品系列免费在线观看| 美腿丝袜亚洲三区| 日韩va欧美va亚洲va久久| 日精品一区二区| 亚洲美女视频在线观看| 婷婷成人激情在线网| 蜜桃精品在线观看| 国产成人aaa| 在线亚洲精品福利网址导航| 日韩亚洲国产中文字幕欧美| 久久久久久9999| 一区二区三区在线免费视频| 日韩**一区毛片| 国产精品一区在线| 在线观看日韩国产| 日韩欧美专区在线| 亚洲三级在线观看| 日韩精品一卡二卡三卡四卡无卡| 国产永久精品大片wwwapp| 色乱码一区二区三区88| 精品美女一区二区三区| 亚洲丝袜自拍清纯另类| 久久精品二区亚洲w码| 成人精品国产免费网站| 91精品国产麻豆| 亚洲色图制服诱惑 | 亚洲1区2区3区4区| 国内久久精品视频| 色婷婷久久99综合精品jk白丝| 日韩一区二区三区av| 日韩毛片一二三区| 国产真实乱偷精品视频免| 欧美中文一区二区三区| 国产亚洲美州欧州综合国| 天堂av在线一区| 色域天天综合网| 精品国精品国产| 国产精品久久久久久久浪潮网站| 亚洲精品成人在线| 午夜精品一区二区三区免费视频 | 日韩高清不卡在线| 激情六月婷婷综合| 欧美视频中文一区二区三区在线观看| 欧洲国内综合视频| 91在线免费看| 欧美日韩在线播| 亚洲另类中文字| 久久国产剧场电影| 欧美精品久久一区二区三区| 波多野结衣中文字幕一区 | 尤物在线观看一区| 国产在线播放一区| 欧美午夜精品理论片a级按摩| 国产精品成人网| 麻豆成人在线观看| 国产精品综合视频| 一本大道久久精品懂色aⅴ| 日韩精品欧美成人高清一区二区| 丁香六月久久综合狠狠色| 色诱亚洲精品久久久久久| 久久久夜色精品亚洲| 青青草成人在线观看| av激情成人网| 成人免费在线视频观看| 成a人片亚洲日本久久| 精品国产一区二区三区av性色| 日韩在线观看一区二区|