The cryptography preemptive waits track Windows crypto calls, and this page covers the family: PREEMPTIVE_OS_BCRYPTIMPORTKEY, CRYPTACQUIRECONTEXT, CRYPTIMPORTKEY, CRYPTOPS, NCRYPTIMPORTKEY, VERIFYSIGNATURE and VERIFYTRUST. Microsoft lists most as internal use only, and does not list BCRYPTIMPORTKEY or NCRYPTIMPORTKEY at all, though both exist on our SQL Server 2025 lab.
The names describe the call. CRYPTOPS is the generic wait for Windows cryptography functions and VERIFYTRUST is the Windows WinVerifyTrust function, which checks a file’s signature.
Are They a Problem?
Rarely; key operations are infrequent and quick against local providers. Get Wait Statistics does not filter them out. The case that gives them real duration: long CRYPTOPS waits are for the infrastructure team to investigate on the servers that provide cryptographic services, such as an Extensible Key Management system, because those calls leave the machine.
A second case is commonly reported rather than documented for SQL Server: signature checks through WinVerifyTrust can stall on servers without internet access while Windows tries to check certificate revocation.
When They Do Matter
Match the waits to the crypto activity at the time: EKM or HSM key use, encrypted backups, TDE operations, service startup. For key management latency, measure the provider from the server; the fix is in that infrastructure. For revocation stalls on isolated servers, follow the Windows guidance for certificate revocation on offline machines, as a deliberate change. The baseline to monitor is the family’s average wait per call.
The PREEMPTIVE_OS Security and Directory Waits
Each of these is SQL Server calling out to Windows for authentication or directory work, and many of those calls go to a domain controller. They tend to rise together when AD is slow. If one is near the top of your waits, read it next to the waits that usually matter.
- PREEMPTIVE_OS_AUTHENTICATIONOPSAuthentication. Windows security calls made while authenticating logins and building tokens.Worth a look when it climbs
- Group Lookup waitsGroup membership. NETGROUPGETUSERS, NETUSERGETGROUPS and the other calls that ask Windows who belongs to which group.Worth a look when it climbs
- PREEMPTIVE_OS_LOOKUPACCOUNTSIDSID to name. Translating a security identifier into an account name, often via a domain controller.Worth a look when it climbs
- PREEMPTIVE_OS_DSGETDCNAMEFinding a DC. Locating a domain controller before the directory question can be asked.Worth a look when it climbs
- PREEMPTIVE_OS_LOGONUSERLogon as a stored identity. The Windows LogonUser call, used when SQL Server must log on with a stored Windows credential.Worth a look when it climbs
- Security waitsOther security APIs. The AUTHZ and security context calls that do not have a page of their own.Worth a look when it climbs
- Crypto waitsCryptography. Windows crypto API calls, for certificates, keys and TLS.Usually noise. This page.
Where To Go Next
These crypto waits are usually small. If you are chasing a real problem, start with the waits that cost you time.
- The waits that usually matter, ranked, with what each one is telling you.
- Performance & Troubleshooting, the scripts and guides for this part of the stack.
Leave a Reply