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
14
typedef
struct
_SYMCRYPT_SMALL_PRIME_GROUPS_SPEC
{
15
UINT16
nGroups
;
// # groups of this size
16
UINT8
nPrimes
;
// # primes in the group
17
UINT32
maxPrime
;
// largest prime in the last group
18
}
SYMCRYPT_SMALL_PRIME_GROUPS_SPEC
;
19
20
#define SYMCRYPT_MAX_SMALL_PRIME_GROUP_PRODUCT (0x1c71c71cU)
21
22
const
SYMCRYPT_SMALL_PRIME_GROUPS_SPEC
g_SymCryptSmallPrimeGroupsSpec
[] = {
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
};
UINT16
unsigned short UINT16
Definition:
actypes.h:129
UINT8
unsigned char UINT8
Definition:
actypes.h:128
g_SymCryptSmallPrimeGroupsSpec
const SYMCRYPT_SMALL_PRIME_GROUPS_SPEC g_SymCryptSmallPrimeGroupsSpec[]
Definition:
smallPrimes32.h:22
SYMCRYPT_SMALL_PRIME_GROUPS_SPEC
struct _SYMCRYPT_SMALL_PRIME_GROUPS_SPEC SYMCRYPT_SMALL_PRIME_GROUPS_SPEC
_SYMCRYPT_SMALL_PRIME_GROUPS_SPEC
Definition:
smallPrimes32.h:14
_SYMCRYPT_SMALL_PRIME_GROUPS_SPEC::maxPrime
UINT32 maxPrime
Definition:
smallPrimes32.h:17
_SYMCRYPT_SMALL_PRIME_GROUPS_SPEC::nPrimes
UINT8 nPrimes
Definition:
smallPrimes32.h:16
_SYMCRYPT_SMALL_PRIME_GROUPS_SPEC::nGroups
UINT16 nGroups
Definition:
smallPrimes32.h:15
UINT32
uint32_t UINT32
Definition:
typedefs.h:59
sdk
lib
3rdparty
symcrypt
lib
smallPrimes32.h
Generated on Tue Oct 6 2026 06:20:10 for ReactOS by
1.9.6