-
Data Encryption Problem
I have an Encryption App which works with VB6. No errors - squeaky Clean.
When I access the DLL using classic ASP, the CryptAcquireContext Fails.
CryptAcquireContext(m_CSP_Provider, ByVal sContainer, ByVal sProvider, PROV_RSA_FULL, 0)
and
CryptAcquireContext(m_CSP_Provider, ByVal sContainer, ByVal sProvider, PROV_RSA_FULL, CRYPT_NEWKEYSET)
The definitions for this are:
Private m_CSP_Provider As Long
Private Enum EC_PROVIDER
[No Providers]
[Microsoft Base Cryptographic Provider v.1]
[Microsoft Enhanced Cryptographic Provider]
End Enum
Private Const MS_DEF_PROV = "Microsoft Base Cryptographic Provider v1.0"
Private Const MS_ENHANCED_PROV = "Microsoft Enhanced Cryptographic Provider v1.0"
Private Const PROV_RSA_FULL = 1
Private Const CRYPT_NEWKEYSET = &H8
Private Declare Function CryptAcquireContext Lib "advapi32.dll" Alias "CryptAcquireContextA" ( _
phProv As Long, pszContainer As String, pszProvider As String, _
ByVal dwProvType As Long, ByVal dwFlags As Long) As Long
Both calls fail to get the provider.
Anyone got some ideas?
Similar Threads
-
By kashif_82 in forum ASP.NET
Replies: 0
Last Post: 06-30-2006, 01:39 PM
-
By BernS in forum VB Classic
Replies: 0
Last Post: 06-20-2002, 09:27 AM
-
By Shravan in forum VB Classic
Replies: 2
Last Post: 05-02-2002, 03:10 PM
-
By John in forum VB Classic
Replies: 0
Last Post: 10-12-2001, 05:09 PM
-
By Michael Shutt in forum XML
Replies: 0
Last Post: 06-26-2001, 11:51 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks