次の方法で共有


BCRYPT_PQDSA_PADDING_INFO structure

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未満の 0 以外の整数である必要があります。

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 Insider (ビルド 27843): ML-DSA のサポートが開始されます。 [デスクトップ アプリのみ]
サポートされている最小のサーバー Windows Insider (ビルド 27843): ML-DSA のサポートが開始されます。 [デスクトップ アプリのみ]
Header bcrypt.h

See also

BCryptSignHash

BCryptVerifySignature