verifyDetached function
void
verifyDetached({})
Validates a COSE_Sign1 digital signature with a detached payload.
Uses the current system time for drift checking.
msgToCheck: The serialized COSE_Sign1 structure (with null payload)msgToAuth: The same message used during signing (verified but not embedded)verifier: The xDSA public key to verify againstdomain: Application domain for replay protectionmaxDriftSecs: Signatures more in the past or future are rejected
Implementation
void verifyDetached({
required Uint8List msgToCheck,
required Object? msgToAuth,
required xdsa.PublicKey verifier,
required Uint8List domain,
int? maxDriftSecs,
}) => ffi.coseVerifyDetached(
msgToCheck: msgToCheck,
msgToAuth: _encode(msgToAuth),
verifier: verifier.inner,
domain: domain,
maxDriftSecs: maxDriftSecs != null ? BigInt.from(maxDriftSecs) : null,
);