Questions tagged [cryptoapi]

Cryptography API: Application programming interface that enables application developers to add authentication, encoding, and encryption to Windows-based applications. The API are oriented on the developer of unmanaged (native) applications in C/C++.

Cryptography API: Application programming interface that enables application developers to add authentication, encoding, and encryption to Windows-based applications. The API are oriented on the developer of unmanaged (native) applications in C/C++.

Microsoft cryptographic technologies include CryptoAPI, Next Generation (CNG), Cryptographic Service Providers (CSP), CryptoAPI Tools, CAPICOM, WinTrust, issuing and managing certificates, and developing customizable public key infrastructures. Certificate and smart card enrollment, certificate management, and custom module development are also described.

636 questions
0
votes
1 answer

Is this Java-based multi-cipher crypto format implementation secure?

I implemented a crypto format (in the form of a MultiCipherOutputStream and a MultiCipherInputStream) that supports nesting multiple cipher streams into one another. The goal was to produce a flexible crypto file format that will satisfy even the…
binwiederhier
  • 1,893
  • 1
  • 16
  • 23
0
votes
1 answer

Decrypting string with Microsoft Crypto API with C#

So at my workplace, I have a .NET based web application, that has to pick up an encrypted parameter in a querystring. Those supplying the encrypted string is an external contractor and they prefer (almost demand. cant change contractors though, the…
Frederik T
  • 533
  • 2
  • 10
  • 30
0
votes
3 answers

Crypto API - CryptRetrieveTimeStamp

Good day, Can someone please help me using the Crypto Api function, CryptRetrieveTimeStamp? I successfully use CryptSignMessage to sign my message and now I want to timestamp the data at a TSA, but CryptRetrieveTimeStamp always return…
Magda
  • 201
  • 3
  • 10
0
votes
0 answers

padding issue while decryption using AES256 with ECB mode in java

Hi I have issue while decrypting a String which is encrypted in IOS environment using AES256 with ECB mode. I have to decrypt this encrypted string in java. Let me share my code for decryption in java public static String decrypt(String…
Sau
  • 2,109
  • 6
  • 21
  • 22
0
votes
1 answer

Decrypt CryptoAPI SIMPLEBLOB in Java

Here is my process: CryptoAPI: Generate AES session key Use recipient's public key to encrypt and export (1) in a SIMPLEBLOB with RSA Send SIMPLEBLOB to recipient Java: Recipient receives (3) Recipient wants to decrypt SIMPLEBLOB using his…
KyleM
  • 4,445
  • 9
  • 46
  • 78
0
votes
1 answer

Importing a private-public exchange key pair

I want to export a RSA 1024 private-public exchange key pair from Machine-1 to Machine-2. I am using cryptoAPI in XP. In Machine-1, I generated the key pair. I wrapped a session key which actually encrypts some real data. The key container name is…
Raj
  • 1,113
  • 1
  • 17
  • 34
0
votes
1 answer

How do I add a Client Certificate and Private Key to the Users Store in Windows with C++?

Basically, the title: How do I add a Client Certificate and Private Key to the Users Store in Windows with C++? I've found the function PFXImportCertStore which will let me load the cert and private key from a PKCS12 into a temporary cert store but…
chacham15
  • 13,719
  • 26
  • 104
  • 207
0
votes
1 answer

CRYPT_MODE_CBC not working

DelphiXe4. Encryption-decryption function file with WinCryptoApi. Encryption mode CBC. It seems to be working. Encrypts and decrypts. // get winapi functions - http://msdn.microsoft.com/en-us/library/ms936171.aspx and ect.. procedure…
Gu.
  • 1,947
  • 4
  • 30
  • 49
0
votes
2 answers

Window CryptoAPI: Can I choose the public exponent when generating an RSA key pair?

Using the Windows CryptoAPI, is there any way to specify which public exponent to use when generating a new key-pair (ie. 3 instead of 65537)? As a bonus question: how would I access this functionality using .NET RSACryptoServiceProvider? EDIT: My…
Rasmus Faber
  • 48,631
  • 24
  • 141
  • 189
0
votes
1 answer

CryptoApi wrap and unwrap keys

Is there a way to wrap or unwrap keys in CryptoApi? I tryed to set the key params CRYPT_IMPORT_KEY and CRYPT_EXPORT_KEY with the proper function, but I get the error "params undefined". Other details: The program is written in C++, OS: Win7, IDE:…
andret8
  • 286
  • 1
  • 8
  • 18
0
votes
1 answer

MD5-SHA1 hash using CryptoAPI

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 that is not exposed. This hash is complete. Now my…
doptimusprime
  • 9,115
  • 6
  • 52
  • 90
0
votes
1 answer

Creating a .cer [DER encoding] in code

I have a working solution that creates valid .pfx files (based on CryptoAPI being wrapped in C#). I can import this into my private tore, then export it to a .cer HOWEVER (isnt there always a however?) what I can not do is generate the appropriate…
David V. Corbin
  • 344
  • 1
  • 10
0
votes
0 answers

Efficient RC6 and Mars encryption algorithm implementions

I am running linux kernel 2.6.32 which does not provide rc6 and mars encryption algorithms in its crypto API and I need to embed these algorithms as kernel modules and register them in linux's crypto API. One way is to write my own implementation…
awatan
  • 1,182
  • 15
  • 33
0
votes
2 answers

cryptoapi windows 7 support

Microsoft has introduced cryptography next generation (CNG) from Vista and server 2008 onwards. But my question is to know whether Microsoft supports the old MS CAPI (say for eg. in windows 2003 and windows xp) in Windows 7 and Server…
Raj
  • 1,113
  • 1
  • 17
  • 34
0
votes
1 answer

Decrypting data files with wincrypt. Having trouble. Example shows CBase64Utils?

I need to decrypt some data files with wincrypt and examples are few and far between online. The most solid example I've found is here. However, this is using all sorts of types I cannot seem to find information about (CBase64Utils, CString,…
Mark
  • 6,123
  • 13
  • 41
  • 52