pgprndseed.h

来自「著名的加密软件的应用于电子邮件中」· C头文件 代码 · 共 46 行

H
46
字号
/*
* pgpRndSeed.h -- read and write the randseed.bin file.
*
* Copyright (C) 1995-1997 Pretty Good Privacy, Inc. All rights reserved.
*
* Written by:	Derek Atkins <warlord@MIT.EDU>
*
* This is a Public API Function Header.
*
* $Id: pgpRndSeed.h,v 1.5.2.1 1997/06/07 09:51:35 mhw Exp $
*/

#ifndef PGPRNDSEED_H
#define PGPRNDSEED_H

#include <stdio.h>

#ifdef __cplusplus
extern "C" {
#endif

struct PgpCfbContext;
#ifndef TYPE_PGPCFBCONTEXT
#define TYPE_PGPCFBCONTEXT 1
typedef struct PgpCfbContext PgpCfbContext;
#endif

struct PgpRandomContext;
#ifndef TYPE_PGPRANDOMCONTEXT
#define TYPE_PGPRANDOMCONTEXT 1
typedef struct PgpRandomContext PgpRandomContext;
#endif

/* We want to see at least this many bytes in randseed */
#define PGP_SEED_MIN_BYTES		24

int PGPExport pgpRandSeedRead (FILE *file, struct PgpRandomContext const *rc);
void PGPExport pgpRandSeedWrite (FILE *file,
	struct PgpRandomContext const *rc, struct PgpCfbContext *cfb);

#ifdef __cplusplus
}
#endif

#endif /* PGPRNDSEED_H */

⌨️ 快捷键说明

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