SSPI: VerifySignature(Digest)

SSPI: VerifySignature(Digest)

Secure Home | Search | About

Microsoft Applications Security - Microsoft's general security discussions and announcements 

Bookmark this page:  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
SSPI: VerifySignature(Digest) Roman Prokhorov 10-17-2005
Posted by Roman Prokhorov on October 17, 2005, 4:52 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
Hi,

The
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secauth
n/security/verifysignature.asp> contains the following phrase:

-------
[in] Pointer to a SecBufferDesc structure that references a set of
SecBuffer structures that contain the message and signature to verify.
The signature is in a SecBuffer structure of type SECBUFFER_TOKEN.

When using the Digest SSP, the message and signature are in a single
SecBuffer structure.
--------

Normally (e.g. for Kerberos) I need SecBufferDesc with two SecBuffer
items: SECBUFFER_TOKEN with the signature and SECBUFFER_DATA with the
message. But what about the Digest and WDigest?

I tried composing a single item with 16-byte segnature followed by the
message, but it returned SEC_E_INVALID_TOKEN.

I also tried the "normal" way with two SecBuffer items but it didn't
work either: if SECBUFFER_DATA is less than 16 bytes long it returned
SEC_E_INVALID_TOKEN which leads me to believe that it expects not
message but signature (which is 16 bytes) and pasting signature with
message is needed. Otherwise if it's greater than 16 bytes it returns
SEC_E_OUT_OF_SEQUENCE, even if I see that the sequence number is zero.

Does anyone has a sample code how to use VerifySignature with WDigest
protocol?

--


Roman

Similar ThreadsPosted
Disable Digest Authentication March 9, 2006, 3:07 pm
Bug in Kerberos SSP within SSPI?? July 28, 2005, 4:46 am
SSPI Kerberos for delegation December 18, 2008, 11:17 am
Weird problem with SSPI May 1, 2009, 1:42 pm
Using SPNEGO/SSPI in SMB (Extended Security) August 18, 2005, 5:56 pm
SSPI to verify machine identity January 12, 2006, 8:59 am
SSPI client to ldap Server - Error at last stage of n-way authentication check December 24, 2005, 1:14 am
SSPI client to ldap Server - Error at last stage of n-way authentication check December 24, 2005, 1:15 am

The site map in XML format XML site map

Contact Us | Privacy Policy