cng Questions
2
Solved
The Windows CNG Cryptographic Primitive Functions have return values of type NTSTATUS. Several possible (symbolic) return values are mentioned, for example STATUS_AUTH_TAG_MISMATCH for the BCryptDe...
3
Solved
I have a certificate file provided by another party which I'm loading in my application and cannot export its private key parameters. It looks like the certificate is using CNG rather than CryptoAP...
Amend asked 1/2, 2019 at 16:23
2
Solved
Using the Windows CNG API, I am able to encrypt and decrypt individual blocks of data with authentication, using AES in GCM mode. I now want to encrypt and decrypt multiple buffers in a row.
Accor...
3
Solved
I Currently perform a large amount of encryption/decryption of text in c# using AES.
With a pure software system it can take quite a processor hit for a decent amount of time for the lots of datas...
Afrikah asked 15/11, 2011 at 17:7
1
I'm interested in trying to read fields out of a digital signature. I have code that calls CryptQueryObject, then CryptMsgGetParam to get some fields and finally CertFindCertificateInStore to load ...
Apportionment asked 11/1, 2018 at 1:52
4
Solved
I am looking for a cross platform way to share public keys for ECDSA signing. I had a great thing going from a performance perspective with CngKey and the standard .NET crypto libraries, but then I...
Heel asked 16/6, 2014 at 20:5
2
I've been trying to find how to import an ECC key from a file by ANY MEANS for ages. I have tried accessing an ECC cert from the Windows certificate store, from a .p12 file, and from a PKCS#8 OpenS...
Taka asked 14/5, 2013 at 21:33
1
Solved
I'm trying to test Windows Bcrypt. I have a test program:
#include <bcrypt.h>
#include <iostream>
#include <string>
#pragma comment (lib, "bcrypt.lib")
int main(int argc, char*...
Codeine asked 13/8, 2019 at 7:11
1
Solved
My application is acting as a switchboard to transfer very sensitive messages between two parties and I'm trying to figure out how I can do this without "looking" at the message they're trying to s...
Ordain asked 30/7, 2019 at 6:10
1
Solved
I have a PKCS #12 (PFX) file that is a certificate with CNG RSA key and want to export the private key.
MIIJ4gIBAzCCCZ4GCSqGSIb3DQEHAaCCCY8EggmLMIIJhzCCBgAGCSqGSIb3DQEHAaCCBfEEggXtMII
F6TCCBeUGCyq...
Drunkometer asked 19/3, 2019 at 8:13
0
I’m implementing RSA-OAEP with windows CNG libraries. So far I’ve been able to have a full (encryption/decryption) flow with CNG library and able to verify results with OpenSSL. However, this only ...
Wulfenite asked 17/8, 2018 at 23:43
1
From a legacy program:
bye[] rsaPrivateKeyExport = RSACryptoProvider.ExportCspBlob(true);
These keys are stored in a file.
As part of a legacy refresh, I need to use CNG RSA keys.
So somethi...
Amorous asked 18/7, 2018 at 2:47
1
https://learn.microsoft.com/en-us/sql/relational-databases/security/encryption/extensible-key-management-ekm says :
SQL Server provides data encryption capabilities together with Extensible Key Ma...
Expectancy asked 27/2, 2018 at 11:59
1
Solved
I know the MS CNG private have this format -
BCRYPT_ECCKEY_BLOB
BYTE X[cbKey] // Big-endian.
BYTE Y[cbKey] // Big-endian.
BYTE d[cbKey] // Big-endian.
Thus tried to import below key bytes -
byte...
Boarder asked 28/4, 2018 at 20:48
1
Solved
How can I get a NCRYPT_KEY_HANDLE for encryption/decryption with CNG from the private key of a PCCERT_CONTEXT from the windows certificate store?
The CryptEncrypt function has been superceded by t...
Tarp asked 16/2, 2018 at 16:17
0
I need to convert a EC private key generated by BouncyCastle to a CngKey in C#. Ultimately, I'm trying to create a PKCS12 that can be imported into the Windows Key Store and am following the inform...
Junto asked 14/7, 2017 at 20:52
1
Solved
I have the following problem, and cant find solution:
While consuming APN (Apple push notifications) API, i implemented tokenized authorization. It's apple's new way of authorization on their push...
Mussman asked 15/5, 2017 at 13:18
2
Solved
In the Microsoft CNG API (Cryptography API: Next Generation), there are two sets of functions that appear to do the same thing.
The following functions start with BCrypt and perform key import/expo...
Parasympathetic asked 14/11, 2016 at 19:30
1
Solved
The Microsoft pages provide "minimal" information about the formats that can be used by CngKey.Import. Which actual formats are actually represented by the following CngKeyBlobFormat properties?
...
Dialytic asked 1/4, 2017 at 18:44
3
Solved
I'm trying to find a way to grant permissions for private key from powershell script. Certificate is stored in CNG. All ideas are welcome.
Broken asked 19/6, 2013 at 7:35
3
I'm trying to sign a file with ECDSA using the CNG API and a certificate from the Microsoft Certificate Store. I've read through a lot of documentation and and near done but I get hung up on import...
Encyclopedic asked 7/5, 2012 at 22:59
1
I'm struggling with a port of a couple of security libraries to the Windows Phone 8 and Windows Store 8 platform. I need a function which provides random numbers.
Win32 has CryptGenRandom and even...
Echoism asked 2/5, 2016 at 3:24
1
Solved
I'm working under the VS2013 ARM Developer Prompt. I'm trying to use Microsoft's Cryptography Next Generation (CNG), but I'm experiencing some non-trivial problems.
I'm trying to compile a simple ...
Mahler asked 1/5, 2016 at 5:20
2
This may sound like a strange question, and it feels a bit bizarre that I actually have to ask this, but after spending a couple hours looking over the MSDN documentation for the bcrypt routines th...
Circumlocution asked 14/3, 2012 at 22:57
1
Solved
How can I get the public/private keys from an ECC-based X509Certificate2's into CngKey's for use with ECDsaCng and ECDiffieHellmanCng?
I'm currently using RSA 2048 bit key pairs to sign/encrypt st...
Metastasis asked 31/3, 2014 at 13:7
1 Next >
© 2022 - 2025 — McMap. All rights reserved.