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

📄 blowfish.h

📁 Password Safe Password Safe is a password database utility. Users can keep their passwords securely
💻 H
字号:
// BlowFish.h//-----------------------------------------------------------------------------#define MAXKEYBYTES 56 // unusedtypedef unsigned char block[8];union aword{   unsigned long word;   unsigned char byte [4];   struct   {      unsigned int byte3:8;      unsigned int byte2:8;      unsigned int byte1:8;      unsigned int byte0:8;   } w;};class BlowFish{public:   BlowFish(unsigned char* key, int keylen);  ~BlowFish();   void Encrypt(const block in, block out);   void Decrypt(const block in, block out);  enum {bf_N = 16};private:  unsigned long bf_S[4][256];  unsigned long bf_P[bf_N + 2];  const static unsigned long tempbf_S[4][256];  const static unsigned long tempbf_P[bf_N + 2];  void Blowfish_encipher(unsigned long* xl, unsigned long* xr);  void Blowfish_decipher(unsigned long* xl, unsigned long* xr);  void InitializeBlowfish(unsigned char key[], short keybytes);};//-----------------------------------------------------------------------------// Local variables:// mode: c++// End:

⌨️ 快捷键说明

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