⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 crypto.h

📁 java softwar for you to send out the request
💻 H
字号:
#ifndef _CRYPTO_H#define _CRYPTO_H#ifndef uint8#define uint8  unsigned char#endif#ifndef uint32#define uint32 unsigned long int#endiftypedef struct{    uint32 total[2];    uint32 state[4];    uint8 buffer[64];}md5_context;void md5_starts( md5_context *ctx );void md5_update( md5_context *ctx, uint8 *input, uint32 length );void md5_finish( md5_context *ctx, uint8 digest[16] );void hmac_md5( uint8 *key, int keylen, uint8 *buffer, int length,               uint8 digest[16] );typedef struct{    uint32 total[2];    uint32 state[5];    uint8 buffer[64];}sha1_context;void sha1_starts( sha1_context *ctx );void sha1_update( sha1_context *ctx, uint8 *input, uint32 length );void sha1_finish( sha1_context *ctx, uint8 digest[20] );void hmac_sha1( uint8 *key, int keylen, uint8 *buffer, int length,                uint8 digest[20] );struct rc4_state{    int x, y, m[256];};void rc4_setup( struct rc4_state *s, unsigned char *key,  int length );void rc4_crypt( struct rc4_state *s, unsigned char *data, int length );typedef struct{    uint32 erk[64];     /* encryption round keys */    uint32 drk[64];     /* decryption round keys */    int nr;             /* number of rounds */}aes_context;int  aes_set_key( aes_context *ctx, uint8 *key, int nbits );void aes_encrypt( aes_context *ctx, uint8 input[16], uint8 output[16] );void aes_decrypt( aes_context *ctx, uint8 input[16], uint8 output[16] );#endif /* crypto.h */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -