|
ReactOS 0.4.17-dev-1005-g171e1de
|
#include "precomp.h"
Go to the source code of this file.
Classes | |
| struct | _DSA_NBITSOFQ_CUTOFFS |
Macros | |
| #define | DLGROUP_MR_ITERATIONS (64) |
Variables | |
| static const struct _DSA_NBITSOFQ_CUTOFFS | g_nBitsOfQ_Cutoffs [] |
| static const BYTE | ggen [] = { 'g', 'g', 'e', 'n' } |
| PSYMCRYPT_DLGROUP SYMCRYPT_CALL SymCryptDlgroupAllocate | ( | UINT32 | nBitsOfP, |
| UINT32 | nBitsOfQ | ||
| ) |
Definition at line 42 of file dlgroup.c.
| SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptDlgroupAutoCompleteNamedSafePrimeGroup | ( | _Inout_ PSYMCRYPT_DLGROUP | pDlgroup, |
| _Out_writes_bytes_(cbScratch) PBYTE | pbScratch, | ||
| SIZE_T | cbScratch | ||
| ) |
Definition at line 1291 of file dlgroup.c.
Referenced by SymCryptDlgroupSetValue().
| UINT32 SYMCRYPT_CALL SymCryptDlgroupCalculateBitsizeOfQ | ( | UINT32 | nBitsOfP | ) |
Definition at line 28 of file dlgroup.c.
Referenced by SymCryptDlgroupGenerate().
| VOID SYMCRYPT_CALL SymCryptDlgroupCopy | ( | _In_ PCSYMCRYPT_DLGROUP | pgSrc, |
| _Out_ PSYMCRYPT_DLGROUP | pgDst | ||
| ) |
Definition at line 224 of file dlgroup.c.
| PSYMCRYPT_DLGROUP SYMCRYPT_CALL SymCryptDlgroupCreate | ( | _Out_writes_bytes_(cbBuffer) PBYTE | pbBuffer, |
| SIZE_T | cbBuffer, | ||
| UINT32 | nBitsOfP, | ||
| UINT32 | nBitsOfQ | ||
| ) |
Definition at line 116 of file dlgroup.c.
Referenced by SymCryptDlgroupAllocate().
| VOID SYMCRYPT_CALL SymCryptDlgroupFree | ( | _Out_ PSYMCRYPT_DLGROUP | pgObj | ) |
Definition at line 73 of file dlgroup.c.
| SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptDlgroupGenerate | ( | _In_ PCSYMCRYPT_HASH | hashAlgorithm, |
| _In_ SYMCRYPT_DLGROUP_FIPS | fipsStandard, | ||
| _Inout_ PSYMCRYPT_DLGROUP | pDlgroup | ||
| ) |
Definition at line 850 of file dlgroup.c.
| SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptDlgroupGenerateGenG_FIPS | ( | _In_ PSYMCRYPT_DLGROUP | pDlgroup, |
| _Out_ PSYMCRYPT_MODELEMENT | peG, | ||
| _Out_writes_bytes_(cbScratch) PBYTE | pbScratch, | ||
| SIZE_T | cbScratch | ||
| ) |
Definition at line 639 of file dlgroup.c.
Referenced by SymCryptDlgroupGenerate(), and SymCryptDlgroupSetValue().
| SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptDlgroupGeneratePrimeP_FIPS | ( | _In_ PSYMCRYPT_DLGROUP | pDlgroup, |
| _In_ PSYMCRYPT_DIVISOR | pdDivTwoQ, | ||
| _In_ UINT32 | dwMaxCounter, | ||
| _In_ PCSYMCRYPT_TRIALDIVISION_CONTEXT | pTrialDivisionContext, | ||
| _Out_ PUINT32 | pfPrimePFound, | ||
| _Out_ PSYMCRYPT_INT | piP, | ||
| _Out_ PUINT32 | pdwCounter, | ||
| _Out_writes_bytes_(cbScratch) PBYTE | pbScratch, | ||
| SIZE_T | cbScratch | ||
| ) |
Definition at line 421 of file dlgroup.c.
Referenced by SymCryptDlgroupGenerate(), and SymCryptDlgroupSetValue().
| SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptDlgroupGeneratePrimeQ_FIPS | ( | _In_ PSYMCRYPT_DLGROUP | pDlgroup, |
| _In_ PCSYMCRYPT_TRIALDIVISION_CONTEXT | pTrialDivisionContext, | ||
| _Out_ PUINT32 | pfPrimeQFound, | ||
| _Out_ PSYMCRYPT_INT | piQ, | ||
| _Out_ PSYMCRYPT_DIVISOR | pdDivTwoQ, | ||
| _Out_writes_bytes_(cbScratch) PBYTE | pbScratch, | ||
| SIZE_T | cbScratch | ||
| ) |
Definition at line 268 of file dlgroup.c.
Referenced by SymCryptDlgroupGenerate(), and SymCryptDlgroupSetValue().
| VOID SYMCRYPT_CALL SymCryptDlgroupGetSizes | ( | _In_ PCSYMCRYPT_DLGROUP | pDlgroup, |
| _Out_ SIZE_T * | pcbPrimeP, | ||
| _Out_ SIZE_T * | pcbPrimeQ, | ||
| _Out_ SIZE_T * | pcbGenG, | ||
| _Out_ SIZE_T * | pcbSeed | ||
| ) |
| SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptDlgroupGetValue | ( | _In_ PCSYMCRYPT_DLGROUP | pDlgroup, |
| _Out_writes_bytes_(cbPrimeP) PBYTE | pbPrimeP, | ||
| SIZE_T | cbPrimeP, | ||
| _Out_writes_bytes_(cbPrimeQ) PBYTE | pbPrimeQ, | ||
| SIZE_T | cbPrimeQ, | ||
| _Out_writes_bytes_(cbGenG) PBYTE | pbGenG, | ||
| SIZE_T | cbGenG, | ||
| SYMCRYPT_NUMBER_FORMAT | numFormat, | ||
| _Out_ PCSYMCRYPT_HASH * | ppHashAlgorithm, | ||
| _Out_writes_bytes_(cbSeed) PBYTE | pbSeed, | ||
| SIZE_T | cbSeed, | ||
| _Out_ PUINT32 | pGenCounter | ||
| ) |
Definition at line 1901 of file dlgroup.c.
| BOOLEAN SYMCRYPT_CALL SymCryptDlgroupIsSame | ( | _In_ PCSYMCRYPT_DLGROUP | pDlgroup1, |
| _In_ PCSYMCRYPT_DLGROUP | pDlgroup2 | ||
| ) |
Definition at line 1233 of file dlgroup.c.
Referenced by SymCryptDhSecretAgreement().
| UINT32 SYMCRYPT_CALL SymCryptDlgroupScratchSpace_FIPS | ( | UINT32 | nBitsOfP, |
| UINT32 | nBitsOfQ, | ||
| PCSYMCRYPT_HASH | pHashAlgorithm | ||
| ) |
Definition at line 805 of file dlgroup.c.
Referenced by SymCryptDlgroupGenerate(), and SymCryptDlgroupSetValue().
| SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptDlgroupSetValue | ( | _In_reads_bytes_(cbPrimeP) PCBYTE | pbPrimeP, |
| SIZE_T | cbPrimeP, | ||
| _In_reads_bytes_(cbPrimeQ) PCBYTE | pbPrimeQ, | ||
| SIZE_T | cbPrimeQ, | ||
| _In_reads_bytes_(cbGenG) PCBYTE | pbGenG, | ||
| SIZE_T | cbGenG, | ||
| SYMCRYPT_NUMBER_FORMAT | numFormat, | ||
| _In_opt_ PCSYMCRYPT_HASH | pHashAlgorithm, | ||
| _In_reads_bytes_(cbSeed) PCBYTE | pbSeed, | ||
| SIZE_T | cbSeed, | ||
| UINT32 | genCounter, | ||
| SYMCRYPT_DLGROUP_FIPS | fipsStandard, | ||
| _Inout_ PSYMCRYPT_DLGROUP | pDlgroup | ||
| ) |
Definition at line 1410 of file dlgroup.c.
| SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptDlgroupSetValueSafePrime | ( | SYMCRYPT_DLGROUP_DH_SAFEPRIMETYPE | dhSafePrimeType, |
| _Inout_ PSYMCRYPT_DLGROUP | pDlgroup | ||
| ) |
Definition at line 1084 of file dlgroup.c.
| VOID SYMCRYPT_CALL SymCryptDlgroupWipe | ( | _Out_ PSYMCRYPT_DLGROUP | pgDst | ) |
Definition at line 217 of file dlgroup.c.
Referenced by SymCryptDlgroupFree().
| UINT32 SYMCRYPT_CALL SymCryptSizeofDlgroupFromBitsizes | ( | UINT32 | nBitsOfP, |
| UINT32 | nBitsOfQ | ||
| ) |
Definition at line 82 of file dlgroup.c.
Referenced by SymCryptDlgroupAllocate(), and SymCryptDlgroupCreate().
|
static |
Referenced by SymCryptDlgroupCalculateBitsizeOfQ().