I am trying to add a public key into diffie Hellman implementation of Bcrypt.
example suggested to create and export a public key. In my case I already got the public key from the client. I am trying to use that public key to generate shared…
My problem is that I cannot get the AES 256 CTR output from the C code below to match the output from the OpenSSL command below.
The C code produces this:
5f b7 18 d1 28 62 7f 50 35 ba e9 67 a7 17 ab 22
f9 e4 09 ce 23 26 7b 93 82 02 d3 87 eb 01 26…
I want to get parent certificate (or all certificates in chain for that matter) from Windows Certificate Store (assuming I know the location of the end certificate). I need to get each one in order to build my own custom X509_STORE (using OpenSSL).…
I am trying to use wincrypt api to implement AES encryption/decryption. I've written this code, but it doesn't work. CryptEncrypt returns FALSE and GetLastError() == ERROR_MORE_DATA.
typedef struct
{
BLOBHEADER hdr;
DWORD key_size;
…
Hello there so I am having a very weird issue while trying to decrypt AES text that has been encrypted with AES using phpseclib.
I RSA encrypt an AES key that I use to encrypt a message to the server.
the server decrypt's the RSA encrypted AES key…
I have a problem with my one of my projects.
I use QtCreator with MinGW and Qt 5.4.0
When I try to compile, this simple line gets me some errors :
CryptUnprotectData(data.password, NULL, NULL, NULL, NULL, (DWORD) 0, data.uncryptedPassword);
( with…
I'm trying to encrypt text block with AES128 (ECB mode), to test resulted encryption/decryption functionality I'm using using ECB-AES123 test vectors from "Recommendation for Block Cipher Modes of Operation: Methods and Techniques, NIST Special…
I am new here, I hope I am doing this right.
I made a c++ application that computes MD5 hash digest for files following
microsoft implementation in this link http://msdn.microsoft.com/en-us/library/windows/desktop/aa382380%28v=vs.85%29.aspx
the case…
I'm having trouble using the Windows cryptography API to encode/decode AES-128 blocks.
It seems like the system is geared around first generating a hash, then using that hash to set the key, i.e. CryptCreateHash, CryptHashData, CryptDeriveKey. But…
I'm developing a WinUI 3 app for Windows 11 in c#.
My app save encrypted data into a local database (data are encrypted by RSACryptoServiceProvider class).
The RSACryptoServiceProvider save the private and public keys into a container that other…
I am trying to decrypt data encrypted with AES in Java, using the Wincrypt API in C++.
On the C++ side, I get the error code 80090005 at the CryptDecrypt stage.
What exactly is the C++ Wincrypt API default algorithm? Is my algorithm selection…
Im having the code below but no matter what i pass as key the CryptDecrypt always return 1/TRUE, I have problem checking if the provided key is correct or not.
void DecryptAES(char* content, DWORD contentlen, char* key, DWORD keyLen) {
…
I have used the same plain text, same public key, but get different result in Wincrypt and openssl.
My enviroment is win7 64bit and VS 2010 and openssl 1.1.1S.
here is the code:
/*
* An example of using PEM encoded RSA private keys with CAPI
* -…
I can encrypt a message in windows given a certificate with a private key with CryptMsgOpenToEncode and CryptMsgUpdate. This returns an ASN1 signature which contains the signature and the certificate enclosed in a full ASN1 message.
My problem now…
I have two programms. One creates a persisted key and saves it to key storage provider, then signs the hash and write the sign to the regedit. Second program opens the key from provider and verifies the sign gotten from the regedit.
But my problem…