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

📄 bnsieve.h

📁 著名的加密软件的应用于电子邮件中
💻 H
字号:
/*
* bnsieve.h - Trial division for prime finding.
*
* Copyright (C) 1995-1997 Pretty Good Privacy, Inc. All rights reserved.
*
* This is generally not intended for direct use by a user of the library;
* the bnprime.c and dhprime.c functions. are more likely to be used.
* However, a special application may need these.
*
* $Id: bnsieve.h,v 1.3.2.1 1997/06/07 09:49:42 mhw Exp $
*/

#ifdef __cplusplus
extern "C" {
#endif

struct BigNum;
#ifndef TYPE_BIGNUM
#define TYPE_BIGNUM 1
typedef struct BigNum BigNum;
#endif

/* Remove multiples of a single number from the sieve */
void BNExport sieveSingle(unsigned char *array, unsigned size, unsigned start,
	unsigned step);

/* Build a sieve starting at the number and incrementing by "step". */
int BNExport sieveBuild(unsigned char *array, unsigned size,
	struct BigNum const *bn, unsigned step, unsigned dbl);

/* Similar, but uses a >16-bit step size */
int BNExport sieveBuildBig(unsigned char *array, unsigned size,
	struct BigNum const *bn, struct BigNum const *step, unsigned dbl);

/* Return the next bit set in the sieve (or 0 on failure) */
unsigned BNExport sieveSearch(unsigned char const *array, unsigned size,
	unsigned start);

#ifdef __cplusplus
}
#endif

⌨️ 快捷键说明

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