error:0407008A:rsa routines:RSA_padding_check_PKCS1_type_1:invalid padding openssl C++

I am trying to verify a signature using OpenSSL in C++. The code is below:
bool verifySignature(QString updateInfo_file_signature, QString uInfo_file_hash) {
RSA *rsa = NULL;
BIO *keybio;

FILE *file = fopen("pubkey.pem&qu… Continue reading error:0407008A:rsa routines:RSA_padding_check_PKCS1_type_1:invalid padding openssl C++

error:0407008A:rsa routines:RSA_padding_check_PKCS1_type_1:invalid padding openssl C++

I am trying to verify a signature using OpenSSL in C++. The code is below:
bool verifySignature(QString updateInfo_file_signature, QString uInfo_file_hash) {
RSA *rsa = NULL;
BIO *keybio;

FILE *file = fopen("pubkey.pem&qu… Continue reading error:0407008A:rsa routines:RSA_padding_check_PKCS1_type_1:invalid padding openssl C++

Micropython on Microcontrollers

There are plenty of small microcontrollers available for all kinds of tasks, each one with its unique set of features and capabilities. However, not all of us want to spend time mucking about in C or assembly to learn the intricacies of each different chip. If you prefer the higher …read more

Continue reading Micropython on Microcontrollers

Not-So-Random: Using LD_PRELOAD to Hijack the rand() Function

    Today I wanted to continue the series on using LD_PRELOAD.  In today’s post we are going to use LD_PRELOAD to hijack the rand() function in a simple random number guessing game to control the generation of random numbers and effectively be able to … Continue reading Not-So-Random: Using LD_PRELOAD to Hijack the rand() Function