pgprnd.h

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

H
36
字号
/*
 * pgpRnd.h - system-specific gathering of high-resolution timers for RNG.
 *
 * This is a PRIVATE header file, for use only within the PGP Library.
 * You should not be using these functions in an application.
 *
 * The interface is system-independent, but the implementation should be
 * highly system-dependent, to get at as much state as possible.
 *
 * $Id: pgpRnd.h,v 1.5 2002/11/11 04:49:06 dallen Exp $
 */

#include "pgpUsuals.h"
#include "pgpOpaqueStructs.h"

PGP_BEGIN_C_DECLARATIONS

/* formerly rndGetEntropy */

PGPUInt32 pgpRandomCollectEntropy(PGPRandomContext const *rc);
PGPBoolean pgpRandomCollectOsData(PGPRandomContext const *rc, PGPBoolean slow);
void pgpGlobalRandomPoolAddEntropyBits(PGPInt32);
void pgpGlobalRandomPoolAddEntropy(void *priv, PGPByte const *p, unsigned len);

/*
 * INTEL_RNG_ENTROPY_BITS is a conservative estimate of the
 * number of entropy bits in each Intel-RNG 4-byte long.
 */
#define INTEL_RNG_ENTROPY_BITS 16

#if PGP_WIN32
PGPInt32 pgpIntelRngEnabled();
#endif

PGP_END_C_DECLARATIONS

⌨️ 快捷键说明

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