Stephen Veit wrote: > Unfortunately you have two mistakes. The first simple one is that the > decimal equivalent for 0xF0000000 (CRYPT_VERIFYCONTEXT) is 4026531840 > not 251658240. Ah, missed another zero there (251658240 = 0xF000000). [snip] > Really you should check for errors and display them. Here is a > somewhat more refined implementation: Thanks so much! I'm learning a bit more about C and Win32... I'm now using your code; all that's left to do is adding the CryptReleaseContext call. -- dave