Crypo Algo for SSPI's EncryptMessage()

From: cmg_cobra (cglasnap_at_vt.edu)
Date: 02/22/05


Date: 21 Feb 2005 19:40:51 -0800

I'm trying to determine the cryptographic algorithm used by SSPI's
Encrypt/Decrypt functions using the NTLM SSP. I'm using
QueryContextAttributes with SECPKG_ATTR_KEY_INFO as a parameter in an
attempt to do this, but apparently this function doesn't allow this
parameter while running in user-mode.

Most important question: Is there another way to figure out which algo
is being used?

Less important question: Or is there an easy way to call this function
in kernel-mode rather than user-mode? I'm guessing the answer to my
second question is no, but it's worth a shot.

I'm also playing around with the NTLM settings found in Local Security
Policy (i.e. only allow NTLMv2, enforce packet privacy, etc.). When I
look at the initial negotiation between client/server, NTLM flags sent
by the client indicates it supports NTLM, even though I set the
minimums to NTLMv2. What's the deal with that? Do these Local Security
Policy settings have any effect if you are calling the SSPI functions
directly?

-cmg_cobra



Relevant Pages

  • How to authenticate
    ... I have a client/server application via remoting but NOT hosted under ... I want the client to be authenticated (possibly NTLM) before ... On MSDN and on the internet I could not find any sample! ...
    (microsoft.public.dotnet.security)
  • RE: ADS Password Storage Protection
    ... In Windows it is LM or NT (sometimes called NTLM) hashes. ... NTLMv2 refers to the authenication protocol that exchanges the hash ... between the client and server authentication database. ...
    (Security-Basics)
  • Re: technetID KB321728: NO kerberos support for proxy servers
    ... microsoft is still incorperating NTLM ... NTLMv2 contains the password in a hash form. ... connections with NT4 servers, SAMBA shares on UNIX and - ... here it is- our PROXY server using NTLM won't work as ...
    (microsoft.public.isa)
  • Re: NTLM queries
    ... If there is a fallback it will be to ntlmv2, ntlm, or lm. ... ntlm [send ntlmv2 response only, ... "Windows 2000 lan manager authentication level" or download the free Windows ...
    (comp.os.ms-windows.nt.admin.security)
  • Re: NTLM queries
    ... If there is a fallback it will be to ntlmv2, ntlm, or lm. ... ntlm [send ntlmv2 response only, ... "Windows 2000 lan manager authentication level" or download the free Windows ...
    (microsoft.public.win2000.security)