|
ReactOS 0.4.17-dev-1005-g171e1de
|
#include "precomp.h"
Go to the source code of this file.
Classes | |
| struct | _SYMCRYPT_HASH_OID_MAPPING |
Macros | |
| #define | SYMCRYPT_MLDSA_Q_INV (58728449) |
| #define | SYMCRYPT_MLDSA_INTT_FIXUP_TIMES_R (16382) |
| #define | SYMCRYPT_MLDSA_RSQR (2365951) |
| #define | SYMCRYPT_MLDSA_REJNTTPOLY_SEED_SIZE (34) |
| #define | SYMCRYPT_MLDSA_REJBOUNDEDPOLY_SEED_SIZE (66) |
| #define | SYMCRYPT_POWER2ROUND_LOW_ORDER_BITS (13) |
Typedefs | |
| typedef struct _SYMCRYPT_HASH_OID_MAPPING | SYMCRYPT_HASH_OID_MAPPING |
| typedef struct _SYMCRYPT_HASH_OID_MAPPING * | PSYMCRYPT_HASH_OID_MAPPING |
| #define SYMCRYPT_MLDSA_INTT_FIXUP_TIMES_R (16382) |
Definition at line 17 of file mldsa_primitives.c.
| #define SYMCRYPT_MLDSA_Q_INV (58728449) |
Definition at line 12 of file mldsa_primitives.c.
| #define SYMCRYPT_MLDSA_REJBOUNDEDPOLY_SEED_SIZE (66) |
Definition at line 35 of file mldsa_primitives.c.
| #define SYMCRYPT_MLDSA_REJNTTPOLY_SEED_SIZE (34) |
Definition at line 29 of file mldsa_primitives.c.
| #define SYMCRYPT_MLDSA_RSQR (2365951) |
Definition at line 23 of file mldsa_primitives.c.
| #define SYMCRYPT_POWER2ROUND_LOW_ORDER_BITS (13) |
Definition at line 40 of file mldsa_primitives.c.
| C_ASSERT | ( | SYMCRYPT_SHA256_OID_COUNT | = =2 | ) |
| C_ASSERT | ( | SYMCRYPT_SHA384_OID_COUNT | = =2 | ) |
| C_ASSERT | ( | SYMCRYPT_SHA3_256_OID_COUNT | = =2 | ) |
| C_ASSERT | ( | SYMCRYPT_SHA3_384_OID_COUNT | = =2 | ) |
| C_ASSERT | ( | SYMCRYPT_SHA3_512_OID_COUNT | = =2 | ) |
| C_ASSERT | ( | SYMCRYPT_SHA512_256_OID_COUNT | = =2 | ) |
| C_ASSERT | ( | SYMCRYPT_SHA512_OID_COUNT | = =2 | ) |
| C_ASSERT | ( | SYMCRYPT_SHAKE128_OID_COUNT | = =2 | ) |
| C_ASSERT | ( | SYMCRYPT_SHAKE256_OID_COUNT | = =2 | ) |
| _Use_decl_annotations_ SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptHashMlDsaValidateHashAlgAndGetOid | ( | PCSYMCRYPT_MLDSA_INTERNAL_PARAMS | pParams, |
| SYMCRYPT_PQDSA_HASH_ID | hashAlg, | ||
| SIZE_T | cbHash, | ||
| PCSYMCRYPT_OID * | ppOid | ||
| ) |
Definition at line 1799 of file mldsa_primitives.c.
Referenced by SymCryptHashMlDsaSign(), and SymCryptHashMlDsaVerify().
| _Use_decl_annotations_ FORCEINLINE INT8 SYMCRYPT_CALL SymCryptMlDsaCoeffFromHalfByte | ( | PCSYMCRYPT_MLDSA_INTERNAL_PARAMS | pParams, |
| UINT8 | halfByte | ||
| ) |
Definition at line 903 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaRejBoundedPoly().
| _Use_decl_annotations_ FORCEINLINE VOID SYMCRYPT_CALL SymCryptMlDsaDecompose | ( | PCSYMCRYPT_MLDSA_INTERNAL_PARAMS | pParams, |
| UINT32 | r, | ||
| UINT32 * | puR1, | ||
| UINT32 * | puR0 | ||
| ) |
Definition at line 1918 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaUseHint(), SymCryptMlDsaVectorHighBits(), and SymCryptMlDsaVectorLowBits().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsaExpandA | ( | PCBYTE | pbPublicSeed, |
| SIZE_T | cbPublicSeed, | ||
| PSYMCRYPT_MLDSA_MATRIX | pmA | ||
| ) |
Definition at line 872 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaKeyGenerateEx(), SymCryptMlDsaPkDecode(), and SymCryptMlDsaSkDecode().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsaExpandMask | ( | PCSYMCRYPT_MLDSA_INTERNAL_PARAMS | pParams, |
| PSYMCRYPT_SHAKE256_STATE | pShakeState, | ||
| PCBYTE | pbPrivateRandom, | ||
| SIZE_T | cbPrivateRandom, | ||
| UINT16 | counter, | ||
| PSYMCRYPT_MLDSA_VECTOR | pvMask | ||
| ) |
Definition at line 1061 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaSignEx().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsaExpandS | ( | PCSYMCRYPT_MLDSA_INTERNAL_PARAMS | pParams, |
| PCBYTE | pbPrivateVectorSeed, | ||
| SIZE_T | cbPrivateVectorSeed, | ||
| PSYMCRYPT_MLDSA_VECTOR | pvs1, | ||
| PSYMCRYPT_MLDSA_VECTOR | pvs2 | ||
| ) |
Definition at line 977 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaKeyGenerateEx().
| _Use_decl_annotations_ SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptMlDsaGetInternalParamsFromParams | ( | SYMCRYPT_MLDSA_PARAMS | params, |
| PCSYMCRYPT_MLDSA_INTERNAL_PARAMS * | pInternalParams | ||
| ) |
Definition at line 243 of file mldsa_primitives.c.
Referenced by SymCryptMlDsakeyAllocate(), SymCryptMlDsaSizeofKeyFormatFromParams(), and SymCryptMlDsaSizeofSignatureFromParams().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsaHintBitPack | ( | PCSYMCRYPT_MLDSA_INTERNAL_PARAMS | pParams, |
| PCSYMCRYPT_MLDSA_VECTOR | pvSrc, | ||
| PBYTE | pbDst | ||
| ) |
Definition at line 1707 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaSigEncode().
| _Use_decl_annotations_ SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptMlDsaHintBitUnpack | ( | PCSYMCRYPT_MLDSA_INTERNAL_PARAMS | pParams, |
| PCBYTE | pbSrc, | ||
| PSYMCRYPT_MLDSA_VECTOR | pvDst | ||
| ) |
Definition at line 1741 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaSigDecode().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsakeyComputeT | ( | PCSYMCRYPT_MLDSA_MATRIX | pmA, |
| PCSYMCRYPT_MLDSA_VECTOR | pvs1, | ||
| PCSYMCRYPT_MLDSA_VECTOR | pvs2, | ||
| PSYMCRYPT_MLDSA_VECTOR | pvt0, | ||
| PSYMCRYPT_MLDSA_VECTOR | pvt1, | ||
| PSYMCRYPT_MLDSA_VECTOR | pvTmp, | ||
| PSYMCRYPT_MLDSA_POLYELEMENT | peTmp | ||
| ) |
Definition at line 384 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaKeyGenerateEx(), and SymCryptMlDsaSkDecode().
| _Use_decl_annotations_ PSYMCRYPT_MLDSAKEY SYMCRYPT_CALL SymCryptMlDsakeyInitialize | ( | PCSYMCRYPT_MLDSA_INTERNAL_PARAMS | pInternalParams, |
| PBYTE | pbKey, | ||
| UINT32 | cbKey | ||
| ) |
Definition at line 333 of file mldsa_primitives.c.
Referenced by SymCryptMlDsakeyAllocate().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsaMakeHint | ( | PCSYMCRYPT_MLDSA_INTERNAL_PARAMS | pParams, |
| PSYMCRYPT_MLDSA_VECTOR | pvWMinusCs2, | ||
| PSYMCRYPT_MLDSA_VECTOR | pvWMinusCs2PlusCt0, | ||
| PSYMCRYPT_MLDSA_VECTOR | pvDst, | ||
| UINT32 * | nBitsSet | ||
| ) |
Definition at line 1100 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaSignEx().
| _Use_decl_annotations_ PSYMCRYPT_MLDSA_MATRIX SYMCRYPT_CALL SymCryptMlDsaMatrixCreate | ( | PBYTE | pbBuffer, |
| UINT32 | cbBuffer, | ||
| UINT8 | nRows, | ||
| UINT8 | nCols | ||
| ) |
Definition at line 771 of file mldsa_primitives.c.
Referenced by SymCryptMlDsakeyInitialize().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsaMatrixVectorMontMul | ( | PCSYMCRYPT_MLDSA_MATRIX | pmSrc1, |
| PCSYMCRYPT_MLDSA_VECTOR | pvSrc2, | ||
| PSYMCRYPT_MLDSA_VECTOR | pvDst, | ||
| PSYMCRYPT_MLDSA_POLYELEMENT | peTmp | ||
| ) |
Definition at line 803 of file mldsa_primitives.c.
Referenced by SymCryptMlDsakeyComputeT(), SymCryptMlDsaSignEx(), and SymCryptMlDsaVerifyEx().
| UINT32 SYMCRYPT_CALL SymCryptMlDsaModAdd | ( | UINT32 | a, |
| UINT32 | b | ||
| ) |
Definition at line 444 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaPolyElementAdd(), SymCryptMlDsaPolyElementINTT(), and SymCryptMlDsaPolyElementNTT().
| FORCEINLINE INT32 SYMCRYPT_CALL SymCryptMlDsaModPlusMinus | ( | UINT32 | r, |
| UINT32 | modulus | ||
| ) |
Definition at line 1850 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaPolyElementInfinityNorm(), and SymCryptMlDsaPower2Round().
| UINT32 SYMCRYPT_CALL SymCryptMlDsaModSub | ( | UINT32 | a, |
| UINT32 | b | ||
| ) |
Definition at line 460 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaPolyElementINTT(), SymCryptMlDsaPolyElementNTT(), and SymCryptMlDsaPolyElementSub().
| UINT32 SYMCRYPT_CALL SymCryptMlDsaMontMul | ( | UINT32 | a, |
| UINT32 | b | ||
| ) |
Definition at line 434 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaPolyElementINTT(), SymCryptMlDsaPolyElementMontMul(), SymCryptMlDsaPolyElementMulR(), SymCryptMlDsaPolyElementNTT(), and SymCryptMlDsaVerifyEx().
| UINT32 SYMCRYPT_CALL SymCryptMlDsaMontReduce | ( | UINT64 | a | ) |
Definition at line 418 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaMontMul().
| _Use_decl_annotations_ SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptMlDsaPkDecode | ( | PCBYTE | pbSrc, |
| SIZE_T | cbSrc, | ||
| UINT32 | flags, | ||
| PSYMCRYPT_MLDSAKEY | pkMlDsakey | ||
| ) |
Definition at line 1264 of file mldsa_primitives.c.
Referenced by SymCryptMlDsakeySetValue().
| _Use_decl_annotations_ SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptMlDsaPkEncode | ( | PCSYMCRYPT_MLDSAKEY | pkMlDsakey, |
| PBYTE | pbDst, | ||
| SIZE_T | cbDst | ||
| ) |
Definition at line 1211 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaKeyGenerateEx(), SymCryptMlDsakeyGetValue(), and SymCryptMlDsaSkDecode().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsaPolyElementAdd | ( | PCSYMCRYPT_MLDSA_POLYELEMENT | peSrc1, |
| PCSYMCRYPT_MLDSA_POLYELEMENT | peSrc2, | ||
| PSYMCRYPT_MLDSA_POLYELEMENT | peDst | ||
| ) |
Definition at line 600 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaMatrixVectorMontMul(), and SymCryptMlDsaVectorAdd().
| _Use_decl_annotations_ PSYMCRYPT_MLDSA_POLYELEMENT SYMCRYPT_CALL SymCryptMlDsaPolyElementCreate | ( | PBYTE | pbBuffer, |
| SIZE_T | cbBuffer | ||
| ) |
Definition at line 474 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaMatrixCreate(), SymCryptMlDsaTemporariesAllocateAndInitialize(), and SymCryptMlDsaVectorCreate().
| _Use_decl_annotations_ SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptMlDsaPolyElementDecode | ( | PCBYTE | pbSrc, |
| UINT32 | nBitsPerCoefficient, | ||
| UINT32 | signedCoefficientBound, | ||
| PSYMCRYPT_MLDSA_POLYELEMENT | peDst | ||
| ) |
Definition at line 2166 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaExpandMask(), SymCryptMlDsaPkDecode(), and SymCryptMlDsaVectorDecode().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsaPolyElementEncode | ( | PCSYMCRYPT_MLDSA_POLYELEMENT | peSrc, |
| UINT32 | nBitsPerCoefficient, | ||
| UINT32 | signedCoefficientBound, | ||
| PBYTE | pbDst | ||
| ) |
Definition at line 2096 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaVectorEncode().
| _Use_decl_annotations_ FORCEINLINE UINT32 SYMCRYPT_CALL SymCryptMlDsaPolyElementInfinityNorm | ( | PCSYMCRYPT_MLDSA_POLYELEMENT | peSrc | ) |
Definition at line 1874 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaVectorInfinityNorm().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsaPolyElementINTT | ( | PSYMCRYPT_MLDSA_POLYELEMENT | peSrc | ) |
Definition at line 537 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaVectorINTT().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsaPolyElementMontMul | ( | PCSYMCRYPT_MLDSA_POLYELEMENT | peSrc1, |
| PCSYMCRYPT_MLDSA_POLYELEMENT | peSrc2, | ||
| PSYMCRYPT_MLDSA_POLYELEMENT | peDst | ||
| ) |
Definition at line 586 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaMatrixVectorMontMul(), and SymCryptMlDsaVectorPolyElementMontMul().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsaPolyElementMulR | ( | PSYMCRYPT_MLDSA_POLYELEMENT | peSrc | ) |
Definition at line 574 of file mldsa_primitives.c.
Referenced by SymCryptMlDsakeyComputeT(), SymCryptMlDsaSignEx(), and SymCryptMlDsaVerifyEx().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsaPolyElementNTT | ( | PSYMCRYPT_MLDSA_POLYELEMENT | peSrc | ) |
Definition at line 502 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaSignEx(), SymCryptMlDsaVectorNTT(), and SymCryptMlDsaVerifyEx().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsaPolyElementPower2Round | ( | PCSYMCRYPT_MLDSA_POLYELEMENT | peSrc, |
| PSYMCRYPT_MLDSA_POLYELEMENT | peDst1, | ||
| PSYMCRYPT_MLDSA_POLYELEMENT | peDst0 | ||
| ) |
Definition at line 2042 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaVectorPower2Round().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsaPolyElementSetZero | ( | PSYMCRYPT_MLDSA_POLYELEMENT | peDst | ) |
Definition at line 490 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaHintBitUnpack(), SymCryptMlDsaSampleInBall(), and SymCryptMlDsaVectorSetZero().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsaPolyElementSub | ( | PCSYMCRYPT_MLDSA_POLYELEMENT | peSrc1, |
| PCSYMCRYPT_MLDSA_POLYELEMENT | peSrc2, | ||
| PSYMCRYPT_MLDSA_POLYELEMENT | peDst | ||
| ) |
Definition at line 614 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaVectorSub().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsaPower2Round | ( | UINT32 | r, |
| UINT32 * | puR1, | ||
| UINT32 * | puR0 | ||
| ) |
Definition at line 2023 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaPolyElementPower2Round().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsaRejBoundedPoly | ( | PCSYMCRYPT_MLDSA_INTERNAL_PARAMS | pParams, |
| PCBYTE | pbRejBoundedPolySeed, | ||
| SIZE_T | cbRejBoundedPolySeed, | ||
| PSYMCRYPT_MLDSA_POLYELEMENT | peDst | ||
| ) |
Definition at line 927 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaExpandS().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsaRejNttPoly | ( | PCBYTE | pbRejNttPolySeed, |
| SIZE_T | cbRejNttPolySeed, | ||
| PSYMCRYPT_MLDSA_POLYELEMENT | peDst | ||
| ) |
Definition at line 839 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaExpandA().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsaSampleInBall | ( | PCSYMCRYPT_MLDSA_INTERNAL_PARAMS | pParams, |
| PCBYTE | pbCommitmentHash, | ||
| SIZE_T | cbCommitmentHash, | ||
| PSYMCRYPT_MLDSA_POLYELEMENT | peChallenge | ||
| ) |
Definition at line 1016 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaSignEx(), and SymCryptMlDsaVerifyEx().
| _Use_decl_annotations_ SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptMlDsaSigDecode | ( | PCSYMCRYPT_MLDSA_INTERNAL_PARAMS | pParams, |
| PCBYTE | pbSig, | ||
| SIZE_T | cbSig, | ||
| PBYTE | pbCommitmentHash, | ||
| SIZE_T | cbCommitmentHash, | ||
| PSYMCRYPT_MLDSA_VECTOR | pvResponse, | ||
| PSYMCRYPT_MLDSA_VECTOR | pvHint | ||
| ) |
Definition at line 1661 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaVerifyEx().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsaSigEncode | ( | PCSYMCRYPT_MLDSA_INTERNAL_PARAMS | pParams, |
| PBYTE | pbCommitmentHash, | ||
| SIZE_T | cbCommitmentHash, | ||
| PCSYMCRYPT_MLDSA_VECTOR | pvResponse, | ||
| PCSYMCRYPT_MLDSA_VECTOR | pvHint, | ||
| PBYTE | pbDst, | ||
| SIZE_T | cbDst | ||
| ) |
Definition at line 1625 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaSignEx().
| FORCEINLINE UINT32 SYMCRYPT_CALL SymCryptMlDsaSignedCoefficientModQ | ( | INT32 | coefficient | ) |
Definition at line 2080 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaDecompose(), SymCryptMlDsaPolyElementDecode(), SymCryptMlDsaPower2Round(), and SymCryptMlDsaRejBoundedPoly().
| _Use_decl_annotations_ SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptMlDsaSizeofKeyFormatFromParams | ( | SYMCRYPT_MLDSA_PARAMS | params, |
| SYMCRYPT_MLDSAKEY_FORMAT | mlDsakeyFormat, | ||
| SIZE_T * | pcbKeyFormat | ||
| ) |
Definition at line 274 of file mldsa_primitives.c.
| _Use_decl_annotations_ SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptMlDsaSizeofSignatureFromParams | ( | SYMCRYPT_MLDSA_PARAMS | params, |
| SIZE_T * | pcbSignature | ||
| ) |
Definition at line 311 of file mldsa_primitives.c.
| _Use_decl_annotations_ SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptMlDsaSkDecode | ( | PCBYTE | pbSrc, |
| SIZE_T | cbSrc, | ||
| UINT32 | flags, | ||
| PSYMCRYPT_MLDSAKEY | pkMlDsakey | ||
| ) |
Definition at line 1460 of file mldsa_primitives.c.
Referenced by SymCryptMlDsakeySetValue().
| _Use_decl_annotations_ SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptMlDsaSkEncode | ( | PCSYMCRYPT_MLDSAKEY | pkMlDsakey, |
| PBYTE | pbDst, | ||
| SIZE_T | cbDst | ||
| ) |
Definition at line 1364 of file mldsa_primitives.c.
Referenced by SymCryptMlDsakeyGetValue().
| _Use_decl_annotations_ PSYMCRYPT_MLDSA_INTERNAL_COMPUTATION_TEMPORARIES SYMCRYPT_CALL SymCryptMlDsaTemporariesAllocateAndInitialize | ( | PCSYMCRYPT_MLDSA_INTERNAL_PARAMS | pParams, |
| UINT32 | nRowVectors, | ||
| UINT32 | nColVectors, | ||
| UINT32 | nPolyElements, | ||
| UINT32 | cbScratch | ||
| ) |
Definition at line 2313 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaKeyGenerateEx(), SymCryptMlDsaPkDecode(), SymCryptMlDsaPkEncode(), SymCryptMlDsaSignEx(), SymCryptMlDsaSkDecode(), SymCryptMlDsaSkEncode(), and SymCryptMlDsaVerifyEx().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsaTemporariesFree | ( | PSYMCRYPT_MLDSA_INTERNAL_COMPUTATION_TEMPORARIES | pTemporaries | ) |
Definition at line 2403 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaKeyGenerateEx(), SymCryptMlDsaPkDecode(), SymCryptMlDsaPkEncode(), SymCryptMlDsaSignEx(), SymCryptMlDsaSkDecode(), SymCryptMlDsaSkEncode(), and SymCryptMlDsaVerifyEx().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsaUseHint | ( | PCSYMCRYPT_MLDSA_INTERNAL_PARAMS | pParams, |
| PCSYMCRYPT_MLDSA_VECTOR | pvHint, | ||
| PSYMCRYPT_MLDSA_VECTOR | pvCommitment | ||
| ) |
Definition at line 1132 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaVerifyEx().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsaVectorAdd | ( | PCSYMCRYPT_MLDSA_VECTOR | pvSrc1, |
| PCSYMCRYPT_MLDSA_VECTOR | pvSrc2, | ||
| PSYMCRYPT_MLDSA_VECTOR | pvDst | ||
| ) |
Definition at line 681 of file mldsa_primitives.c.
Referenced by SymCryptMlDsakeyComputeT(), and SymCryptMlDsaSignEx().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsaVectorCopy | ( | PCSYMCRYPT_MLDSA_VECTOR | pvSrc, |
| PSYMCRYPT_MLDSA_VECTOR | pvDst | ||
| ) |
Definition at line 656 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaPkEncode(), and SymCryptMlDsaSkEncode().
| _Use_decl_annotations_ PSYMCRYPT_MLDSA_VECTOR SYMCRYPT_CALL SymCryptMlDsaVectorCreate | ( | PBYTE | pbBuffer, |
| UINT32 | cbBuffer, | ||
| UINT8 | nElems | ||
| ) |
Definition at line 628 of file mldsa_primitives.c.
Referenced by SymCryptMlDsakeyInitialize(), and SymCryptMlDsaTemporariesAllocateAndInitialize().
| SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptMlDsaVectorDecode | ( | _In_reads_bytes_(pvDst->nElems *nBitsPerCoefficient *(SYMCRYPT_MLWE_POLYNOMIAL_COEFFICIENTS/8)) PCBYTE | pbSrc, |
| UINT32 | nBitsPerCoefficient, | ||
| UINT32 | signedCoefficientBound, | ||
| _Inout_ PSYMCRYPT_MLDSA_VECTOR | pvDst | ||
| ) |
Definition at line 2274 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaSigDecode(), and SymCryptMlDsaSkDecode().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsaVectorEncode | ( | PCSYMCRYPT_MLDSA_VECTOR | pvSrc, |
| UINT32 | nBitsPerCoefficient, | ||
| UINT32 | signedCoefficientBound, | ||
| PBYTE | pbDst | ||
| ) |
Definition at line 2247 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaPkEncode(), SymCryptMlDsaSigEncode(), SymCryptMlDsaSignEx(), SymCryptMlDsaSkEncode(), and SymCryptMlDsaVerifyEx().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsaVectorHighBits | ( | PCSYMCRYPT_MLDSA_INTERNAL_PARAMS | pParams, |
| PCSYMCRYPT_MLDSA_VECTOR | pvSrc, | ||
| PSYMCRYPT_MLDSA_VECTOR | pvDst | ||
| ) |
Definition at line 1977 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaMakeHint(), and SymCryptMlDsaSignEx().
| _Use_decl_annotations_ UINT32 SYMCRYPT_CALL SymCryptMlDsaVectorInfinityNorm | ( | PCSYMCRYPT_MLDSA_VECTOR | pvSrc | ) |
Definition at line 1899 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaSignEx(), and SymCryptMlDsaVerifyEx().
| VOID SYMCRYPT_CALL SymCryptMlDsaVectorINTT | ( | _Inout_ PSYMCRYPT_MLDSA_VECTOR | pvSrc | ) |
Definition at line 759 of file mldsa_primitives.c.
Referenced by SymCryptMlDsakeyComputeT(), SymCryptMlDsaPkEncode(), SymCryptMlDsaSignEx(), SymCryptMlDsaSkEncode(), and SymCryptMlDsaVerifyEx().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsaVectorLowBits | ( | PCSYMCRYPT_MLDSA_INTERNAL_PARAMS | pParams, |
| PCSYMCRYPT_MLDSA_VECTOR | pvSrc, | ||
| PSYMCRYPT_MLDSA_VECTOR | pvDst | ||
| ) |
Definition at line 2000 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaSignEx().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsaVectorNTT | ( | PSYMCRYPT_MLDSA_VECTOR | pvSrc | ) |
Definition at line 748 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaExpandMask(), SymCryptMlDsaKeyGenerateEx(), SymCryptMlDsaPkDecode(), SymCryptMlDsaSkDecode(), and SymCryptMlDsaVerifyEx().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsaVectorPolyElementMontMul | ( | PCSYMCRYPT_MLDSA_VECTOR | pvSrc1, |
| PCSYMCRYPT_MLDSA_POLYELEMENT | peSrc2, | ||
| PSYMCRYPT_MLDSA_VECTOR | pvDst | ||
| ) |
Definition at line 729 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaSignEx(), and SymCryptMlDsaVerifyEx().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsaVectorPower2Round | ( | PCSYMCRYPT_MLDSA_VECTOR | pvSrc, |
| PSYMCRYPT_MLDSA_VECTOR | pvDst1, | ||
| PSYMCRYPT_MLDSA_VECTOR | pvDst0 | ||
| ) |
Definition at line 2060 of file mldsa_primitives.c.
Referenced by SymCryptMlDsakeyComputeT().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsaVectorSetZero | ( | PSYMCRYPT_MLDSA_VECTOR | pvDst | ) |
Definition at line 668 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaMatrixVectorMontMul(), SymCryptMlDsaPkDecode(), and SymCryptMlDsaSkDecode().
| _Use_decl_annotations_ VOID SYMCRYPT_CALL SymCryptMlDsaVectorSub | ( | PCSYMCRYPT_MLDSA_VECTOR | pvSrc1, |
| PCSYMCRYPT_MLDSA_VECTOR | pvSrc2, | ||
| PSYMCRYPT_MLDSA_VECTOR | pvDst | ||
| ) |
Definition at line 705 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaSignEx(), and SymCryptMlDsaVerifyEx().
| const SYMCRYPT_HASH_OID_MAPPING g_hashOidMap[] |
Definition at line 213 of file mldsa_primitives.c.
Referenced by SymCryptHashMlDsaValidateHashAlgAndGetOid().
| const UINT32 MLDSA_NEGATIVE_ZETA_BITREV_TIMES_R[SYMCRYPT_MLWE_POLYNOMIAL_COEFFICIENTS] |
Definition at line 91 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaPolyElementINTT().
| const UINT32 MLDSA_ZETA_BITREV_TIMES_R[SYMCRYPT_MLWE_POLYNOMIAL_COEFFICIENTS] |
Definition at line 56 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaPolyElementNTT().
| const SYMCRYPT_MLDSA_INTERNAL_PARAMS SymCryptMlDsaInternalParams44 |
Definition at line 126 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaGetInternalParamsFromParams().
| const SYMCRYPT_MLDSA_INTERNAL_PARAMS SymCryptMlDsaInternalParams65 |
Definition at line 150 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaGetInternalParamsFromParams().
| const SYMCRYPT_MLDSA_INTERNAL_PARAMS SymCryptMlDsaInternalParams87 |
Definition at line 174 of file mldsa_primitives.c.
Referenced by SymCryptMlDsaGetInternalParamsFromParams().