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

📄 cipherutils.h

📁 vc环境下的pgp源码
💻 H
字号:
//////////////////////////////////////////////////////////////////////////////
// CipherUtils.h
//
// Declarations for CipherUtils.cpp.
//////////////////////////////////////////////////////////////////////////////

// $Id: CipherUtils.h,v 1.4 1998/12/14 18:55:30 nryan Exp $

// Copyright (C) 1998 by Network Associates, Inc.
// All rights reserved.

#ifndef Included_CipherUtils_h	// [
#define Included_CipherUtils_h

#include "SecureString.h"

#include "Cast5.h"


////////
// Types
////////

typedef PGPUInt32 CRC32;
typedef struct PassphraseKey PassphraseKey;


/////////////////////
// Exported Functions
/////////////////////

CRC32	ComputeCRC32(const PGPUInt32 *theDWords, PGPUInt32 nDWords);
CRC32	ContinueCRC32(const PGPUInt32 *theDWords, PGPUInt32 nDWords, 
			CRC32 startCRC);

DualErr	HashBuf(const PGPUInt8 *buf, PGPUInt16 length, EncryptedCASTKey *key);

DualErr	SaltPassphrase(const EncryptedCASTKey *keyin, 
			EncryptedCASTKey *keyout, const PassphraseSalt *salt, 
			PGPUInt16 *hashReps);

DualErr	HashSaltAndSchedule(const SecureString *passphrase, 
			ExpandedCASTKey *expandedKey, const PassphraseSalt *salt, 
			PGPUInt16 *hashReps, EncryptedCASTKey *outKey = NULL);

DualErr	DecryptPassphraseKey(const PassphraseKey *passKey, 
			const PassphraseSalt *salt, SecureString *passphrase, 
			CASTKey *decryptedKey);

DualErr	EncryptPassphraseKey(CASTKey *decryptedKey, 
			const PassphraseSalt *salt, SecureString *passphrase, 
			PassphraseKey *passKey);

#endif	// ] Included_CipherUtils_h

⌨️ 快捷键说明

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