I have a problem with signature using RSACryptoServic eProvider
I use
signature=privK ey.SignData(byt eData, new MD5CryptoServic eProvide),
and get a byte array of signature.
The other party use CryptoAPI C++ function:
//create the hash object
CryptCreateHash (
Provider,
CALG_MD5,
0,
0,
&Hash)
//add the data to be signed to the hash
CryptHashData(
Hash,
(LPBYTE)(LPCTST R)byData,
sSignatureData. GetLength(),
0)
//sign the hash data
//two steps, first step is to get the length
//so we know how big to allocate the output buffer
CryptSignHash(
Hash,
dwKeySpec,
NULL,
0,
NULL,
&dwSignLengt h
)
CryptSignHash(
Hash,
dwKeySpec,
NULL,
0,
(LPBYTE)(LPCTST R)sSignature,
&dwSignLengt h
)
Now they got a signature is different from what I got, and we are using
the same pair of public and private certificate and .pfx file, is there
other people have the same problem? Is there any solution to this
problem?
Thanks 1 2862
I got answer for myself.
The signature result is the same, except C# and C++ give result in
reverse order. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Andy Atherton |
last post by:
When using SQL 2000 personal desktop (i.e MSDE) on win 98 Machine with our
VB6 application we sometimes get this error
CryptoAPI function
'CryptAcquireContext' failed.
Error 0x8009001d: Provider DLL failed to initialize correctly.
On Win2000/2003 XP we not get this error any one come across this before
|
by: Kim HM |
last post by:
I Have a .NET program sending mails using CDOEX.
These mail I need to sign. I god a tip that i shoud use CAPICOM. That worked
fine sending a mail with signature.
BUT the problem is that I have to type the password for my certificate every
time my program signs a mail :o(
My program is a windows service running on a server so typing passwords is
bad.
|
by: Kim |
last post by:
I have a .NET service sending mails using CDOEX.
These mails I need to sign. I got a tip that I should use CAPICOM. That
worked
fine sending a mail with signature.
BUT the problem is that I have to type the password for my certificate every
time my program signs a mail :o(
My program is a windows service running on a server so typing passwords is
|
by: Dave Bailey |
last post by:
I have an application installed on a web server. When forst intalled it worked fine. The administrator rebooted the server and then when accessing the app the folowing error appears:
CryptoAPI cryptographic service provider (CSP) for this implementation could not be acquired.
I am using DPAPI(Machine Store) to encrypt a connection string. The decryption code is as follows:
private string GetConnectionString()
{
DataProtector dp...
|
by: Greg Merideth |
last post by:
I've finally got my client/server secure soap process working and I've
just noticed that under the servers
\NetworkService\AppData\MS\Crypto\RSA folder there are some
100+ paired sets of RSA keys.
I don't setup RSACryptoServiceProvider using CspParameters and I didn't
give the RSA initiator any paramters when I setup the class yet, each
implementation of the RSA class, as a web service, is creating a
cryptoAPI storage bin for the RSA...
| |
by: no game |
last post by:
I have a problem with signature using RSACryptoServiceProvider
I use
signature=privKey.SignData(byteData, new MD5CryptoServiceProvide),
and get a byte array of signature.
The other party use CryptoAPI C++ function:
|
by: Bonj |
last post by:
Hi
i have a question regarding the CryptoAPI.
I can seemingly call CryptAcquireContext, and if I pass any random string as
the key container name and NULL as the provider name, with CRYPT_NEWKEYSET
as the last parameter, then the rest of the crypt functions seem to work.
But I came across an instance when I stopped debugging the program, before I
had called CryptReleaseContext, and when I ran the program again, I got
FALSE returned, and...
|
by: Mike P |
last post by:
This is a very weird problem, when I boot my IIS server I get a CryptoAPI
cryptographic service provider (CSP) for this implementation could not be
acquired exception. However, once I access my site within the server, the
exception goes away. My ASP page only displays the logon user (only 2 lines
of code). I don't understand this behavior at all.
|
by: =?Utf-8?B?VmVuZWRpY3Q=?= |
last post by:
Hi All,
I have a program written in VB6 which utilize CryptoAPI to encrypt bitmap
file.
I'm writting a new program in C# 2005 to decrypt those encrypted bitmap file
by adding the CryptoAPI reference in my C# project. Everything seem fine, i
have no problem when execute the program.
But when I click the button to decrypt the bitmap file, there is an error
|
by: =?Utf-8?B?QUEyZTcyRQ==?= |
last post by:
Am I correct in thinking that the <signatureof a function is its <syntax>
i.e. the arguments and the order in which they are specified when calling the
function?
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |