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

📄 tools.h

📁 mp3 source code decoder & encoder
💻 H
字号:
/*---------------------------------------------------------------------------
 * FILE			$Workfile: tools.h $ - Part of MP3 Stego
 *
 * AUTHOR		Copyright (c) 1998 - Fabien Petitcolas
 *                                   University of Cambridge
 *
 * PURPOSE		Encryption, compression and pseudo-random number functions for
 *              steganography. Header file.
 *
 * $Modtime: 15/08/98 10:38 $
 * $Revision: 6 $
 * $Header: /StegoLib/tools.h 6     15/08/98 10:38 Fapp2 $
 * $Log: /StegoLib/tools.h $
 * 
 * 6     15/08/98 10:38 Fapp2
 * 
 * 5     15/08/98 10:36 Fapp2
 * Started revision control on this file.
 *---------------------------------------------------------------------------
 */#ifndef _TOOLS_H_
#define _TOOLS_H_

#define MAX_LEN    (256) /* Maximum length of the passphrase */
#define BLOCK_LEN  (8)   /* Encryption block length          */

#define NEXT       (0)   /* Commands for the pseudo random   */
#define RESET      (1)   /* number generator                 */

#define DONT_EMBED (0)   /* Commabds returned by the psudo   */
#define EMBED      (1)   /* random number generator          */
#define DO_NOTHING (2)

#define COUNT_MAX  (3)   /* To increase the bandwidth, we    */
                         /* introduce a bias in the ranfom   */
                         /* bit generator by skiping one 0   */
                         /* every COUNT_MAX 0                */

#define TMP_FILE_EXT ("tmp")

void GetTemporaryFileName(char pszTemp[256]);

char *ReadPassPhrase(void);

int GetPseudoRandomBit(int cmd);

size_t CompressEncryptFile(const char *pszInput, const char *pszOutput,
                           const char *pszPassPhrase, int bCompEnc);

void Compress(const char *pszInput, const char *pszOutput);
void Uncompress(const char *pszInput, const char *pszOutput);

void Encrypt(const char *pszInput, const char *pszOutput, 
               const char *pszPassPhrase, int bEncrypt);

#endif /* _TOOLS_H_ */

⌨️ 快捷键说明

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