.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Post New Web Links

schannel and MS_ENH_RSA_AES_PROV

Posted By:      Posted Date: August 31, 2010    Points: 0   Category :.NET Framework
I am using schannel for TLS and am trying to use the algorithm CALG_AES_256 within the "Microsoft Enhanced RSA and AES Cryptographic Provider" (MS_ENH_RSA_AES_PROV).  Whenever I set the supported algorithms to an array of 1 and set it to CALG_AES_256 within the SCHANNEL_CRED structure passed to AcquireCredentialsHandle() I receive an error on the subsequent call to InitializeSecurityContext() of 0x80090331 (The client and server cannot communicate, because they do not possess a common algorithm).  It seems schannel is not using the MS_ENH_RSA_AES_PROV and/or cannot support the CALG_AES_256 algorithm.  I see no way to instruct schannel to use this provider, does such a way exist?  I am using Windows 2003 Enterprise Server with SP2 and I can enumerate the MS_ENH_RSA_AES_PROV CSP provider, so I know its there.

View Complete Post

More Related Resource Links

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend