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

Centralize digital certificates into a webservice inside an organization

I have a specific need inside my organization and want to know if it would be possible. Any suggestion would be appreciated; Inside my organization, for several reasons, there are distributed a lot of certificates installed inside each worker…
sysman
  • 1
  • 3
0
votes
0 answers

Get certificate selected by window.crypto "ask"

anyone knows how you can get on javascript which certificate do you select from the pop-up of window.crypto.signText("xxxxx","ask")? On Firefox, just in case :) I'm using https://developer.mozilla.org/en-US/docs/JavaScript_crypto but i can't believe…
oliver
  • 1
0
votes
0 answers

How to set to use DPAPI or not?

I learn about WIN API methods responsible for secure storage. I read about CryptoAPI and DPAPI: "The public DPAPI interfaces are part of Crypt32.dll and are available for any user process that has loaded it. This DLL is part of CryptoAPI." So…
RuF
  • 548
  • 1
  • 11
  • 31
0
votes
1 answer

How can I populate scatterlists from a buffer

Trying to use the linux crypto api to encrypt data coming in from a byte array buffer. Looking through the crypto folder source I came across sg_copy_from_buffer in scatterlist.c. It needs to know the number of entries as one of its parameters but…
eatinasandwich
  • 596
  • 6
  • 22
0
votes
1 answer

Importing pfx/p12 file into smartcard c#

Is there a way to Import a .p12/pfx file to Smartcard programmatically? I know it works via certutil: certutil -user -p "pw" -csp "csp" -importpfx path I am using "Microsoft Base Smart Card Crypto Provider" Via certutil it is working thus I am sure…
benchvondaranch
  • 339
  • 3
  • 10
0
votes
1 answer

CryptEncrypt gives different results for different languages

When I run this code in C++ (shown), C#, or VB6, I get different results for pbBuffer in CryptEncrypt! The only thing I can think of is CryptEncrypt is language-based or the parameters are wrong for the other functions. What other reason would this…
JeffR
  • 765
  • 2
  • 8
  • 23
0
votes
1 answer

CryptDecrypt() Failing to decrypt some blocks C++

I'm currently working on a simple encryption/decryption system in C++ using the Windows API. I believe I've been successful at getting CryptEncrypt() to work (AES_128) for encrypting a file. But when I Use CryptDecrypt() to decrypt the file, the…
0
votes
1 answer

Windows Crypto API support OCSP

Does .net Crypto API support OCSP certificate validation or should I look at Bouncy Castle for this purpose?
AlexandruC
  • 3,527
  • 6
  • 51
  • 80
0
votes
1 answer

What is this undocumented flag in the Microsoft CryptoAPI File Encrypt Sample?

In the Microsoft C sample code for RC4-encrypting a file using the CryptoAPI, the functions CryptGenKey and CryptDeriveKey are passed an undocumented flag #define KEYLENGTH 0x00800000 ... if (CryptGenKey( hCryptProv, …
Felix Dombek
  • 13,664
  • 17
  • 79
  • 131
0
votes
1 answer

Adding authenticated attributes using MS CryptoApi

I'm struggling adding authenticated attributes (OCSP data) to my message using CryptoApi. I first used CryptoApi's simplified message functions, but now switch to the low-level message functions, thinking that I would be able to control the message…
Magda
  • 201
  • 3
  • 10
0
votes
0 answers

RSA Crypto Service Container Private Key goes out of sync

In a client/server model We have a RSACryptoServiceProvider key created using a well known "container name" at the startup code, and set a rule on it to Allow Generic Read, and persist the public key into a database. The clients connecting to the…
kernelman
  • 41
  • 2
  • 15
0
votes
1 answer

CCCrypto decrypt: exactly one block less

I'm trying to decrypt string encrypted by golang script. The encryption is CBC, key size 256. 16 bytes long iv is include at the beginning of ciphered text, as golang doc suggested. Everything works fine except the objc codes always lost the last…
wangii
  • 2,570
  • 1
  • 22
  • 29
0
votes
1 answer

Using CryptoAPI to generate ascii cipher text

Specifically what i'm trying to do is Generate a PassStub field for a Remote Assistance ticket. The problem is that my results look like binary data but somehow Microsoft generates printable characters. In [MS-RAI]: Remote Assistance Initiation…
Jon Clegg
  • 3,870
  • 4
  • 25
  • 22
0
votes
1 answer

How to get private key with asn format from pfx?

How to get private key with asn format from pfx? I need to get the private key with asn format to put to Qt's variable QSslKey to connect https server. I have to use Win32 Api to do it, and I can't use OpenSSL to transform it. First I try to get the…
lvshuchengyin
  • 235
  • 1
  • 4
  • 19
0
votes
2 answers

CryptEncrypt/CryptDecrypt WinAPI functions fail when called from vb.net

Any help with the following greatly appreciated..... I have some C++ code I've inherited which decrypts certain structures/byte arrays; I've been trying to write a test program in VB.net which exactly mimics the C++ decryption routine using the same…