ReactOS 0.4.17-dev-1005-g171e1de
smallPrimes32.h
Go to the documentation of this file.
1//
2// Parameters for trial division mechanism
3// Copyright (c) Microsoft Corporation. Licensed under the MIT license.
4// GENERATED FILE, DO NOT EDIT.
5//
6
7
8//
9// The primes are put into groups of consecutive primes (skipping 2, 3, 5, and 17).
10// Each group has a product less than SYMCRYPT_MAX_SMALL_PRIME_GROUP_PRODUCT which is
11// chosen to avoid overflows in the modular reduction computation.
12//
13
15 UINT16 nGroups; // # groups of this size
16 UINT8 nPrimes; // # primes in the group
17 UINT32 maxPrime; // largest prime in the last group
19
20#define SYMCRYPT_MAX_SMALL_PRIME_GROUP_PRODUCT (0x1c71c71cU)
21
23 { 1, 7, 31 },
24 { 1, 5, 53 },
25 { 5, 4, 151 },
26 { 34, 3, 787 },
27 { 1156, 2, 21841 },
28 { 0, 1, 0xffffffff },
29};
unsigned short UINT16
Definition: actypes.h:129
unsigned char UINT8
Definition: actypes.h:128
const SYMCRYPT_SMALL_PRIME_GROUPS_SPEC g_SymCryptSmallPrimeGroupsSpec[]
Definition: smallPrimes32.h:22
struct _SYMCRYPT_SMALL_PRIME_GROUPS_SPEC SYMCRYPT_SMALL_PRIME_GROUPS_SPEC
uint32_t UINT32
Definition: typedefs.h:59