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

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

?? sha256.c

?? KeePassX用于保護密碼的安全
?? C
字號:
/* *  FIPS-180-2 compliant SHA-256 implementation * *  Copyright (C) 2001-2003  Christophe Devine * *  This program is free software; you can redistribute it and/or modify *  it under the terms of the GNU General Public License as published by *  the Free Software Foundation; either version 2 of the License, or *  (at your option) any later version. * *  This program is distributed in the hope that it will be useful, *  but WITHOUT ANY WARRANTY; without even the implied warranty of *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *  GNU General Public License for more details. * *  You should have received a copy of the GNU General Public License *  along with this program; if not, write to the Free Software *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */#include <string.h>#include "sha256.h"#define GET_quint32(n,b,i)                       \{                                               \    (n) = ( (uint32) (b)[(i)    ] << 24 )       \        | ( (uint32) (b)[(i) + 1] << 16 )       \        | ( (uint32) (b)[(i) + 2] <<  8 )       \        | ( (uint32) (b)[(i) + 3]       );      \}#define PUT_quint32(n,b,i)                       \{                                               \    (b)[(i)    ] = (uint8) ( (n) >> 24 );       \    (b)[(i) + 1] = (uint8) ( (n) >> 16 );       \    (b)[(i) + 2] = (uint8) ( (n) >>  8 );       \    (b)[(i) + 3] = (uint8) ( (n)       );       \}void sha256_starts( sha256_context *ctx ){    ctx->total[0] = 0;    ctx->total[1] = 0;    ctx->state[0] = 0x6A09E667;    ctx->state[1] = 0xBB67AE85;    ctx->state[2] = 0x3C6EF372;    ctx->state[3] = 0xA54FF53A;    ctx->state[4] = 0x510E527F;    ctx->state[5] = 0x9B05688C;    ctx->state[6] = 0x1F83D9AB;    ctx->state[7] = 0x5BE0CD19;}void sha256_process( sha256_context *ctx, uint8 data[64] ){    uint32 temp1, temp2, W[64];    uint32 A, B, C, D, E, F, G, H;    GET_quint32( W[0],  data,  0 );    GET_quint32( W[1],  data,  4 );    GET_quint32( W[2],  data,  8 );    GET_quint32( W[3],  data, 12 );    GET_quint32( W[4],  data, 16 );    GET_quint32( W[5],  data, 20 );    GET_quint32( W[6],  data, 24 );    GET_quint32( W[7],  data, 28 );    GET_quint32( W[8],  data, 32 );    GET_quint32( W[9],  data, 36 );    GET_quint32( W[10], data, 40 );    GET_quint32( W[11], data, 44 );    GET_quint32( W[12], data, 48 );    GET_quint32( W[13], data, 52 );    GET_quint32( W[14], data, 56 );    GET_quint32( W[15], data, 60 );#define  SHR(x,n) ((x & 0xFFFFFFFF) >> n)#define ROTR(x,n) (SHR(x,n) | (x << (32 - n)))#define S0(x) (ROTR(x, 7) ^ ROTR(x,18) ^  SHR(x, 3))#define S1(x) (ROTR(x,17) ^ ROTR(x,19) ^  SHR(x,10))#define S2(x) (ROTR(x, 2) ^ ROTR(x,13) ^ ROTR(x,22))#define S3(x) (ROTR(x, 6) ^ ROTR(x,11) ^ ROTR(x,25))#define F0(x,y,z) ((x & y) | (z & (x | y)))#define F1(x,y,z) (z ^ (x & (y ^ z)))#define R(t)                                    \(                                               \    W[t] = S1(W[t -  2]) + W[t -  7] +          \           S0(W[t - 15]) + W[t - 16]            \)#define P(a,b,c,d,e,f,g,h,x,K)                  \{                                               \    temp1 = h + S3(e) + F1(e,f,g) + K + x;      \    temp2 = S2(a) + F0(a,b,c);                  \    d += temp1; h = temp1 + temp2;              \}    A = ctx->state[0];    B = ctx->state[1];    C = ctx->state[2];    D = ctx->state[3];    E = ctx->state[4];    F = ctx->state[5];    G = ctx->state[6];    H = ctx->state[7];    P( A, B, C, D, E, F, G, H, W[ 0], 0x428A2F98 );    P( H, A, B, C, D, E, F, G, W[ 1], 0x71374491 );    P( G, H, A, B, C, D, E, F, W[ 2], 0xB5C0FBCF );    P( F, G, H, A, B, C, D, E, W[ 3], 0xE9B5DBA5 );    P( E, F, G, H, A, B, C, D, W[ 4], 0x3956C25B );    P( D, E, F, G, H, A, B, C, W[ 5], 0x59F111F1 );    P( C, D, E, F, G, H, A, B, W[ 6], 0x923F82A4 );    P( B, C, D, E, F, G, H, A, W[ 7], 0xAB1C5ED5 );    P( A, B, C, D, E, F, G, H, W[ 8], 0xD807AA98 );    P( H, A, B, C, D, E, F, G, W[ 9], 0x12835B01 );    P( G, H, A, B, C, D, E, F, W[10], 0x243185BE );    P( F, G, H, A, B, C, D, E, W[11], 0x550C7DC3 );    P( E, F, G, H, A, B, C, D, W[12], 0x72BE5D74 );    P( D, E, F, G, H, A, B, C, W[13], 0x80DEB1FE );    P( C, D, E, F, G, H, A, B, W[14], 0x9BDC06A7 );    P( B, C, D, E, F, G, H, A, W[15], 0xC19BF174 );    P( A, B, C, D, E, F, G, H, R(16), 0xE49B69C1 );    P( H, A, B, C, D, E, F, G, R(17), 0xEFBE4786 );    P( G, H, A, B, C, D, E, F, R(18), 0x0FC19DC6 );    P( F, G, H, A, B, C, D, E, R(19), 0x240CA1CC );    P( E, F, G, H, A, B, C, D, R(20), 0x2DE92C6F );    P( D, E, F, G, H, A, B, C, R(21), 0x4A7484AA );    P( C, D, E, F, G, H, A, B, R(22), 0x5CB0A9DC );    P( B, C, D, E, F, G, H, A, R(23), 0x76F988DA );    P( A, B, C, D, E, F, G, H, R(24), 0x983E5152 );    P( H, A, B, C, D, E, F, G, R(25), 0xA831C66D );    P( G, H, A, B, C, D, E, F, R(26), 0xB00327C8 );    P( F, G, H, A, B, C, D, E, R(27), 0xBF597FC7 );    P( E, F, G, H, A, B, C, D, R(28), 0xC6E00BF3 );    P( D, E, F, G, H, A, B, C, R(29), 0xD5A79147 );    P( C, D, E, F, G, H, A, B, R(30), 0x06CA6351 );    P( B, C, D, E, F, G, H, A, R(31), 0x14292967 );    P( A, B, C, D, E, F, G, H, R(32), 0x27B70A85 );    P( H, A, B, C, D, E, F, G, R(33), 0x2E1B2138 );    P( G, H, A, B, C, D, E, F, R(34), 0x4D2C6DFC );    P( F, G, H, A, B, C, D, E, R(35), 0x53380D13 );    P( E, F, G, H, A, B, C, D, R(36), 0x650A7354 );    P( D, E, F, G, H, A, B, C, R(37), 0x766A0ABB );    P( C, D, E, F, G, H, A, B, R(38), 0x81C2C92E );    P( B, C, D, E, F, G, H, A, R(39), 0x92722C85 );    P( A, B, C, D, E, F, G, H, R(40), 0xA2BFE8A1 );    P( H, A, B, C, D, E, F, G, R(41), 0xA81A664B );    P( G, H, A, B, C, D, E, F, R(42), 0xC24B8B70 );    P( F, G, H, A, B, C, D, E, R(43), 0xC76C51A3 );    P( E, F, G, H, A, B, C, D, R(44), 0xD192E819 );    P( D, E, F, G, H, A, B, C, R(45), 0xD6990624 );    P( C, D, E, F, G, H, A, B, R(46), 0xF40E3585 );    P( B, C, D, E, F, G, H, A, R(47), 0x106AA070 );    P( A, B, C, D, E, F, G, H, R(48), 0x19A4C116 );    P( H, A, B, C, D, E, F, G, R(49), 0x1E376C08 );    P( G, H, A, B, C, D, E, F, R(50), 0x2748774C );    P( F, G, H, A, B, C, D, E, R(51), 0x34B0BCB5 );    P( E, F, G, H, A, B, C, D, R(52), 0x391C0CB3 );    P( D, E, F, G, H, A, B, C, R(53), 0x4ED8AA4A );    P( C, D, E, F, G, H, A, B, R(54), 0x5B9CCA4F );    P( B, C, D, E, F, G, H, A, R(55), 0x682E6FF3 );    P( A, B, C, D, E, F, G, H, R(56), 0x748F82EE );    P( H, A, B, C, D, E, F, G, R(57), 0x78A5636F );    P( G, H, A, B, C, D, E, F, R(58), 0x84C87814 );    P( F, G, H, A, B, C, D, E, R(59), 0x8CC70208 );    P( E, F, G, H, A, B, C, D, R(60), 0x90BEFFFA );    P( D, E, F, G, H, A, B, C, R(61), 0xA4506CEB );    P( C, D, E, F, G, H, A, B, R(62), 0xBEF9A3F7 );    P( B, C, D, E, F, G, H, A, R(63), 0xC67178F2 );    ctx->state[0] += A;    ctx->state[1] += B;    ctx->state[2] += C;    ctx->state[3] += D;    ctx->state[4] += E;    ctx->state[5] += F;    ctx->state[6] += G;    ctx->state[7] += H;}void sha256_update( sha256_context *ctx, uint8 *input, uint32 length ){    uint32 left, fill;    if( ! length ) return;    left = ctx->total[0] & 0x3F;    fill = 64 - left;    ctx->total[0] += length;    ctx->total[0] &= 0xFFFFFFFF;    if( ctx->total[0] < length )        ctx->total[1]++;    if( left && length >= fill )    {        memcpy( (void *) (ctx->buffer + left),                (void *) input, fill );        sha256_process( ctx, ctx->buffer );        length -= fill;        input  += fill;        left = 0;    }    while( length >= 64 )    {        sha256_process( ctx, input );        length -= 64;        input  += 64;    }    if( length )    {        memcpy( (void *) (ctx->buffer + left),                (void *) input, length );    }}static uint8 sha256_padding[64] ={ 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};void sha256_finish( sha256_context *ctx, uint8 digest[32] ){    uint32 last, padn;    uint32 high, low;    uint8 msglen[8];    high = ( ctx->total[0] >> 29 )         | ( ctx->total[1] <<  3 );    low  = ( ctx->total[0] <<  3 );    PUT_quint32( high, msglen, 0 );    PUT_quint32( low,  msglen, 4 );    last = ctx->total[0] & 0x3F;    padn = ( last < 56 ) ? ( 56 - last ) : ( 120 - last );    sha256_update( ctx, sha256_padding, padn );    sha256_update( ctx, msglen, 8 );    PUT_quint32( ctx->state[0], digest,  0 );    PUT_quint32( ctx->state[1], digest,  4 );    PUT_quint32( ctx->state[2], digest,  8 );    PUT_quint32( ctx->state[3], digest, 12 );    PUT_quint32( ctx->state[4], digest, 16 );    PUT_quint32( ctx->state[5], digest, 20 );    PUT_quint32( ctx->state[6], digest, 24 );    PUT_quint32( ctx->state[7], digest, 28 );}#ifdef TEST#include <stdlib.h>#include <stdio.h>/* * those are the standard FIPS-180-2 test vectors */static char *msg[] = {    "abc",    "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",    NULL};static char *val[] ={    "ba7816bf8f01cfea414140de5dae2223" \    "b00361a396177a9cb410ff61f20015ad",    "248d6a61d20638b8e5c026930c3e6039" \    "a33ce45964ff2167f6ecedd419db06c1",    "cdc76e5c9914fb9281a1c7e284d73e67" \    "f1809a48a497200e046d39ccc7112cd0"};int main( int argc, char *argv[] ){    FILE *f;    int i, j;    char output[65];    sha256_context ctx;    unsigned char buf[1000];    unsigned char sha256sum[32];    if( argc < 2 )    {        printf( "\n SHA-256 Validation Tests:\n\n" );        for( i = 0; i < 3; i++ )        {            printf( " Test %d ", i + 1 );            sha256_starts( &ctx );            if( i < 2 )            {                sha256_update( &ctx, (uint8 *) msg[i],                               strlen( msg[i] ) );            }            else            {                memset( buf, 'a', 1000 );                for( j = 0; j < 1000; j++ )                {                    sha256_update( &ctx, (uint8 *) buf, 1000 );                }            }            sha256_finish( &ctx, sha256sum );            for( j = 0; j < 32; j++ )            {                sprintf( output + j * 2, "%02x", sha256sum[j] );            }            if( memcmp( output, val[i], 64 ) )            {                printf( "failed!\n" );                return( 1 );            }            printf( "passed.\n" );        }        printf( "\n" );    }    else    {        if( ! ( f = fopen( argv[1], "rb" ) ) )        {            perror( "fopen" );            return( 1 );        }        sha256_starts( &ctx );        while( ( i = fread( buf, 1, sizeof( buf ), f ) ) > 0 )        {            sha256_update( &ctx, buf, i );        }        sha256_finish( &ctx, sha256sum );        for( j = 0; j < 32; j++ )        {            printf( "%02x", sha256sum[j] );        }        printf( "  %s\n", argv[1] );    }    return( 0 );}#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩国产小视频在线观看| 久久国产剧场电影| 日韩成人一级片| 国产在线精品免费| 国产宾馆实践打屁股91| 97国产精品videossex| 欧美日韩国产精品成人| 精品福利av导航| 亚洲日本va午夜在线影院| 午夜视黄欧洲亚洲| 成人综合婷婷国产精品久久蜜臀| 欧美影视一区在线| 久久久久国色av免费看影院| 一区二区三区自拍| 久久草av在线| 一本大道久久a久久精二百| 日韩精品一区二区三区中文不卡 | 亚洲午夜久久久久久久久电影网| 美国欧美日韩国产在线播放| 成人精品免费视频| 日韩欧美视频一区| 亚洲一区二区精品3399| 国产福利精品一区| 3d成人动漫网站| 综合中文字幕亚洲| 激情综合色播五月| 欧美亚洲另类激情小说| 国产精品私人自拍| 韩日av一区二区| 欧美精品在线视频| 亚洲欧美视频在线观看| 国产精品综合一区二区三区| 欧美日韩在线免费视频| 自拍偷拍国产亚洲| 国产九色精品成人porny| 91精品国产欧美一区二区18| 亚洲伦理在线精品| 国产91精品一区二区麻豆亚洲| 91精品国产色综合久久不卡蜜臀 | 欧美午夜片在线看| 中文字幕一区二区三区不卡 | 国产女主播视频一区二区| 久久99蜜桃精品| 欧美少妇xxx| 亚洲精品美国一| 成人短视频下载| 久久久国产精品麻豆| 久久爱另类一区二区小说| 欧美日本在线一区| 亚洲一区二区三区在线播放| 91香蕉视频污在线| 中文字幕一区在线观看视频| 国产乱一区二区| 精品国产免费视频| 久久国产人妖系列| 欧美一区二区三区在线电影| 亚洲国产成人porn| 欧美性三三影院| 亚洲国产一区二区三区青草影视| 色综合网站在线| 亚洲欧洲综合另类| 色偷偷久久一区二区三区| 18成人在线观看| 99re热这里只有精品免费视频| 国产女人aaa级久久久级 | 亚洲精品欧美二区三区中文字幕| 成人黄色小视频在线观看| 欧美激情一区二区三区在线| 成人午夜激情视频| 日韩一区有码在线| 91丨porny丨户外露出| 亚洲欧美日韩久久| 色婷婷av一区二区| 亚洲成人久久影院| 欧美一区午夜视频在线观看| 日本少妇一区二区| 欧美zozozo| 国产一区二区伦理片| 国产欧美日韩在线视频| 大胆亚洲人体视频| 亚洲欧美精品午睡沙发| 欧洲中文字幕精品| 天堂一区二区在线| 日韩欧美亚洲国产另类| 国产精品自在欧美一区| 国产精品日产欧美久久久久| 色综合久久六月婷婷中文字幕| 亚洲一区在线观看视频| 91精品国产入口在线| 国产一区二区三区美女| 中文字幕电影一区| 色婷婷av一区二区| 日本中文在线一区| 久久亚洲一级片| av电影在线观看完整版一区二区 | 欧美无砖砖区免费| 美女一区二区在线观看| 日本一区二区三区四区| 日本精品裸体写真集在线观看| 午夜在线电影亚洲一区| 精品少妇一区二区三区视频免付费| 国产成人亚洲综合a∨婷婷| 亚洲欧美日本韩国| 日韩一区二区免费视频| 成人午夜激情影院| 亚洲国产另类av| 欧美精品一区二区三区视频| 成人av高清在线| 亚洲3atv精品一区二区三区| 精品99999| 色一区在线观看| 麻豆91在线看| 亚洲人xxxx| 精品理论电影在线| 日本精品一区二区三区四区的功能| 蜜臀精品久久久久久蜜臀| 国产精品色呦呦| 欧美三级欧美一级| 国产精品一区三区| 亚洲国产成人porn| 国产日韩亚洲欧美综合| 欧美精品在线观看播放| 成人一二三区视频| 日本亚洲视频在线| 亚洲三级久久久| 精品国产3级a| 欧美性欧美巨大黑白大战| 精品无人码麻豆乱码1区2区 | 欧美日韩aaaaa| 成人av在线播放网站| 免费人成网站在线观看欧美高清| 最新欧美精品一区二区三区| 日韩午夜av一区| 91网站在线播放| 国模冰冰炮一区二区| 亚洲bt欧美bt精品| 国产精品久久精品日日| 日韩欧美国产小视频| 色婷婷综合激情| 国产高清亚洲一区| 日本不卡视频一二三区| 亚洲丝袜精品丝袜在线| 久久亚洲影视婷婷| 69p69国产精品| 91在线精品一区二区| 国产一区亚洲一区| 日本视频免费一区| 亚洲国产精品天堂| 亚洲视频中文字幕| 欧美国产精品中文字幕| 欧美大尺度电影在线| 欧美日韩精品免费观看视频| 99精品在线免费| 国产福利一区在线| 久久99日本精品| 日韩电影免费在线看| 亚洲伊人色欲综合网| 亚洲欧美二区三区| 国产精品久久久久一区| 久久久久久久综合| 久久色.com| 日韩美女视频在线| 制服丝袜av成人在线看| 欧美日韩一区二区三区在线 | 午夜久久久久久久久| 亚洲视频在线一区观看| 国产精品国产三级国产aⅴ无密码| 久久蜜桃av一区二区天堂| 日韩精品一区二区在线观看| 欧美日韩一本到| 欧美性极品少妇| 色欧美88888久久久久久影院| 成人免费视频网站在线观看| 国产91精品一区二区麻豆亚洲| 国内精品第一页| 国产精品一线二线三线| 国产精品一卡二| 国产成a人亚洲精| 国产精品1024久久| 粉嫩13p一区二区三区| 成人丝袜18视频在线观看| 国产ts人妖一区二区| 国产91丝袜在线播放九色| 丰满少妇久久久久久久| 成人午夜电影小说| 不卡av电影在线播放| av在线不卡网| 色噜噜狠狠色综合中国| 91成人在线精品| 欧美精品第1页| 欧美大片一区二区三区| 日韩免费在线观看| 久久久三级国产网站| 国产精品污污网站在线观看| 中文字幕国产精品一区二区| 自拍偷拍国产精品| 亚洲午夜一二三区视频| 日韩成人一级大片| 韩国v欧美v日本v亚洲v| 成人国产亚洲欧美成人综合网|