Questions tagged [wincrypt]

The portion of Windows API dealing with cryptography.

The portion of Windows API dealing with cryptography.

85 questions
0
votes
1 answer

Passing username and password to CryptRetrieveTimeStamp function

I'm trying to retrieve a timestamp from a TSA using CryptRetrieveTimeStamp. I can get it from some of the free services found on this answer, but always using the TIMESTAMP_NO_AUTH_RETRIEVAL flag. But now that I want to use a paid service that uses…
Lucas Ayala
  • 2,309
  • 2
  • 16
  • 20
0
votes
0 answers

CryptEncrypt() Function

I am a novice in C++ and started learning wincrypt yesterday. I have written this piece of code, #pragma comment(lib, "crypt32.lib") #include #include #include // CryptoAPI definitions using namespace…
0
votes
1 answer

Deprecated function from wincrypt

What does it mean that a function, in particular CryptExportPKCS8 is deprecated? https://msdn.microsoft.com/en-us/library/windows/desktop/aa379932(v=vs.85).aspx I'm aware that one can't use it with newer version of wincrypt just because it is not…
Leśny Rumcajs
  • 2,259
  • 2
  • 17
  • 33
0
votes
0 answers

Using the same cryptography approach in both C++ and C#

CONTEXT: I'm developing an application that requires a licensing process to add some security to it. The application is major C#, but it has a small portion (an independent module, in fact) of it written in C++. The latter already has a licensing…
lucas.mdo
  • 339
  • 7
  • 27
0
votes
0 answers

Argument of type "unsigned long *" is incompatible with parameter of type "HCRYPTHASH *"

I'm using Visual Studios 2012 on Windows 8.1, on a 64 bit machine. I'm having trouble compiling the following code for c++, getting the above error: #include #include void MD5Init(MD5Context *ctx) { …
AodhanOL
  • 630
  • 7
  • 26
0
votes
0 answers

How to decrypt encrypted data stored in BSTR

I have seen the other links on this site about this topic but they are not helpful. If anyone can help me with this I would greatly appreciate it. I am reading a line of encrypted text generated with the WinCrypt API using Visual Studio C++ 2010…
Bubo
  • 768
  • 4
  • 18
  • 34
-1
votes
1 answer

Add Subject Alternate Name to self signed certificate using wincrypt

How to add Subject Alternative Name in the certificate. Using wincrypt I have created and added the certificate to "MY" and "root" path where CN can be machine fully qualified domain name or hostname or IP. As Subject alternate name I want to add…
Rem San
  • 367
  • 1
  • 5
  • 20
-1
votes
1 answer

encrypt data with AES in one app and decrypt in an other c++ wincrypt

I'm using wincrypt to encrypt data in the server side, using AES. I want to decrypt data coming from server in the client side. I know that AES uses IV to increase randomization. In python we can specify the IV so it's not a problem to encrypt data…
rafiki
  • 91
  • 1
  • 8
-1
votes
2 answers

What is the key agreement (or key derivation) function used by openssl?

I am trying to replace a openssl code to CNG winapi code. Below is the barebone openssl code which i have. const char *generator = ""; // 256 character hex string const char *prime = ""; // 256 character hex string dh = DH_new(); //…
-3
votes
1 answer

How to disable encryption done by Wincrypt API

I want to disable the encryption which is encrypted in Wincrypt API. Please give me suggestions, how to do that, general sugestions are also welcomed Below is the Code Samples from EncryptedMessage.cpp : EncryptedMessage Encrypt( TextMessage& Msg,…
ojas
  • 247
  • 1
  • 4
  • 17
1 2 3 4 5
6