cryptoapi Questions
1
Solved
A client application has to access certificate from Windows certificate store. The search
input is the subject name in X500 string format as below.
"C=CH, S=Aargau, L=Baden, O=Test, OU=FF, CN= Te...
Acetum asked 25/3, 2013 at 13:39
1
Good day. Stackoverflow has helped me many times before, but I am a bit stuck on this one and hope that someone can give me some pointers.
Background: I need to pass X509 data of a certificate to ...
1
Solved
I have requirement of signing a data using MD5-SHA1 hash (MD5 hash and SHA1 hash of the data are combined and then signed).
Primary requirement:
MD5-SHA1 hash is provided by OpenSSL in some way t...
2
Solved
The CryptProtectMemory API in the DPAPI allows you to pass the CRYPTPROTECTMEMORY_SAME_PROCESS flag, which prevents other processes from decrypting the memory. One way around this would be to use O...
2
I was trying to make good use of the MS CAPI, and stumped into a great mischief... The SunMSCapi provider only, hmm, provides, per lack of better word, at least for signature, the following algorit...
0
I am trying to port a UNIX code using OpenSSL (PKCS#5 & PKCS#7) to windows.
In the case of OpenSSL, all the encoding/decoding (certificates or
passwords) is done transparently to the caller in...
3
I just read this article RSA keys under 1024 bits are blocked, and in my .NET software I make extensive use of 384bit keys. Will my program still be able to generate/store/read keys from the Machin...
Decrepit asked 12/7, 2012 at 15:14
2
Solved
I'm looking at implementing an app getting Twitter authorization via Oauth in Java. The first step is getting a request token. Here is a Python example for app engine.
To test my code, I am runni...
1
Solved
I'm currently using CertGetNameString to extract the values for each subject attribute like so:
CertGetNameString(pCertificate,
CERT_NAME_ATTR_TYPE,
0,
szOID_ORGANIZATIONAL_UNIT_NAME,
buf,
_c...
Kaiulani asked 29/2, 2012 at 9:7
2
Solved
I'm attempting to use the Microsoft crypto APIs to compute an MD5 hash, but I'm getting incorrect hashes:
#include <windows.h>
#include <stdio.h>
#include <wincrypt.h>
char* Has...
Gillmore asked 2/1, 2012 at 14:35
1
Solved
I have C++ CLR project with both managed and unmanaged code. In this project I loop through list of cryptoproviders and search for suitable.
So I use functions
CryptEnumProvidersA
CryptAcquireCo...
1
I generated X509 certificate with private key using makecert utility
makecert -n "CN=RootCATest" -r -sv RootCATest.pvk RootCATest.cer
makecert -sk MyKeyName -iv RootCATest.pvk -n "CN=tempCert" -i...
Wingover asked 20/12, 2011 at 9:4
1
Solved
I'm trying to sign my message to Amazon AWS (inside JUnit test), but I encountered a problem.
Here's the code I'm using:
String secretAccessKey = "secret1234678901";
SecretKeySpec keySpec = new S...
Bargeman asked 16/9, 2011 at 9:47
2
Solved
In C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include\WinCrypt.h, the definition for CERT_CHAIN_ENGINE_CONFIG is
typedef struct _CERT_CHAIN_ENGINE_CONFIG {
DWORD cbSize;
HCERTSTORE hRestric...
Oysterman asked 21/6, 2011 at 17:12
2
Solved
I have been given an assignment to drop one of our product's dll and replace it with a pure C# one. The old DLL is a .NET 2.0 Managed C++ (C++\CLI) which wraps calls to the Win32 native Crypto API....
Meddle asked 6/6, 2011 at 14:15
2
Solved
I am trying to port the AquaticPrime framework for Mac to Windows.
On the Mac, it uses the opensll library, and I try to understand how to port this to Windows, where I have to use the CryptoAPI, ...
Bott asked 7/2, 2011 at 20:38
2
Solved
I'm trying to understand how to get a public key imported from PEM format (sample included in the code below) across XP, Vista and Windows 7. The sample code will import the key on both XP and Wind...
Quentinquercetin asked 21/12, 2010 at 0:20
1
Solved
A user recently reported a weird error when using my software. I use DSA signatures to verify licenses. When the software imports the public key to verify a signature, the DSA provider's FromXmlStr...
Samul asked 25/11, 2010 at 5:39
3
Solved
I need to load a PEM encoded X.509 certificate into a Windows Crypto API context to use with C++. They are the ones that have -----BEGIN RSA XXX KEY----- and -----END RSA XXX KEY-----. I found exam...
Almire asked 5/8, 2009 at 4:24
1
Which is better to use openssl or windows capi for ecnryption issues what is the pro and con list for both.
and if it possible to write my encryptor program on openssl and decrypt it with windows c...
Bedlam asked 12/3, 2010 at 10:28
1
Solved
I've recently found a very nonobvious solution for a Microsoft CryptoAPI issue. Because of a read-only flag on the (seemingly unrelated) CREDHIST file, the whole CryptoAPI stack was wildly mi...
Moleskins asked 19/12, 2009 at 19:10
1
OK-- thanks to Mike, I was able to get Wincrypt to generate a Diffie-Hellman keypair. I figured out out to export the public key, and how to import the other party's public key. According to the do...
Elaterium asked 17/9, 2008 at 21:9
© 2022 - 2024 — McMap. All rights reserved.