Click or drag to resize

DsaVerify Method

Verify a DSA signature over a message.

Namespace: CryptoSysPQC
Assembly: diCrSysPQCNet (in diCrSysPQCNet.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static bool Verify(
	DsaAlg alg,
	byte[] sig,
	byte[] msg,
	byte[] pk,
	byte[] context = null,
	DsaSigOpts opts = DsaSigOpts.Default
)

Parameters

alg  DsaAlg
DSA signature algorithm.
sig  Byte
Signature value.
msg  Byte
Message to be verified.
pk  Byte
Public key.
context  Byte  (Optional)
Optional context string in byte array to match context string used when signing.
opts  DsaSigOpts  (Optional)
Verify options.

Return Value

Boolean
True if signature verifies.
Exceptions
ExceptionCondition
PqcErrorExceptionIf parameters are bad, wrong lengths, etc.
Remarks

When using the ExternalMu-ML-DSA.Verify option (ExternalMu), pass the value of mu instead of the message. This must be exactly 64 bytes long. Caller is responsible for computing the value of mu independently prior to input.

See Also