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

📄 arc4.h

📁 RC4加密算法是大名鼎鼎的RSA三人组中的头号人物Ron Rivest在1987年设计的密钥长度可变的流加密算法簇。之所以称其为簇
💻 H
字号:
/** * \file arc4.h */#ifndef XYSSL_ARC4_H#define XYSSL_ARC4_H/** * \brief          ARC4 context structure */typedef struct{    int x;                      /*!< permutation index */    int y;                      /*!< permutation index */    unsigned char m[256];       /*!< permutation table */}arc4_context;#ifdef __cplusplusextern "C" {#endif/** * \brief          ARC4 key schedule * * \param ctx      ARC4 context to be initialized * \param key      the secret key * \param keylen   length of the key */void arc4_setup( arc4_context *ctx, unsigned char *key, int keylen );/** * \brief          ARC4 cipher function * * \param ctx      ARC4 context * \param buf      buffer to be processed * \param buflen   amount of data in buf */void arc4_crypt( arc4_context *ctx, unsigned char *buf, int buflen );/* * \brief          Checkup routine * * \return         0 if successful, or 1 if the test failed */int arc4_self_test( int verbose );#ifdef __cplusplus}#endif#endif /* arc4.h */

⌨️ 快捷键说明

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