pgpmakesig.h

来自「可以实现对邮件的加密解密以及签名」· C头文件 代码 · 共 40 行

H
40
字号
/*
 * pgpMakeSig.h -- Make a signature packet from a secret key, a hash, and
 * extra data.
 *
 * This is a PRIVATE header file, for use only within the PGP Library.
 * You should not be using these functions in an application.
 *
 * $Id: pgpMakeSig.h,v 1.5 2001/01/25 22:11:32 jeffc Exp $
 */

#ifndef Included_pgpMakeSig_h
#define Included_pgpMakeSig_h

#include "pgpUsuals.h"

PGP_BEGIN_C_DECLARATIONS

struct PGPSigSpec;
struct PGPHashContext;

/* The maximum size of the signature */
int pgpMakeSigMaxSize(PGPSigSpec const *spec);
	
/*
 * Given a buffer of at least "pgpMakeSigMaxSize" bytes, make a signature
 * into it and return the size of the signature, or 0.
 */
PGPInt32
pgpMakeSig (PGPSigSpec const *spec, PGPHashContext const *hc, PGPByte **buf);

/* The maximum size of a signature header (one-pass sig) */
int pgpMakeSigHeaderMaxSize (PGPSigSpec const *spec);

/* Create a one-pass signature header block for "spec", putting it in buf */
int pgpMakeSigHeader (PGPByte *buf, PGPSigSpec const *spec, PGPByte nest);

PGP_END_C_DECLARATIONS

#endif /* Included_pgpMakeSig_h */

⌨️ 快捷键说明

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