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

📄 pgpesk.h

📁 可以实现对邮件的加密解密以及签名
💻 H
字号:
/*
 * pgpESK.h -- Encrypted Session Key handler.
 *
 * $Id: pgpESK.h,v 1.6 2001/01/25 22:11:31 jeffc Exp $
 */

#ifndef Included_pgpESK_h
#define Included_pgpESK_h

#include "pgpContext.h"

PGP_BEGIN_C_DECLARATIONS

/* Return values from eskType */
#define PGP_ESKTYPE_PASSPHRASE 0
#define PGP_ESKTYPE_PUBKEY 1

#include "pgpOpaqueStructs.h"

/* Some access functions. */
int  pgpEskType (PGPESK const *esk);
int  pgpEskPKAlg (PGPESK const *esk);


/* caller must free the key ID */
PGPError	pgpGetEskKeyID( PGPESK const *esk, PGPKeyID *outRef);
					
/* How big might the output key possibly be? */
PGPSize  pgpEskMaxKeySize (PGPESK const *esk);
/*
 * The "key" is a passphrase.  Returns the length of the key, which
 * is <algorithm identifier><key bits>
 */
int  pgpEskConvDecrypt (PGPESK const *esk,
	PGPEnv const *env, char const *pass, PGPSize plen, PGPByte *buf);

/* Do public-key decryption */
PGPInt32 pgpEskPKdecrypt(PGPESK const *esk, PGPKeyDBObjRef sec,
	PGPByte const *passphrase, PGPSize pplen, PGPBoolean hashedPhrase,
	PGPUInt32 cacheTimeOut, PGPBoolean cacheGlobal, PGPByte **buf);

PGPESK  *pgpEskNext (PGPESK const *esklist);

int  pgpEskAdd ( PGPContextRef	cdkContext,
		PGPESK **esklist, int type, PGPByte const *buf,
		PGPSize len);
void  pgpEskFreeList (PGPESK *esklist);

PGP_END_C_DECLARATIONS

#endif /* Included_pgpESK_h */

⌨️ 快捷键说明

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