|
ReactOS 0.4.17-dev-1005-g171e1de
|
#include "precomp.h"
Go to the source code of this file.
| #define SymCryptModFntable369Montgomery (SymCryptModLabel('9m') + (2 * SYMCRYPT_MODULAR_FUNCTIONS_SIZE)) |
Definition at line 55 of file a_dispatch.c.
| #define SymCryptModFntableGeneric (SymCryptModLabel('gM') + (0 * SYMCRYPT_MODULAR_FUNCTIONS_SIZE)) |
Definition at line 53 of file a_dispatch.c.
| #define SymCryptModFntableMontgomery (SymCryptModLabel('mM') + (1 * SYMCRYPT_MODULAR_FUNCTIONS_SIZE)) |
Definition at line 54 of file a_dispatch.c.
| #define SymCryptModFntableMontgomeryArm64256 (SymCryptModLabel('2m') + (3 * SYMCRYPT_MODULAR_FUNCTIONS_SIZE)) |
Definition at line 61 of file a_dispatch.c.
| #define SymCryptModFntableMontgomeryArm64P384 (SymCryptModLabel('3n') + (4 * SYMCRYPT_MODULAR_FUNCTIONS_SIZE)) |
Definition at line 62 of file a_dispatch.c.
| #define SymCryptModFntableMontgomeryMulx (SymCryptModLabel('xM') + (5 * SYMCRYPT_MODULAR_FUNCTIONS_SIZE)) |
Definition at line 58 of file a_dispatch.c.
| #define SymCryptModFntableMontgomeryMulx1024 (SymCryptModLabel('1x') + (6 * SYMCRYPT_MODULAR_FUNCTIONS_SIZE)) |
Definition at line 59 of file a_dispatch.c.
| #define SymCryptModFntableMontgomeryMulx256 (SymCryptModLabel('2x') + (3 * SYMCRYPT_MODULAR_FUNCTIONS_SIZE)) |
Definition at line 56 of file a_dispatch.c.
| #define SymCryptModFntableMontgomeryMulxP384 (SymCryptModLabel('3n') + (4 * SYMCRYPT_MODULAR_FUNCTIONS_SIZE)) |
Definition at line 57 of file a_dispatch.c.
| #define SymCryptModLabel | ( | _label | ) | (_label << 16) |
Definition at line 52 of file a_dispatch.c.
| C_ASSERT | ( | (sizeof(g_SymCryptModFns) &(sizeof(g_SymCryptModFns) - 1)) | = =0 | ) |
| PCSYMCRYPT_TRIALDIVISION_CONTEXT SYMCRYPT_CALL SymCryptCreateTrialDivisionContext | ( | UINT32 | nDigits | ) |
Definition at line 1007 of file a_dispatch.c.
Referenced by SymCryptDlgroupGenerate(), SymCryptDlgroupSetValue(), and SymCryptIntGenerateRandomPrime().
Definition at line 111 of file a_dispatch.c.
Referenced by SymCrypt802_11SaeCustomCommitCreateGeneric(), SymCrypt802_11SaeCustomCommitProcessGeneric(), SymCrypt802_11SaeCustomCreatePTGeneric(), SymCrypt802_11SaeCustomInit(), SymCrypt802_11SaeCustomInitH2EGeneric(), SymCryptDlgroupAutoCompleteNamedSafePrimeGroup(), SymCryptDlgroupCreate(), SymCryptDlgroupGenerate(), SymCryptDlgroupGeneratePrimeQ_FIPS(), SymCryptDlgroupScratchSpace_FIPS(), SymCryptDlgroupSetValue(), SymCryptDlgroupSetValueSafePrime(), SymCryptDsaSignEx(), SymCryptDsaVerify(), SymCryptEcDsaVerify(), SymCryptEcurveDigitsofScalarMultiplier(), SymCryptEcurveValidateAndComputeSizes(), SymCryptFdefDecideModulusType(), SymCryptIntGenerateRandomPrime(), SymCryptModSqrt(), SymCryptMontgomeryFillScratchSpaces(), SymCryptMontgomeryPointScalarMul(), SymCryptRsakeyCalculatePrimesFromPrivateExponent(), SymCryptRsakeyCalculatePrivateFields(), SymCryptRsakeyCreate(), SymCryptRsakeyGenerate(), SymCryptRsakeySetValueInternal(), SymCryptShortWeierstrassFillScratchSpaces(), SymCryptSizeofRsakeyFromParams(), SymCryptSswu(), and SymCryptTwistedEdwardsFillScratchSpaces().
| PSYMCRYPT_DIVISOR SYMCRYPT_CALL SymCryptDivisorAllocate | ( | UINT32 | nDigits | ) |
Definition at line 497 of file a_dispatch.c.
| VOID SymCryptDivisorCopy | ( | _In_ PCSYMCRYPT_DIVISOR | pdSrc, |
| _Out_ PSYMCRYPT_DIVISOR | pdDst | ||
| ) |
Definition at line 537 of file a_dispatch.c.
| PSYMCRYPT_DIVISOR SYMCRYPT_CALL SymCryptDivisorCreate | ( | _Out_writes_bytes_(cbBuffer) PBYTE | pbBuffer, |
| SIZE_T | cbBuffer, | ||
| UINT32 | nDigits | ||
| ) |
Definition at line 519 of file a_dispatch.c.
Referenced by SymCryptDlgroupGenerate(), SymCryptDlgroupSetValue(), SymCryptIntExtendedGcd(), SymCryptIntGenerateRandomPrime(), SymCryptRsakeyGenerate(), and SymCryptRsakeySetValueInternal().
| UINT32 SYMCRYPT_CALL SymCryptDivisorDigitsizeOfObject | ( | _In_ PCSYMCRYPT_DIVISOR | pdSrc | ) |
Definition at line 546 of file a_dispatch.c.
Referenced by SymCryptDlgroupGeneratePrimeP_FIPS().
| VOID SYMCRYPT_CALL SymCryptDivisorFree | ( | _Out_ PSYMCRYPT_DIVISOR | pdObj | ) |
Definition at line 504 of file a_dispatch.c.
| PSYMCRYPT_DIVISOR SYMCRYPT_CALL SymCryptDivisorFromModulus | ( | _In_ PSYMCRYPT_MODULUS | pmSrc | ) |
Definition at line 703 of file a_dispatch.c.
Referenced by rsa_decrypt(), SymCryptDlgroupGenerateGenG_FIPS(), SymCryptDsaSignEx(), SymCryptDsaVerify(), SymCryptEckeyGetValue(), SymCryptEckeySetValue(), SymCryptRsaCoreDecCrt(), and SymCryptRsakeyCalculatePrimesFromPrivateExponent().
| VOID SYMCRYPT_CALL SymCryptDivisorWipe | ( | _Out_ PSYMCRYPT_DIVISOR | pdObj | ) |
Definition at line 529 of file a_dispatch.c.
Referenced by SymCryptDivisorFree().
| VOID SYMCRYPT_CALL SymCryptFreeTrialDivisionContext | ( | PCSYMCRYPT_TRIALDIVISION_CONTEXT | pContext | ) |
Definition at line 1025 of file a_dispatch.c.
Referenced by SymCryptDlgroupGenerate(), SymCryptDlgroupSetValue(), and SymCryptIntGenerateRandomPrime().
| UINT32 SYMCRYPT_CALL SymCryptIntAddMixedSize | ( | _In_ PCSYMCRYPT_INT | piSrc1, |
| _In_ PCSYMCRYPT_INT | piSrc2, | ||
| _Out_ PSYMCRYPT_INT | piDst | ||
| ) |
Definition at line 304 of file a_dispatch.c.
Referenced by SymCryptCrtSolve(), and SymCryptIntExtendedGcd().
| UINT32 SYMCRYPT_CALL SymCryptIntAddSameSize | ( | _In_ PCSYMCRYPT_INT | piSrc1, |
| _In_ PCSYMCRYPT_INT | piSrc2, | ||
| _Out_ PSYMCRYPT_INT | piDst | ||
| ) |
Definition at line 294 of file a_dispatch.c.
| UINT32 SYMCRYPT_CALL SymCryptIntAddUint32 | ( | _In_ PCSYMCRYPT_INT | piSrc1, |
| UINT32 | u32Src2, | ||
| _Out_ PSYMCRYPT_INT | piDst | ||
| ) |
Definition at line 284 of file a_dispatch.c.
Referenced by SymCryptDlgroupGeneratePrimeP_FIPS(), SymCryptDlgroupGeneratePrimeQ_FIPS(), SymCryptFixedWindowRecoding(), SymCryptModSqrt(), and SymCryptWidthNafRecoding().
| PSYMCRYPT_INT SYMCRYPT_CALL SymCryptIntAllocate | ( | UINT32 | nDigits | ) |
Definition at line 119 of file a_dispatch.c.
Referenced by SymCrypt802_11SaeCustomCommitCreateGeneric(), SymCrypt802_11SaeCustomCommitProcessGeneric(), SymCrypt802_11SaeCustomCreatePTGeneric(), SymCrypt802_11SaeCustomInit(), SymCrypt802_11SaeCustomInitH2EGeneric(), SymCryptModSqrt(), and SymCryptSswu().
| UINT32 SYMCRYPT_CALL SymCryptIntBitsizeOfObject | ( | _In_ PCSYMCRYPT_INT | piSrc | ) |
Definition at line 200 of file a_dispatch.c.
Referenced by SymCryptIntExtendedGcd(), SymCryptIntGenerateRandomPrime(), SymCryptModExpWindowed(), and SymCryptPositiveWidthNafRecoding().
| UINT32 SYMCRYPT_CALL SymCryptIntBitsizeOfValue | ( | _In_ PCSYMCRYPT_INT | piSrc | ) |
Definition at line 223 of file a_dispatch.c.
Referenced by rsa_encrypt(), SymCryptDlgroupSetValue(), SymCryptDlkeySetValue(), SymCryptDsaTruncateHash(), SymCryptEcurveInitialize(), SymCryptFdefDecideModulusType(), SymCryptFdefIntToDivisor(), SymCryptIntGenerateRandomPrime(), SymCryptIntMillerRabinPrimalityTest(), SymCryptRsaCoreDecCrt(), SymCryptRsaCoreEnc(), SymCryptRsakeyCalculatePrimesFromPrivateExponent(), SymCryptRsakeyGenerate(), and SymCryptRsakeySetValueInternal().
| VOID SYMCRYPT_CALL SymCryptIntConditionalCopy | ( | _In_ PCSYMCRYPT_INT | piSrc, |
| _Inout_ PSYMCRYPT_INT | piDst, | ||
| UINT32 | cond | ||
| ) |
Definition at line 180 of file a_dispatch.c.
Referenced by SymCryptIntExtendedGcd().
| VOID SYMCRYPT_CALL SymCryptIntConditionalSwap | ( | _Inout_ PSYMCRYPT_INT | piSrc1, |
| _Inout_ PSYMCRYPT_INT | piSrc2, | ||
| UINT32 | cond | ||
| ) |
Definition at line 190 of file a_dispatch.c.
Referenced by SymCryptIntExtendedGcd().
| VOID SYMCRYPT_CALL SymCryptIntCopy | ( | _In_ PCSYMCRYPT_INT | piSrc, |
| _Out_ PSYMCRYPT_INT | piDst | ||
| ) |
Definition at line 161 of file a_dispatch.c.
Referenced by SymCryptDlkeyCopy(), SymCryptEcDsaSignEx(), SymCryptEckeyCopy(), SymCryptEckeyGetValue(), SymCryptEckeySetValue(), SymCryptEcpointMultiScalarMulWnafWithInterleaving(), SymCryptEcpointScalarMulFixedWindow(), SymCryptFdefModInvGeneric(), SymCryptIntMillerRabinPrimalityTest(), SymCryptModSqrt(), and SymCryptRsakeyGenerate().
| SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptIntCopyMixedSize | ( | _In_ PCSYMCRYPT_INT | piSrc, |
| _Out_ PSYMCRYPT_INT | piDst | ||
| ) |
Definition at line 214 of file a_dispatch.c.
Referenced by SymCryptCrtSolve(), SymCryptDlgroupAutoCompleteNamedSafePrimeGroup(), SymCryptDlgroupGeneratePrimeQ_FIPS(), SymCryptDlgroupSetValue(), SymCryptDsaTruncateHash(), SymCryptDsaVerify(), SymCryptIntExtendedGcd(), SymCryptRsakeyCalculatePrimesFromPrivateExponent(), SymCryptRsakeyCalculatePrivateFields(), and SymCryptRsakeyGenerate().
| PSYMCRYPT_INT SYMCRYPT_CALL SymCryptIntCreate | ( | _Out_writes_bytes_(cbBuffer) PBYTE | pbBuffer, |
| SIZE_T | cbBuffer, | ||
| UINT32 | nDigits | ||
| ) |
Definition at line 141 of file a_dispatch.c.
Referenced by rsa_decrypt(), rsa_encrypt(), SymCryptCrtGenerateForTwoCoprimes(), SymCryptCrtSolve(), SymCryptDlgroupAutoCompleteNamedSafePrimeGroup(), SymCryptDlgroupGenerateGenG_FIPS(), SymCryptDlgroupGeneratePrimeP_FIPS(), SymCryptDlgroupSetValue(), SymCryptDlkeyGenerate(), SymCryptDlkeySetValue(), SymCryptDsaSignEx(), SymCryptDsaVerify(), SymCryptEcDsaSignEx(), SymCryptEcDsaVerify(), SymCryptEckeyCreate(), SymCryptEckeyGetValue(), SymCryptEckeySetRandom(), SymCryptEckeySetValue(), SymCryptEcpointMultiScalarMulWnafWithInterleaving(), SymCryptEcpointScalarMulFixedWindow(), SymCryptEcpointSetValue(), SymCryptEcurveInitialize(), SymCryptFdefDivisorCreate(), SymCryptFdefIntAllocate(), SymCryptFdefModInvGeneric(), SymCryptIntExtendedGcd(), SymCryptIntGenerateRandomPrime(), SymCryptIntMillerRabinPrimalityTest(), SymCryptRsaCoreDecCrt(), SymCryptRsaCoreEnc(), SymCryptRsaCoreVerifyInput(), SymCryptRsakeyCalculatePrimesFromPrivateExponent(), SymCryptRsakeyCalculatePrivateFields(), SymCryptRsakeyCreateAllObjects(), SymCryptRsakeyGenerate(), SymCryptRsakeySetValueInternal(), and verify_input().
| UINT32 SYMCRYPT_CALL SymCryptIntDigitsizeOfObject | ( | _In_ PCSYMCRYPT_INT | piSrc | ) |
Definition at line 207 of file a_dispatch.c.
Referenced by SymCryptDsaSignEx(), SymCryptIntExtendedGcd(), SymCryptIntGenerateRandomPrime(), and SymCryptIntMillerRabinPrimalityTest().
| VOID SYMCRYPT_CALL SymCryptIntDivMod | ( | _In_ PCSYMCRYPT_INT | piSrc, |
| _In_ PCSYMCRYPT_DIVISOR | pdDivisor, | ||
| _Out_opt_ PSYMCRYPT_INT | piQuotient, | ||
| _Out_opt_ PSYMCRYPT_INT | piRemainder, | ||
| _Out_writes_bytes_(cbScratch) PBYTE | pbScratch, | ||
| SIZE_T | cbScratch | ||
| ) |
Definition at line 573 of file a_dispatch.c.
Referenced by rsa_decrypt(), SymCryptDlgroupGenerateGenG_FIPS(), SymCryptDlgroupGeneratePrimeP_FIPS(), SymCryptDsaSignEx(), SymCryptDsaVerify(), SymCryptEckeyGetValue(), SymCryptEckeySetValue(), SymCryptIntExtendedGcd(), SymCryptIntGenerateRandomPrime(), SymCryptRsaCoreDecCrt(), SymCryptRsakeyCalculatePrimesFromPrivateExponent(), and SymCryptRsakeyCalculatePrivateFields().
| VOID SYMCRYPT_CALL SymCryptIntDivPow2 | ( | _In_ PCSYMCRYPT_INT | piSrc, |
| SIZE_T | exp, | ||
| _Out_ PSYMCRYPT_INT | piDst | ||
| ) |
Definition at line 364 of file a_dispatch.c.
Referenced by SymCryptDsaTruncateHash(), SymCryptEcDsaTruncateHash(), SymCryptEckeySetValue(), SymCryptFdefModInvGeneric(), SymCryptFixedWindowRecoding(), SymCryptIntMillerRabinPrimalityTest(), SymCryptModSqrt(), SymCryptRsakeyCalculatePrimesFromPrivateExponent(), SymCryptRsakeyGenerate(), and SymCryptWidthNafRecoding().
| UINT32 SYMCRYPT_CALL SymCryptIntFindSmallDivisor | ( | _In_ PCSYMCRYPT_TRIALDIVISION_CONTEXT | pContext, |
| _In_ PCSYMCRYPT_INT | piSrc, | ||
| _Out_writes_bytes_(cbScratch) PBYTE | pbScratch, | ||
| SIZE_T | cbScratch | ||
| ) |
Definition at line 1014 of file a_dispatch.c.
Referenced by SymCryptDlgroupGeneratePrimeP_FIPS(), SymCryptDlgroupGeneratePrimeQ_FIPS(), and SymCryptIntGenerateRandomPrime().
| VOID SYMCRYPT_CALL SymCryptIntFree | ( | _Out_ PSYMCRYPT_INT | piObj | ) |
Definition at line 126 of file a_dispatch.c.
Referenced by SymCrypt802_11SaeCustomCommitCreateGeneric(), SymCrypt802_11SaeCustomCommitProcessGeneric(), SymCrypt802_11SaeCustomCreatePTGeneric(), SymCrypt802_11SaeCustomInit(), SymCrypt802_11SaeCustomInitH2EGeneric(), SymCryptModSqrt(), and SymCryptSswu().
| PSYMCRYPT_INT SYMCRYPT_CALL SymCryptIntFromDivisor | ( | _In_ PSYMCRYPT_DIVISOR | pdSrc | ) |
Definition at line 553 of file a_dispatch.c.
Referenced by SymCryptDlgroupGeneratePrimeQ_FIPS(), SymCryptIntExtendedGcd(), SymCryptIntGenerateRandomPrime(), and SymCryptRsakeyCalculatePrivateFields().
| PSYMCRYPT_INT SYMCRYPT_CALL SymCryptIntFromModulus | ( | _In_ PSYMCRYPT_MODULUS | pmSrc | ) |
Definition at line 720 of file a_dispatch.c.
Referenced by SymCrypt802_11SaeCustomCommitProcessGeneric(), SymCrypt802_11SaeCustomInit(), SymCrypt802_11SaeCustomInitH2EGeneric(), SymCryptCrtGenerateForTwoCoprimes(), SymCryptCrtSolve(), SymCryptDlgroupAutoCompleteNamedSafePrimeGroup(), SymCryptDlgroupGenerate(), SymCryptDlgroupGenerateGenG_FIPS(), SymCryptDlgroupGetValue(), SymCryptDlgroupIsSame(), SymCryptDlgroupSetValue(), SymCryptDlgroupSetValueSafePrime(), SymCryptDlkeyPerformPublicKeyValidation(), SymCryptDlkeySetValue(), SymCryptDsaVerify(), SymCryptEcDsaSignEx(), SymCryptEcDsaVerify(), SymCryptEckeyPerformPublicKeyValidation(), SymCryptEckeySetRandom(), SymCryptEckeySetValue(), SymCryptEcpointScalarMulFixedWindow(), SymCryptEcpointSetValue(), SymCryptEcurveInitialize(), SymCryptEcurveIsSame(), SymCryptFdefModInvGeneric(), SymCryptModSqrt(), SymCryptRsaCoreVerifyInput(), SymCryptRsakeyCalculatePrimesFromPrivateExponent(), SymCryptRsakeyCalculatePrivateFields(), SymCryptRsakeyGenerate(), SymCryptRsakeyGetValue(), SymCryptRsakeySetValueInternal(), SymCryptSswu(), and verify_input().
| UINT32 SYMCRYPT_CALL SymCryptIntGetBit | ( | _In_ PCSYMCRYPT_INT | piSrc, |
| UINT32 | iBit | ||
| ) |
Definition at line 394 of file a_dispatch.c.
Referenced by SymCryptDlgroupGeneratePrimeP_FIPS(), SymCryptEcpointScalarMulFixedWindow(), SymCryptIntMillerRabinPrimalityTest(), and SymCryptMontgomeryPointScalarMul().
| UINT32 SYMCRYPT_CALL SymCryptIntGetBits | ( | _In_ PCSYMCRYPT_INT | piSrc, |
| UINT32 | iBit, | ||
| UINT32 | nBits | ||
| ) |
Definition at line 403 of file a_dispatch.c.
Referenced by SymCryptEckeySetValue(), SymCryptModExpWindowed(), and SymCryptPositiveWidthNafRecoding().
| SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptIntGetValue | ( | _In_ PCSYMCRYPT_INT | piSrc, |
| _Out_writes_bytes_(cbDst) PBYTE | pbDst, | ||
| SIZE_T | cbDst, | ||
| SYMCRYPT_NUMBER_FORMAT | format | ||
| ) |
Definition at line 259 of file a_dispatch.c.
Referenced by rsa_decrypt(), SymCryptDlgroupGeneratePrimeP_FIPS(), SymCryptDlgroupGeneratePrimeQ_FIPS(), SymCryptDlgroupGetValue(), SymCryptDlkeyGetValue(), SymCryptEckeyGetValue(), SymCryptRsaCoreDecCrt(), SymCryptRsakeyGetCrtValue(), and SymCryptRsakeyGetValue().
| UINT32 SYMCRYPT_CALL SymCryptIntGetValueLsbits32 | ( | _In_ PCSYMCRYPT_INT | piSrc | ) |
Definition at line 270 of file a_dispatch.c.
Referenced by SymCrypt802_11SaeCustomInit(), SymCryptCrtGenerateForTwoCoprimes(), SymCryptDlgroupSetValue(), SymCryptEcurveInitialize(), SymCryptFdefDecideModulusType(), SymCryptFdefModInvGeneric(), SymCryptFixedWindowRecoding(), SymCryptIntExtendedGcd(), SymCryptIntToModulus(), SymCryptModExpSquareAndMultiply32(), SymCryptModSqrt(), SymCryptRsakeyCalculatePrimesFromPrivateExponent(), SymCryptRsakeySetValueInternal(), SymCryptSswu(), and SymCryptWidthNafRecoding().
| UINT64 SYMCRYPT_CALL SymCryptIntGetValueLsbits64 | ( | _In_ PCSYMCRYPT_INT | piSrc | ) |
Definition at line 277 of file a_dispatch.c.
Referenced by SymCryptDlgroupAutoCompleteNamedSafePrimeGroup(), SymCryptFdefIntToModulus(), SymCryptIntGenerateRandomPrime(), and SymCryptRsakeyCalculatePrimesFromPrivateExponent().
| UINT32 SYMCRYPT_CALL SymCryptIntIsEqual | ( | _In_ PCSYMCRYPT_INT | piSrc1, |
| _In_ PCSYMCRYPT_INT | piSrc2 | ||
| ) |
Definition at line 433 of file a_dispatch.c.
Referenced by SymCryptDlgroupAutoCompleteNamedSafePrimeGroup(), SymCryptDlgroupIsSame(), SymCryptDlgroupSetValue(), SymCryptEcurveIsSame(), SymCryptRsaCoreDecCrt(), and SymCryptRsakeyCalculatePrivateFields().
| UINT32 SYMCRYPT_CALL SymCryptIntIsEqualUint32 | ( | _In_ PCSYMCRYPT_INT | piSrc1, |
| _In_ UINT32 | u32Src2 | ||
| ) |
Definition at line 424 of file a_dispatch.c.
Referenced by SymCrypt802_11SaeCustomCommitProcessGeneric(), SymCryptCrtGenerateForTwoCoprimes(), SymCryptDlgroupAutoCompleteNamedSafePrimeGroup(), SymCryptDlgroupGenerateGenG_FIPS(), SymCryptDlgroupGeneratePrimeP_FIPS(), SymCryptDlkeySetValue(), SymCryptEcDsaSignEx(), SymCryptEckeyPerformPublicKeyValidation(), SymCryptEckeySetValue(), SymCryptEcpointMultiScalarMulWnafWithInterleaving(), SymCryptEcpointScalarMulFixedWindow(), SymCryptEcurveInitialize(), SymCryptFdefModInvGeneric(), SymCryptIntExtendedGcd(), SymCryptIntToModulus(), SymCryptModMultiExpWnafWithInterleaving(), SymCryptRsakeyCalculatePrimesFromPrivateExponent(), and SymCryptRsakeyCalculatePrivateFields().
| UINT32 SYMCRYPT_CALL SymCryptIntIsLessThan | ( | _In_ PCSYMCRYPT_INT | piSrc1, |
| _In_ PCSYMCRYPT_INT | piSrc2 | ||
| ) |
Definition at line 442 of file a_dispatch.c.
Referenced by SymCrypt802_11SaeCustomCommitProcessGeneric(), SymCrypt802_11SaeCustomInit(), SymCryptDlkeySetValue(), SymCryptDsaVerify(), SymCryptEcDsaSignEx(), SymCryptEcDsaVerify(), SymCryptEckeySetRandom(), SymCryptEckeySetValue(), SymCryptEcpointScalarMulFixedWindow(), SymCryptEcpointSetValue(), SymCryptIntGenerateRandomPrime(), SymCryptRsaCoreVerifyInput(), SymCryptRsakeyCalculatePrimesFromPrivateExponent(), and verify_input().
| VOID SYMCRYPT_CALL SymCryptIntMaskedCopy | ( | _In_ PCSYMCRYPT_INT | piSrc, |
| _Inout_ PSYMCRYPT_INT | piDst, | ||
| UINT32 | mask | ||
| ) |
Definition at line 170 of file a_dispatch.c.
Referenced by SymCryptEcpointScalarMulFixedWindow(), and SymCryptFixedWindowRecoding().
| VOID SYMCRYPT_CALL SymCryptIntModPow2 | ( | _In_ PCSYMCRYPT_INT | piSrc, |
| SIZE_T | exp, | ||
| _Out_ PSYMCRYPT_INT | piDst | ||
| ) |
Definition at line 384 of file a_dispatch.c.
Referenced by SymCryptDlgroupGeneratePrimeP_FIPS(), SymCryptDlgroupGeneratePrimeQ_FIPS(), and SymCryptIntGenerateRandomPrime().
| VOID SYMCRYPT_CALL SymCryptIntMulMixedSize | ( | _In_ PCSYMCRYPT_INT | piSrc1, |
| _In_ PCSYMCRYPT_INT | piSrc2, | ||
| _Out_ PSYMCRYPT_INT | piDst, | ||
| _Out_writes_bytes_(cbScratch) PBYTE | pbScratch, | ||
| SIZE_T | cbScratch | ||
| ) |
Definition at line 485 of file a_dispatch.c.
Referenced by SymCryptCrtSolve(), SymCryptIntExtendedGcd(), SymCryptRsakeyCalculatePrimesFromPrivateExponent(), SymCryptRsakeyCalculatePrivateFields(), and SymCryptRsakeyGenerate().
| VOID SYMCRYPT_CALL SymCryptIntMulPow2 | ( | _In_ PCSYMCRYPT_INT | piSrc, |
| SIZE_T | exp, | ||
| _Out_ PSYMCRYPT_INT | piDst | ||
| ) |
Definition at line 354 of file a_dispatch.c.
Referenced by SymCryptDlgroupGeneratePrimeQ_FIPS(), SymCryptEckeyGetValue(), and SymCryptRsakeyGenerate().
| VOID SYMCRYPT_CALL SymCryptIntMulSameSize | ( | _In_ PCSYMCRYPT_INT | piSrc1, |
| _In_ PCSYMCRYPT_INT | piSrc2, | ||
| _Out_ PSYMCRYPT_INT | piDst, | ||
| _Out_writes_bytes_(cbScratch) PBYTE | pbScratch, | ||
| SIZE_T | cbScratch | ||
| ) |
Definition at line 461 of file a_dispatch.c.
| UINT32 SYMCRYPT_CALL SymCryptIntMulUint32 | ( | _In_ PCSYMCRYPT_INT | piSrc1, |
| UINT32 | Src2, | ||
| _Out_ PSYMCRYPT_INT | piDst | ||
| ) |
Definition at line 451 of file a_dispatch.c.
| VOID SYMCRYPT_CALL SymCryptIntNeg | ( | _In_ PCSYMCRYPT_INT | piSrc, |
| _Out_ PSYMCRYPT_INT | piDst | ||
| ) |
Definition at line 344 of file a_dispatch.c.
Referenced by SymCryptFdefModInvGeneric().
| VOID SYMCRYPT_CALL SymCryptIntSetBits | ( | _In_ PSYMCRYPT_INT | piDst, |
| UINT32 | value, | ||
| UINT32 | iBit, | ||
| UINT32 | nBits | ||
| ) |
Definition at line 413 of file a_dispatch.c.
Referenced by SymCryptDlgroupGeneratePrimeP_FIPS(), SymCryptEckeySetRandom(), and SymCryptIntGenerateRandomPrime().
| SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptIntSetValue | ( | _In_reads_bytes_(cbSrc) PCBYTE | pbSrc, |
| SIZE_T | cbSrc, | ||
| SYMCRYPT_NUMBER_FORMAT | format, | ||
| _Out_ PSYMCRYPT_INT | piDst | ||
| ) |
Definition at line 248 of file a_dispatch.c.
Referenced by rsa_decrypt(), SymCrypt802_11SaeCustomCommitProcessGeneric(), SymCrypt802_11SaeCustomCreatePTGeneric(), SymCrypt802_11SaeCustomInit(), SymCryptDlgroupAutoCompleteNamedSafePrimeGroup(), SymCryptDlgroupGeneratePrimeP_FIPS(), SymCryptDlgroupGeneratePrimeQ_FIPS(), SymCryptDlgroupSetValue(), SymCryptDlgroupSetValueSafePrime(), SymCryptDlkeyGenerate(), SymCryptDlkeySetValue(), SymCryptDsaTruncateHash(), SymCryptDsaVerify(), SymCryptEcDsaTruncateHash(), SymCryptEcDsaVerify(), SymCryptEckeySetValue(), SymCryptEcpointSetValue(), SymCryptEcurveInitialize(), SymCryptIntGenerateRandomPrime(), SymCryptRsaCoreDecCrt(), SymCryptRsaCoreVerifyInput(), SymCryptRsakeyCalculatePrimesFromPrivateExponent(), SymCryptRsakeySetValueInternal(), and verify_input().
| VOID SYMCRYPT_CALL SymCryptIntSetValueUint32 | ( | UINT32 | u32Src, |
| _Out_ PSYMCRYPT_INT | piDst | ||
| ) |
Definition at line 230 of file a_dispatch.c.
Referenced by SymCryptEckeyWipePrivateState(), SymCryptFdefIntToDivisor(), SymCryptIntExtendedGcd(), SymCryptRsakeyCalculatePrivateFields(), SymCryptRsakeyGenerate(), and SymCryptSswu().
| VOID SYMCRYPT_CALL SymCryptIntSetValueUint64 | ( | UINT64 | u64Src, |
| _Out_ PSYMCRYPT_INT | piDst | ||
| ) |
Definition at line 239 of file a_dispatch.c.
Referenced by rsa_encrypt(), SymCryptIntGenerateRandomPrime(), SymCryptRsaCoreDecCrt(), SymCryptRsaCoreEnc(), SymCryptRsakeyCalculatePrimesFromPrivateExponent(), and SymCryptRsakeyCalculatePrivateFields().
| VOID SYMCRYPT_CALL SymCryptIntShr1 | ( | UINT32 | highestBit, |
| _In_ PCSYMCRYPT_INT | piSrc, | ||
| _Out_ PSYMCRYPT_INT | piDst | ||
| ) |
Definition at line 374 of file a_dispatch.c.
Referenced by SymCryptDlgroupAutoCompleteNamedSafePrimeGroup(), SymCryptDlgroupSetValueSafePrime(), and SymCryptIntExtendedGcd().
| VOID SYMCRYPT_CALL SymCryptIntSquare | ( | _In_ PCSYMCRYPT_INT | piSrc, |
| _Out_ PSYMCRYPT_INT | piDst, | ||
| _Out_writes_bytes_(cbScratch) PBYTE | pbScratch, | ||
| SIZE_T | cbScratch | ||
| ) |
Definition at line 474 of file a_dispatch.c.
| UINT32 SYMCRYPT_CALL SymCryptIntSubMixedSize | ( | _In_ PCSYMCRYPT_INT | piSrc1, |
| _In_ PCSYMCRYPT_INT | piSrc2, | ||
| _Out_ PSYMCRYPT_INT | piDst | ||
| ) |
Definition at line 334 of file a_dispatch.c.
Referenced by SymCryptDlgroupGeneratePrimeP_FIPS(), and SymCryptIntExtendedGcd().
| UINT32 SYMCRYPT_CALL SymCryptIntSubSameSize | ( | _In_ PCSYMCRYPT_INT | piSrc1, |
| _In_ PCSYMCRYPT_INT | piSrc2, | ||
| _Out_ PSYMCRYPT_INT | piDst | ||
| ) |
Definition at line 324 of file a_dispatch.c.
Referenced by SymCryptEcpointScalarMulFixedWindow(), SymCryptFdefModInvGeneric(), and SymCryptIntExtendedGcd().
| UINT32 SYMCRYPT_CALL SymCryptIntSubUint32 | ( | _In_ PCSYMCRYPT_INT | piSrc1, |
| UINT32 | u32Src2, | ||
| _Out_ PSYMCRYPT_INT | piDst | ||
| ) |
Definition at line 314 of file a_dispatch.c.
Referenced by SymCrypt802_11SaeCustomInitH2EGeneric(), SymCryptDlgroupGenerateGenG_FIPS(), SymCryptDlgroupGeneratePrimeP_FIPS(), SymCryptFixedWindowRecoding(), SymCryptIntMillerRabinPrimalityTest(), SymCryptRsakeyCalculatePrimesFromPrivateExponent(), SymCryptRsakeyCalculatePrivateFields(), SymCryptRsakeyGenerate(), SymCryptSswu(), and SymCryptWidthNafRecoding().
| VOID SYMCRYPT_CALL SymCryptIntToDivisor | ( | _In_ PCSYMCRYPT_INT | piSrc, |
| _Out_ PSYMCRYPT_DIVISOR | pdDst, | ||
| UINT32 | totalOperations, | ||
| UINT32 | flags, | ||
| _Out_writes_bytes_(cbScratch) PBYTE | pbScratch, | ||
| SIZE_T | cbScratch | ||
| ) |
Definition at line 560 of file a_dispatch.c.
Referenced by SymCryptDlgroupGeneratePrimeQ_FIPS(), SymCryptFdefIntToModulus(), SymCryptIntExtendedGcd(), SymCryptIntGenerateRandomPrime(), and SymCryptRsakeyCalculatePrivateFields().
| VOID SYMCRYPT_CALL SymCryptIntToModElement | ( | _In_ PCSYMCRYPT_INT | piSrc, |
| _In_ PCSYMCRYPT_MODULUS | pmMod, | ||
| _Out_ PSYMCRYPT_MODELEMENT | peDst, | ||
| _Out_writes_bytes_(cbScratch) PBYTE | pbScratch, | ||
| SIZE_T | cbScratch | ||
| ) |
Definition at line 749 of file a_dispatch.c.
Referenced by rsa_decrypt(), SymCrypt802_11SaeCustomCommitProcessGeneric(), SymCrypt802_11SaeCustomCreatePTGeneric(), SymCrypt802_11SaeCustomInit(), SymCryptCrtGenerateForTwoCoprimes(), SymCryptCrtSolve(), SymCryptDsaSignEx(), SymCryptDsaTruncateHash(), SymCryptDsaVerify(), SymCryptEcDsaSignEx(), SymCryptEcDsaTruncateHash(), SymCryptEcDsaVerify(), SymCryptEckeySetRandom(), SymCryptEckeySetValue(), SymCryptRsaCoreDecCrt(), and SymCryptSswu().
| VOID SYMCRYPT_CALL SymCryptIntToModulus | ( | _In_ PCSYMCRYPT_INT | piSrc, |
| _Out_ PSYMCRYPT_MODULUS | pmDst, | ||
| UINT32 | averageOperations, | ||
| UINT32 | flags, | ||
| _Out_writes_bytes_(cbScratch) PBYTE | pbScratch, | ||
| SIZE_T | cbScratch | ||
| ) |
Definition at line 727 of file a_dispatch.c.
Referenced by SymCrypt802_11SaeCustomInitH2EGeneric(), SymCryptDlgroupAutoCompleteNamedSafePrimeGroup(), SymCryptDlgroupGenerate(), SymCryptDlgroupSetValue(), SymCryptDlgroupSetValueSafePrime(), SymCryptEcurveInitialize(), SymCryptIntMillerRabinPrimalityTest(), SymCryptRsakeyCalculatePrimesFromPrivateExponent(), SymCryptRsakeyGenerate(), and SymCryptRsakeySetValueInternal().
| VOID SYMCRYPT_CALL SymCryptIntWipe | ( | _Out_ PSYMCRYPT_INT | piDst | ) |
Definition at line 151 of file a_dispatch.c.
Referenced by SymCryptIntFree(), and SymCryptRsaCoreEnc().
| SYMCRYPT_DISABLE_CFG VOID SYMCRYPT_CALL SymCryptModAdd | ( | _In_ PCSYMCRYPT_MODULUS | pmMod, |
| _In_ PCSYMCRYPT_MODELEMENT | peSrc1, | ||
| _In_ PCSYMCRYPT_MODELEMENT | peSrc2, | ||
| _Out_ PSYMCRYPT_MODELEMENT | peDst, | ||
| _Out_writes_bytes_(cbScratch) PBYTE | pbScratch, | ||
| SIZE_T | cbScratch | ||
| ) |
Definition at line 838 of file a_dispatch.c.
Referenced by SymCrypt802_11SaeCustomCommitCreateGeneric(), SymCrypt802_11SaeCustomCommitProcessGeneric(), SymCrypt802_11SaeCustomInit(), SymCrypt802_11SaeCustomInitH2EGeneric(), SymCryptDsaSignEx(), SymCryptEcDsaSignEx(), SymCryptEckeySetRandom(), SymCryptEcurveInitialize(), SymCryptMontgomeryDoubleAndAdd(), SymCryptShortWeierstrassAddDiffNonZero(), SymCryptShortWeierstrassAddSideChannelUnsafe(), SymCryptShortWeierstrassDouble(), SymCryptShortWeierstrassDoubleSpecializedAm3(), SymCryptShortWeierstrassOnCurve(), SymCryptSswu(), SymCryptTwistedEdwardsAdd(), SymCryptTwistedEdwardsDouble(), and SymCryptTwistedEdwardsOnCurve().
| VOID SYMCRYPT_CALL SymCryptModDivPow2 | ( | _In_ PCSYMCRYPT_MODULUS | pmMod, |
| _In_ PCSYMCRYPT_MODELEMENT | peSrc, | ||
| UINT32 | exp, | ||
| _Out_ PSYMCRYPT_MODELEMENT | peDst, | ||
| _Out_writes_bytes_(cbScratch) PBYTE | pbScratch, | ||
| SIZE_T | cbScratch | ||
| ) |
Definition at line 934 of file a_dispatch.c.
Referenced by SymCryptEckeySetRandom(), SymCryptEckeySetValue(), and SymCryptEcurveInitialize().
| PSYMCRYPT_MODELEMENT SYMCRYPT_CALL SymCryptModElementAllocate | ( | _In_ PCSYMCRYPT_MODULUS | pmMod | ) |
Definition at line 642 of file a_dispatch.c.
Referenced by SymCrypt802_11SaeCustomCommitCreateGeneric(), SymCrypt802_11SaeCustomCommitProcessGeneric(), SymCrypt802_11SaeCustomCreatePTGeneric(), SymCrypt802_11SaeCustomInit(), SymCrypt802_11SaeCustomInitH2EGeneric(), SymCryptModSqrt(), and SymCryptSswu().
| VOID SymCryptModElementConditionalSwap | ( | _In_ PCSYMCRYPT_MODULUS | pmMod, |
| _Inout_ PSYMCRYPT_MODELEMENT | peData1, | ||
| _Inout_ PSYMCRYPT_MODELEMENT | peData2, | ||
| _In_ UINT32 | cond | ||
| ) |
Definition at line 709 of file a_dispatch.c.
Referenced by SymCryptMontgomeryPointScalarMul().
| VOID SymCryptModElementCopy | ( | _In_ PCSYMCRYPT_MODULUS | pmMod, |
| _In_ PCSYMCRYPT_MODELEMENT | peSrc, | ||
| _Out_ PSYMCRYPT_MODELEMENT | peDst | ||
| ) |
Definition at line 683 of file a_dispatch.c.
Referenced by SymCryptDlkeyCopy(), SymCryptEcpointTransform(), SymCryptFdefModInvGeneric(), SymCryptModExpSquareAndMultiply32(), SymCryptModExpWindowed(), SymCryptModMultiExpGeneric(), SymCryptModMultiExpWnafWithInterleaving(), SymCryptModSqrt(), SymCryptMontgomeryPointScalarMul(), and SymCryptShortWeierstrassAddSideChannelUnsafe().
| PSYMCRYPT_MODELEMENT SYMCRYPT_CALL SymCryptModElementCreate | ( | _Out_writes_bytes_(cbBuffer) PBYTE | pbBuffer, |
| SIZE_T | cbBuffer, | ||
| _In_ PCSYMCRYPT_MODULUS | pmMod | ||
| ) |
Definition at line 665 of file a_dispatch.c.
Referenced by rsa_decrypt(), rsa_encrypt(), SymCryptCrtSolve(), SymCryptDhSecretAgreement(), SymCryptDlgroupCreate(), SymCryptDlgroupGenerateGenG_FIPS(), SymCryptDlgroupSetValue(), SymCryptDlkeyCreate(), SymCryptDlkeyGenerate(), SymCryptDlkeyPerformPublicKeyValidation(), SymCryptDlkeySetValue(), SymCryptDsaSignEx(), SymCryptDsaVerify(), SymCryptEcDsaSignEx(), SymCryptEcDsaVerify(), SymCryptEckeyGetValue(), SymCryptEckeySetRandom(), SymCryptEckeySetValue(), SymCryptEcpointCreateEx(), SymCryptEcpointGenericSetRandom(), SymCryptEcpointScalarMulFixedWindow(), SymCryptEcpointTransform(), SymCryptEcurveInitialize(), SymCryptFdefModInvGeneric(), SymCryptIntMillerRabinPrimalityTest(), SymCryptModExpSquareAndMultiply32(), SymCryptModExpWindowed(), SymCryptModMultiExpGeneric(), SymCryptModMultiExpWnafWithInterleaving(), SymCryptMontgomeryIsEqual(), SymCryptMontgomeryPointScalarMul(), SymCryptRsaCoreDec(), SymCryptRsaCoreDecCrt(), SymCryptRsaCoreEnc(), SymCryptRsakeyCalculatePrimesFromPrivateExponent(), SymCryptRsakeyCreateAllObjects(), SymCryptShortWeierstrassAddDiffNonZero(), SymCryptShortWeierstrassAddSideChannelUnsafe(), SymCryptShortWeierstrassDouble(), SymCryptShortWeierstrassDoubleSpecializedAm3(), SymCryptShortWeierstrassIsEqual(), SymCryptShortWeierstrassNegate(), SymCryptShortWeierstrassOnCurve(), SymCryptTwistedEdwardsAdd(), SymCryptTwistedEdwardsDouble(), SymCryptTwistedEdwardsIsEqual(), SymCryptTwistedEdwardsNegate(), and SymCryptTwistedEdwardsOnCurve().
| VOID SYMCRYPT_CALL SymCryptModElementFree | ( | _In_ PCSYMCRYPT_MODULUS | pmMod, |
| _Out_ PSYMCRYPT_MODELEMENT | peObj | ||
| ) |
Definition at line 649 of file a_dispatch.c.
Referenced by SymCrypt802_11SaeCustomCommitCreateGeneric(), SymCrypt802_11SaeCustomCommitProcessGeneric(), SymCrypt802_11SaeCustomCreatePTGeneric(), SymCrypt802_11SaeCustomDestroy(), SymCrypt802_11SaeCustomInit(), SymCrypt802_11SaeCustomInitH2EGeneric(), SymCryptModSqrt(), and SymCryptSswu().
| SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptModElementGetValue | ( | PCSYMCRYPT_MODULUS | pmMod, |
| _In_ PCSYMCRYPT_MODELEMENT | peSrc, | ||
| _Out_writes_bytes_(cbDst) PBYTE | pbDst, | ||
| SIZE_T | cbDst, | ||
| SYMCRYPT_NUMBER_FORMAT | format, | ||
| _Out_writes_bytes_(cbScratch) PBYTE | pbScratch, | ||
| SIZE_T | cbScratch | ||
| ) |
Definition at line 804 of file a_dispatch.c.
Referenced by rsa_encrypt(), SymCrypt802_11SaeCustomCommitCreateGeneric(), SymCrypt802_11SaeCustomCommitProcessGeneric(), SymCrypt802_11SaeCustomInit(), SymCrypt802_11SaeCustomSetRandMask(), SymCryptDhSecretAgreement(), SymCryptDlgroupGetValue(), SymCryptDlkeyGetValue(), SymCryptDsaSignEx(), SymCryptEcDsaSignEx(), SymCryptEcpointGetValue(), SymCryptRsaCoreDec(), SymCryptRsaCoreEnc(), SymCryptRsakeyGetCrtValue(), and SymCryptSswu().
| UINT32 SYMCRYPT_CALL SymCryptModElementIsEqual | ( | _In_ PCSYMCRYPT_MODULUS | pmMod, |
| _In_ PCSYMCRYPT_MODELEMENT | peSrc1, | ||
| _In_ PCSYMCRYPT_MODELEMENT | peSrc2 | ||
| ) |
Definition at line 818 of file a_dispatch.c.
Referenced by SymCryptDlgroupGenerateGenG_FIPS(), SymCryptDlgroupIsSame(), SymCryptDlgroupSetValue(), SymCryptDlkeyGenerate(), SymCryptDlkeyPerformPublicKeyValidation(), SymCryptDlkeySetValue(), SymCryptDsaVerify(), SymCryptEcDsaVerify(), SymCryptEcurveInitialize(), SymCryptEcurveIsSame(), SymCryptIntMillerRabinPrimalityTest(), SymCryptModMultiExpWnafWithInterleaving(), SymCryptModSqrt(), SymCryptMontgomeryIsEqual(), SymCryptRsakeyCalculatePrimesFromPrivateExponent(), SymCryptShortWeierstrassIsEqual(), SymCryptShortWeierstrassOnCurve(), SymCryptTwistedEdwardsIsEqual(), SymCryptTwistedEdwardsIsZero(), and SymCryptTwistedEdwardsOnCurve().
| UINT32 SYMCRYPT_CALL SymCryptModElementIsZero | ( | _In_ PCSYMCRYPT_MODULUS | pmMod, |
| _In_ PCSYMCRYPT_MODELEMENT | peSrc | ||
| ) |
Definition at line 828 of file a_dispatch.c.
Referenced by SymCrypt802_11SaeCustomSetRandMask(), SymCryptDhSecretAgreement(), SymCryptDlgroupGenerateGenG_FIPS(), SymCryptDlgroupSetValue(), SymCryptDlkeyPerformPublicKeyValidation(), SymCryptDsaSignEx(), SymCryptDsaVerify(), SymCryptEcDsaSignEx(), SymCryptEcDsaVerify(), SymCryptEcpointTransform(), SymCryptModMultiExpWnafWithInterleaving(), SymCryptMontgomeryIsZero(), SymCryptShortWeierstrassAddSideChannelUnsafe(), SymCryptShortWeierstrassIsZero(), SymCryptSswu(), and SymCryptTwistedEdwardsIsZero().
| VOID SymCryptModElementMaskedCopy | ( | _In_ PCSYMCRYPT_MODULUS | pmMod, |
| _In_ PCSYMCRYPT_MODELEMENT | peSrc, | ||
| _Out_ PSYMCRYPT_MODELEMENT | peDst, | ||
| UINT32 | mask | ||
| ) |
Definition at line 692 of file a_dispatch.c.
Referenced by SymCrypt802_11SaeCustomInit(), SymCryptShortWeierstrassNegate(), SymCryptSswu(), and SymCryptTwistedEdwardsNegate().
| SYMCRYPT_DISABLE_CFG SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptModElementSetValue | ( | _In_reads_bytes_(cbSrc) PCBYTE | pbSrc, |
| SIZE_T | cbSrc, | ||
| SYMCRYPT_NUMBER_FORMAT | format, | ||
| PCSYMCRYPT_MODULUS | pmMod, | ||
| _Out_ PSYMCRYPT_MODELEMENT | peDst, | ||
| _Out_writes_bytes_(cbScratch) PBYTE | pbScratch, | ||
| SIZE_T | cbScratch | ||
| ) |
Definition at line 781 of file a_dispatch.c.
Referenced by rsa_encrypt(), SymCrypt802_11SaeCustomInitH2EGeneric(), SymCrypt802_11SaeCustomSetRandMask(), SymCryptDlgroupGenerateGenG_FIPS(), SymCryptDlgroupSetValue(), SymCryptDlkeySetValue(), SymCryptEcDsaSignEx(), SymCryptEcpointSetValue(), SymCryptEcurveInitialize(), SymCryptRsaCoreDec(), and SymCryptRsaCoreEnc().
| VOID SYMCRYPT_CALL SymCryptModElementSetValueNegUint32 | ( | UINT32 | value, |
| _In_ PCSYMCRYPT_MODULUS | pmMod, | ||
| _Out_ PSYMCRYPT_MODELEMENT | peDst, | ||
| _Out_writes_bytes_(cbScratch) PBYTE | pbScratch, | ||
| SIZE_T | cbScratch | ||
| ) |
Definition at line 922 of file a_dispatch.c.
Referenced by SymCryptDlkeyPerformPublicKeyValidation(), SymCryptEcurveInitialize(), SymCryptIntMillerRabinPrimalityTest(), SymCryptRsakeyCalculatePrimesFromPrivateExponent(), and SymCryptSswu().
| SYMCRYPT_DISABLE_CFG VOID SYMCRYPT_CALL SymCryptModElementSetValueUint32 | ( | UINT32 | value, |
| _In_ PCSYMCRYPT_MODULUS | pmMod, | ||
| _Out_ PSYMCRYPT_MODELEMENT | peDst, | ||
| _Out_writes_bytes_(cbScratch) PBYTE | pbScratch, | ||
| SIZE_T | cbScratch | ||
| ) |
Definition at line 908 of file a_dispatch.c.
Referenced by SymCrypt802_11SaeCustomInitH2EGeneric(), SymCrypt802_11SaeCustomSetRandMask(), SymCryptDlgroupGenerateGenG_FIPS(), SymCryptDlgroupSetValue(), SymCryptDlgroupSetValueSafePrime(), SymCryptDlkeyPerformPublicKeyValidation(), SymCryptEcpointTransform(), SymCryptEcurveInitialize(), SymCryptIntMillerRabinPrimalityTest(), SymCryptModExpSquareAndMultiply32(), SymCryptModExpWindowed(), SymCryptModMultiExpGeneric(), SymCryptModMultiExpWnafWithInterleaving(), SymCryptMontgomeryPointScalarMul(), SymCryptRsakeyCalculatePrimesFromPrivateExponent(), SymCryptShortWeierstrassSetZero(), SymCryptSswu(), and SymCryptTwistedEdwardsSetZero().
| SYMCRYPT_DISABLE_CFG VOID SYMCRYPT_CALL SymCryptModElementToInt | ( | _In_ PCSYMCRYPT_MODULUS | pmMod, |
| _In_ PCSYMCRYPT_MODELEMENT | peSrc, | ||
| _Out_ PSYMCRYPT_INT | piDst, | ||
| _Out_writes_bytes_(cbScratch) PBYTE | pbScratch, | ||
| SIZE_T | cbScratch | ||
| ) |
Definition at line 762 of file a_dispatch.c.
Referenced by SymCrypt802_11SaeCustomCommitCreateGeneric(), SymCrypt802_11SaeCustomCommitProcessGeneric(), SymCrypt802_11SaeCustomInit(), SymCrypt802_11SaeCustomInitH2EGeneric(), SymCryptCrtSolve(), SymCryptDlgroupAutoCompleteNamedSafePrimeGroup(), SymCryptDlkeyGenerate(), SymCryptDsaSignEx(), SymCryptDsaVerify(), SymCryptEcDsaVerify(), SymCryptEckeySetRandom(), SymCryptEckeySetValue(), SymCryptEcpointGenericSetRandom(), SymCryptRsaCoreDecCrt(), SymCryptRsakeyCalculatePrimesFromPrivateExponent(), and SymCryptSswu().
| VOID SYMCRYPT_CALL SymCryptModElementWipe | ( | _In_ PCSYMCRYPT_MODULUS | pmMod, |
| _Out_ PSYMCRYPT_MODELEMENT | peDst | ||
| ) |
Definition at line 675 of file a_dispatch.c.
| VOID SYMCRYPT_CALL SymCryptModExp | ( | _In_ PCSYMCRYPT_MODULUS | pmMod, |
| _In_ PCSYMCRYPT_MODELEMENT | peBase, | ||
| _In_ PCSYMCRYPT_INT | piExp, | ||
| UINT32 | nBitsExp, | ||
| UINT32 | flags, | ||
| _Out_ PSYMCRYPT_MODELEMENT | peDst, | ||
| _Out_writes_bytes_(cbScratch) PBYTE | pbScratch, | ||
| SIZE_T | cbScratch | ||
| ) |
Definition at line 961 of file a_dispatch.c.
Referenced by rsa_decrypt(), rsa_encrypt(), SymCryptDhSecretAgreement(), SymCryptDlgroupGenerateGenG_FIPS(), SymCryptDlgroupSetValue(), SymCryptDlkeyGenerate(), SymCryptDlkeyPerformPublicKeyValidation(), SymCryptDlkeySetValue(), SymCryptDsaSignEx(), SymCryptIntMillerRabinPrimalityTest(), SymCryptModSqrt(), SymCryptRsaCoreDec(), SymCryptRsaCoreDecCrt(), SymCryptRsaCoreEnc(), SymCryptRsakeyCalculatePrimesFromPrivateExponent(), and SymCryptSswu().
| SYMCRYPT_DISABLE_CFG SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptModInv | ( | _In_ PCSYMCRYPT_MODULUS | pmMod, |
| _In_ PCSYMCRYPT_MODELEMENT | peSrc, | ||
| _Out_ PSYMCRYPT_MODELEMENT | peDst, | ||
| UINT32 | flags, | ||
| _Out_writes_bytes_(cbScratch) PBYTE | pbScratch, | ||
| SIZE_T | cbScratch | ||
| ) |
Definition at line 948 of file a_dispatch.c.
Referenced by SymCryptDsaSignEx(), SymCryptDsaVerify(), SymCryptEcDsaSignEx(), SymCryptEcDsaVerify(), SymCryptEcpointTransform(), and SymCryptSswu().
| SYMCRYPT_DISABLE_CFG VOID SYMCRYPT_CALL SymCryptModMul | ( | _In_ PCSYMCRYPT_MODULUS | pmMod, |
| _In_ PCSYMCRYPT_MODELEMENT | peSrc1, | ||
| _In_ PCSYMCRYPT_MODELEMENT | peSrc2, | ||
| _Out_ PSYMCRYPT_MODELEMENT | peDst, | ||
| _Out_writes_bytes_(cbScratch) PBYTE | pbScratch, | ||
| SIZE_T | cbScratch | ||
| ) |
Definition at line 867 of file a_dispatch.c.
Referenced by SymCrypt802_11SaeCustomInit(), SymCryptCrtSolve(), SymCryptDsaSignEx(), SymCryptDsaVerify(), SymCryptEcDsaSignEx(), SymCryptEcDsaVerify(), SymCryptEcpointTransform(), SymCryptFdefModInvGeneric(), SymCryptModExpPrecomputation(), SymCryptModExpSquareAndMultiply32(), SymCryptModExpWindowed(), SymCryptModMultiExpGeneric(), SymCryptModMultiExpWnafWithInterleaving(), SymCryptMontgomeryDoubleAndAdd(), SymCryptMontgomeryIsEqual(), SymCryptShortWeierstrassAddDiffNonZero(), SymCryptShortWeierstrassAddSideChannelUnsafe(), SymCryptShortWeierstrassDouble(), SymCryptShortWeierstrassDoubleSpecializedAm3(), SymCryptShortWeierstrassIsEqual(), SymCryptShortWeierstrassOnCurve(), SymCryptSswu(), SymCryptTwistedEdwardsAdd(), SymCryptTwistedEdwardsDouble(), SymCryptTwistedEdwardsIsEqual(), and SymCryptTwistedEdwardsOnCurve().
| SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptModMultiExp | ( | _In_ PCSYMCRYPT_MODULUS | pmMod, |
| _In_reads_(nBases) PCSYMCRYPT_MODELEMENT * | peBaseArray, | ||
| _In_reads_(nBases) PCSYMCRYPT_INT * | piExpArray, | ||
| UINT32 | nBases, | ||
| UINT32 | nBitsExp, | ||
| UINT32 | flags, | ||
| _Out_ PSYMCRYPT_MODELEMENT | peDst, | ||
| _Out_writes_bytes_(cbScratch) PBYTE | pbScratch, | ||
| SIZE_T | cbScratch | ||
| ) |
Definition at line 976 of file a_dispatch.c.
Referenced by SymCryptDsaVerify().
| SYMCRYPT_DISABLE_CFG VOID SYMCRYPT_CALL SymCryptModNeg | ( | _In_ PCSYMCRYPT_MODULUS | pmMod, |
| _In_ PCSYMCRYPT_MODELEMENT | peSrc, | ||
| _Out_ PSYMCRYPT_MODELEMENT | peDst, | ||
| _Out_writes_bytes_(cbScratch) PBYTE | pbScratch, | ||
| SIZE_T | cbScratch | ||
| ) |
Definition at line 895 of file a_dispatch.c.
Referenced by SymCrypt802_11SaeCustomInit(), SymCryptShortWeierstrassIsEqual(), SymCryptShortWeierstrassNegate(), SymCryptSswu(), SymCryptTwistedEdwardsIsEqual(), and SymCryptTwistedEdwardsNegate().
| SYMCRYPT_DISABLE_CFG VOID SYMCRYPT_CALL SymCryptModSetRandom | ( | _In_ PCSYMCRYPT_MODULUS | pmMod, |
| _Out_ PSYMCRYPT_MODELEMENT | peDst, | ||
| UINT32 | flags, | ||
| _Out_writes_bytes_(cbScratch) PBYTE | pbScratch, | ||
| SIZE_T | cbScratch | ||
| ) |
Definition at line 993 of file a_dispatch.c.
Referenced by SymCrypt802_11SaeCustomSetRandMask(), SymCryptDlkeyGenerate(), SymCryptDsaSignEx(), SymCryptEckeySetRandom(), SymCryptEcpointGenericSetRandom(), SymCryptFdefModInvGeneric(), SymCryptIntMillerRabinPrimalityTest(), and SymCryptRsakeyCalculatePrimesFromPrivateExponent().
| SYMCRYPT_DISABLE_CFG VOID SYMCRYPT_CALL SymCryptModSquare | ( | _In_ PCSYMCRYPT_MODULUS | pmMod, |
| _In_ PCSYMCRYPT_MODELEMENT | peSrc, | ||
| _Out_ PSYMCRYPT_MODELEMENT | peDst, | ||
| _Out_writes_bytes_(cbScratch) PBYTE | pbScratch, | ||
| SIZE_T | cbScratch | ||
| ) |
Definition at line 881 of file a_dispatch.c.
Referenced by SymCrypt802_11SaeCustomInit(), SymCryptIntMillerRabinPrimalityTest(), SymCryptModExpPrecomputation(), SymCryptModExpSquareAndMultiply32(), SymCryptModExpWindowed(), SymCryptModMultiExpWnafWithInterleaving(), SymCryptModSqrt(), SymCryptMontgomeryDoubleAndAdd(), SymCryptRsakeyCalculatePrimesFromPrivateExponent(), SymCryptShortWeierstrassAddDiffNonZero(), SymCryptShortWeierstrassAddSideChannelUnsafe(), SymCryptShortWeierstrassDouble(), SymCryptShortWeierstrassDoubleSpecializedAm3(), SymCryptShortWeierstrassIsEqual(), SymCryptShortWeierstrassOnCurve(), SymCryptSswu(), SymCryptTwistedEdwardsDouble(), and SymCryptTwistedEdwardsOnCurve().
| SYMCRYPT_DISABLE_CFG VOID SYMCRYPT_CALL SymCryptModSub | ( | _In_ PCSYMCRYPT_MODULUS | pmMod, |
| _In_ PCSYMCRYPT_MODELEMENT | peSrc1, | ||
| _In_ PCSYMCRYPT_MODELEMENT | peSrc2, | ||
| _Out_ PSYMCRYPT_MODELEMENT | peDst, | ||
| _Out_writes_bytes_(cbScratch) PBYTE | pbScratch, | ||
| SIZE_T | cbScratch | ||
| ) |
Definition at line 852 of file a_dispatch.c.
Referenced by SymCryptCrtSolve(), SymCryptFdefModInvGeneric(), SymCryptMontgomeryDoubleAndAdd(), SymCryptShortWeierstrassAddDiffNonZero(), SymCryptShortWeierstrassAddSideChannelUnsafe(), SymCryptShortWeierstrassDouble(), SymCryptShortWeierstrassDoubleSpecializedAm3(), SymCryptTwistedEdwardsAdd(), and SymCryptTwistedEdwardsDouble().
| PSYMCRYPT_MODULUS SYMCRYPT_CALL SymCryptModulusAllocate | ( | UINT32 | nDigits | ) |
Definition at line 587 of file a_dispatch.c.
Referenced by SymCrypt802_11SaeCustomInitH2EGeneric().
| VOID SymCryptModulusCopy | ( | _In_ PCSYMCRYPT_MODULUS | pmSrc, |
| _Out_ PSYMCRYPT_MODULUS | pmDst | ||
| ) |
Definition at line 626 of file a_dispatch.c.
| PSYMCRYPT_MODULUS SYMCRYPT_CALL SymCryptModulusCreate | ( | _Out_writes_bytes_(cbBuffer) PBYTE | pbBuffer, |
| SIZE_T | cbBuffer, | ||
| UINT32 | nDigits | ||
| ) |
Definition at line 608 of file a_dispatch.c.
Referenced by SymCryptDlgroupAutoCompleteNamedSafePrimeGroup(), SymCryptDlgroupCreate(), SymCryptDlgroupGenerate(), SymCryptDlgroupSetValue(), SymCryptDlgroupSetValueSafePrime(), SymCryptEcurveInitialize(), SymCryptIntMillerRabinPrimalityTest(), SymCryptRsakeyCreate(), and SymCryptRsakeyCreateAllObjects().
| UINT32 SYMCRYPT_CALL SymCryptModulusDigitsizeOfObject | ( | _In_ PCSYMCRYPT_MODULUS | pmSrc | ) |
Definition at line 635 of file a_dispatch.c.
Referenced by SymCryptCrtGenerateForTwoCoprimes(), SymCryptCrtSolve(), SymCryptDsaVerify(), SymCryptModMultiExpGeneric(), and SymCryptModMultiExpWnafWithInterleaving().
| VOID SYMCRYPT_CALL SymCryptModulusFree | ( | _Out_ PSYMCRYPT_MODULUS | pmObj | ) |
Definition at line 594 of file a_dispatch.c.
Referenced by SymCrypt802_11SaeCustomInitH2EGeneric().
| VOID SYMCRYPT_CALL SymCryptModulusWipe | ( | _Out_ PSYMCRYPT_MODULUS | pmObj | ) |
Definition at line 618 of file a_dispatch.c.
Referenced by SymCryptDlgroupSetValue(), and SymCryptFdefModulusFree().
| UINT32 SYMCRYPT_CALL SymCryptSizeofDivisorFromDigits | ( | UINT32 | nDigits | ) |
Definition at line 512 of file a_dispatch.c.
Referenced by SymCryptDlgroupGenerate(), SymCryptDlgroupScratchSpace_FIPS(), SymCryptDlgroupSetValue(), SymCryptFdefDivisorCreate(), SymCryptIntExtendedGcd(), SymCryptIntGenerateRandomPrime(), SymCryptRsakeyGenerate(), and SymCryptRsakeySetValueInternal().
| UINT32 SYMCRYPT_CALL SymCryptSizeofIntFromDigits | ( | UINT32 | nDigits | ) |
Definition at line 134 of file a_dispatch.c.
Referenced by rsa_decrypt(), SymCryptCrtGenerateForTwoCoprimes(), SymCryptCrtSolve(), SymCryptDlgroupAutoCompleteNamedSafePrimeGroup(), SymCryptDlgroupGenerateGenG_FIPS(), SymCryptDlgroupGeneratePrimeP_FIPS(), SymCryptDlgroupScratchSpace_FIPS(), SymCryptDlgroupSetValue(), SymCryptDlkeyGenerate(), SymCryptDlkeySetValue(), SymCryptDsaSignEx(), SymCryptDsaVerify(), SymCryptEcDsaSignEx(), SymCryptEcDsaVerify(), SymCryptEckeyCreate(), SymCryptEckeyGetValue(), SymCryptEckeySetRandom(), SymCryptEckeySetValue(), SymCryptEcpointMultiScalarMulWnafWithInterleaving(), SymCryptEcpointScalarMulFixedWindow(), SymCryptEcpointSetValue(), SymCryptEcurveValidateAndComputeSizes(), SymCryptFdefModInvGeneric(), SymCryptIntExtendedGcd(), SymCryptIntGenerateRandomPrime(), SymCryptIntMillerRabinPrimalityTest(), SymCryptMontgomeryFillScratchSpaces(), SymCryptMontgomeryPointScalarMul(), SymCryptRsaCoreDecCrt(), SymCryptRsaCoreDecCrtScratchSpace(), SymCryptRsaCoreVerifyInput(), SymCryptRsakeyCalculatePrimesFromPrivateExponent(), SymCryptRsakeyCreate(), SymCryptRsakeyCreateAllObjects(), SymCryptRsakeyGenerate(), SymCryptRsakeySetValueInternal(), SymCryptShortWeierstrassFillScratchSpaces(), SymCryptSizeofDlkeyFromDlgroup(), SymCryptSizeofEckeyFromCurve(), SymCryptSizeofRsakeyFromParams(), SymCryptTwistedEdwardsFillScratchSpaces(), and verify_input().
| UINT32 SYMCRYPT_CALL SymCryptSizeofModElementFromModulus | ( | PCSYMCRYPT_MODULUS | pmMod | ) |
Definition at line 658 of file a_dispatch.c.
Referenced by rsa_encrypt(), SymCryptCrtSolve(), SymCryptDhSecretAgreement(), SymCryptDlgroupCreate(), SymCryptDlgroupGenerateGenG_FIPS(), SymCryptDlgroupSetValue(), SymCryptDlkeyCreate(), SymCryptDlkeyGenerate(), SymCryptDlkeyPerformPublicKeyValidation(), SymCryptDlkeySetValue(), SymCryptDsaSignEx(), SymCryptDsaVerify(), SymCryptEcDsaSignEx(), SymCryptEcDsaVerify(), SymCryptFdefModInvGeneric(), SymCryptIntMillerRabinPrimalityTest(), SymCryptModExpSquareAndMultiply32(), SymCryptModExpWindowed(), SymCryptModMultiExpGeneric(), SymCryptModMultiExpWnafWithInterleaving(), SymCryptMontgomeryFillScratchSpaces(), SymCryptMontgomeryIsEqual(), SymCryptMontgomeryPointScalarMul(), SymCryptRsaCoreDec(), SymCryptRsaCoreDecCrt(), SymCryptRsaCoreDecScratchSpace(), SymCryptRsaCoreEnc(), SymCryptRsaCoreEncScratchSpace(), SymCryptRsakeyCreateAllObjects(), SymCryptSizeofDlkeyFromDlgroup(), SymCryptTwistedEdwardsAdd(), SymCryptTwistedEdwardsDouble(), SymCryptTwistedEdwardsIsEqual(), and SymCryptTwistedEdwardsOnCurve().
| UINT32 SYMCRYPT_CALL SymCryptSizeofModulusFromDigits | ( | UINT32 | nDigits | ) |
Definition at line 601 of file a_dispatch.c.
Referenced by SymCryptDlgroupAutoCompleteNamedSafePrimeGroup(), SymCryptDlgroupCreate(), SymCryptDlgroupGenerate(), SymCryptDlgroupSetValue(), SymCryptDlgroupSetValueSafePrime(), SymCryptEcurveValidateAndComputeSizes(), SymCryptIntMillerRabinPrimalityTest(), SymCryptRsakeyCreate(), SymCryptRsakeyCreateAllObjects(), and SymCryptSizeofRsakeyFromParams().
| const SYMCRYPT_MODULAR_FUNCTIONS g_SymCryptModFns[] |
Definition at line 21 of file a_dispatch.c.
| const UINT32 g_SymCryptModFnsMask = sizeof( g_SymCryptModFns ) - sizeof( g_SymCryptModFns[0] ) |
Definition at line 72 of file a_dispatch.c.
| const SYMCRYPT_MODULUS_TYPE_SELECTION_ENTRY SymCryptModulusTypeSelections[] |
Definition at line 77 of file a_dispatch.c.
Referenced by SymCryptFdefDecideModulusType().