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
3
votes
2 answers

windows CSP api

I am trying to write my own CSP. I am trying to do this by implementing a dll file, but I am not sure if I am on right way. I found something like this: Cryptographic Service Provider Developer's Toolkit (CSPDK) there are samples with CSP…
Jakub C
  • 595
  • 1
  • 5
  • 14
3
votes
2 answers

How to set the ASN1 NumericString type to SubjectDN OID?

I have a working program, which generates a CSR, from specified SubjectDN string (example: 2.5.4.3=Name Surname, 1.2.300.38.22=12345678), using MS Crypto API. I use the function: CertStrToName(), to encode it, and everything is working fine, except…
Denis Zevakhin
  • 626
  • 3
  • 8
3
votes
1 answer

Translate PEM to DER on Windows CE 3

I have a RSA public key crypto wrapper which works quite well in desktop Windows and Windows Embedded/POSReady. I need to port this system to both Windows CE 5 and Windows CE 3. In part of this system, I allow developers to import various crypto…
Patrick W
  • 317
  • 1
  • 13
2
votes
1 answer

Windows CNG custom key storage provider

How to register a custom key storage provider in CNG with its own key BLOB format, etc? What I really want to do is to provide an ability to handle a custom CNG key BLOB format in .NET. I've read in CNG docs that it provides a way to add third-party…
wilkexx
  • 113
  • 1
  • 7
2
votes
1 answer

How to sign and encrypt hash with c# given only a keystore

I'm using a keystore that was created using vc 6.0 and the cryptoAPI. The keystore contains all the exchange/signature keys. So i can use the public keys just fine to encrypt data using RSA but when it comes time to sign or decrypt the data I cant…
user1202605
  • 51
  • 1
  • 4
2
votes
3 answers

two different hash values for same string

I need to compare hash values of two strings. I use string "template" for testing. But I got different hash values for this string so it is always not the same. I use CryptoApi and MD4 int _tmain(int argc, _TCHAR* argv[]) { …
2
votes
1 answer

Using the Crypto API in the Linux Kernel on a file

I have been trying to use the crypto api in the linux kernel, what i need to do is sha a file that is being opened. I am using the LSM to catch those file opens. What I have so far is creating a struct crypto_shash using struct crypto_shash…
Digital Powers
  • 460
  • 6
  • 23
2
votes
2 answers

Microsoft RSA CSP key size

From what I can see, Microsoft's RSA CSP always generates identical bitlength pseudo prime numbers. So if the key size is 1024, the P and Q values seem to be (?) guaranteed to be 512 bits each? Does anyone know for sure if this, in fact, is the…
2
votes
1 answer

How to obtain Provider name of a CSP from PCCERT_CONTEXT?

I have been try to get a provider name from PCCERT_CONTEXT because in my current project i must have load all certificate from smart card into my program. And in the future I have to deal with those certificate with some task like renewal…
tandaica0612
  • 369
  • 10
  • 23
2
votes
1 answer

CryptoAPI and XMLDSIG c, c++, delphi

I'm trying to sign a xml document (http://www.w3.org/TR/xmldsig-core/) with an enveloped signature, I managed to calculate the signed info part but I'm struggling to get a meaningful result from the cryptoapi, unfortunately I have to stick to the…
angelodiego
  • 245
  • 1
  • 16
2
votes
1 answer

How to decrypt an AES-256 encrypted zip file using Crypto API

I am attempting to decompression AES-256 encrypted files in Delphi using TZipFile and Microsoft Crypto. It always returns a bad data error and returns gibberish. Background... I am using the standard TZipFile class to open the zip, and have…
nix
  • 21
  • 2
2
votes
0 answers

Retrieve coin base price (or quantity) from transaction data using BscScan APIs

I'm trying to write an app to track my gains/losses for tax purposes based on the swaps I've made using Bscscan APIs. I can easily retrieve all the swaps I've made using one of BscScan "accounts" module api endpoint (Get a list of 'BEP-20 Token…
2
votes
0 answers

Kraken Futures API - authenticationError Python

I'm finding the Kraken Futures API confusing compared to other providers. Using a demo account I'm trying to make basic private requests and not working so far with authentication error. The code mainly comes from Kraken docs (non-futures) Futures…
Alexander Thomsen
  • 459
  • 1
  • 4
  • 16
2
votes
0 answers

Get the API Key for use Rest API of Hotbit API

I'm going to make an application using REST API of Hotbit API, how is possible to get the API Key? The REST API of Hotbit are located here: https://github.com/hotbitex/hotbit.io-api-docs/blob/master/readme_en.md
domenico
  • 59
  • 1
  • 7
2
votes
0 answers

How to Handle Large Input Buffer in Linux CryptoAPI

I have large encrypted and authenticated files (a couple of MB each, which is more than 16 pages) that I want to decrypt using HW accelerator embed in the system via Linux CryptoAPI. I'm using libkcapi to handle the communication with the kernel. To…
user2234234
  • 349
  • 1
  • 7
  • 18