SQL Flow Field Guide

VERIFYSIGNEDBYASYMKEY

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

cryptographic transform or key lookup

What changes

Input
plaintext or ciphertext and a key, certificate or passphrase
Output or change
ciphertext, plaintext, hash, signature check, or key metadata
Return type
int Returns 1 when the signatures match; otherwise 0.

Syntax at a glance

VerifySignedByAsymKey( Asym_Key_ID , clear_text , signature )

Work example

Verify a signature with the public key of an expected asymmetric identity.

Use synthetic data in an isolated database. Follow the existing key hierarchy and keep keys and plaintext out of output.

Check your work Require the documented success result and bind verification to the exact payload and signer.

Open Microsoft Learn for full syntax, permissions, and details for your version.