Verify a DSA signature over a message.
Namespace: CryptoSysPQCAssembly: diCrSysPQCNet (in diCrSysPQCNet.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static bool Verify(
DsaAlg alg,
byte[] sig,
byte[] msg,
byte[] pk,
byte[] context = null,
DsaSigOpts opts = DsaSigOpts.Default
)
Public Shared Function Verify (
alg As DsaAlg,
sig As Byte(),
msg As Byte(),
pk As Byte(),
Optional context As Byte() = Nothing,
Optional opts As DsaSigOpts = DsaSigOpts.Default
) As Boolean
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
BooleanTrue if signature verifies.
Exceptions
RemarksWhen 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