Note
某些資訊與一款尚未正式發行的產品有關,該產品在正式推出之前可能會進行大幅修改。 Microsoft 對於此處提供的資訊,不做任何明確或隱含的保證。 本主題所述的功能可在 Windows Insider Preview發行前版本取得。
The BCRYPT_PQDSA_PADDING_INFO structure is used to specify the padding scheme for Post-Quantum Digital Signature algorithms (PQDSA).
Syntax
typedef struct _BCRYPT_PQDSA_PADDING_INFO {
PUCHAR pbCtx;
ULONG cbCtx;
LPCWSTR pszPrehashAlgId;
} BCRYPT_PQDSA_PADDING_INFO;
Fields
pbCtx
包含內容字串之緩衝區的指標。
NULL可能是 。 If pbCtx is NULL, then cbCtx must be set to 0.
cbCtx
The size, in bytes, of the context string pointed to by pbCtx. Its value must be 0 if pbCtx is NULL. 否則,它必須是小於 256的非零整數。
pszPrehashAlgId
A CNG hash algorithm identifier. 此參數會指出是否要使用純哈希(例如 ML-DSA)或前置哈希(例如 HashML-DSA) 變體。 值 NULL 表示純變體的使用。 若要使用哈希前變體,此標識碼必須參考已核准的哈希演算法:SHA-2、SHA-3 或 SHAKE。
Remarks
For many PQDSA signatures, the use of BCRYPT_PQDSA_PADDING_INFO is not required. Using NULLpPaddingInfo in calls to BCryptSignHash and BCryptVerifySignature is equivalent to using pure variant with an empty context string.
Requirements
| Requirement | Value |
|---|---|
| 最低支援的用戶端 | Windows 測試人員 (組建 27843): 開始支援 ML-DSA。 [僅限傳統型應用程式] |
| 支援的最低伺服器 | Windows 測試人員 (組建 27843): 開始支援 ML-DSA。 [僅限傳統型應用程式] |
| Header | bcrypt.h |