Nicolas,
make sure that you compile your program so that it uses the correct
runtime-environment. For this, check the following setting: , tab
, Category = "Code generation", Option = "Use run-time library"
If your program uses the release build of OpenSSL libraries, set this to
"Multithreaded
Afer generating your private key, try
openssl rsa -in /php_data_priv.key -pubout -out /php_data_pub.key
The file "php_data_pub.key" will contain the public part of the key only.
Cheers,
Steve
> Hi,
>
> I want to make use of public key encryption
> in my program, but I do not know how to generat
libs are debug builds)
and rebuild your application.
Read the OpenSSL-FAQ for more info.
Cheers,
Steve
--
_____
GINIT Technology GmbH [EMAIL PROTECTED]
Steve Wirth PGP-Key: 0x17FA604D
Emmy-Noether-Str. 11
fields on
>line 2 (looking for field 6, got 1, '' left)Who can help solving this problem?Thanx
>in advance!Stefan Homberg
--
_
GINIT Technology GmbH [EMAIL PROTECTED]
Steve Wirth
\cryptlib.c
> cryptlib.c
> .\crypto\cryptlib.c(59) : fatal error C1083: Cannot open include file:
> 'stdio.h'
> : No such file or directory
> NMAKE : fatal error U1077: 'cl' : return code '0x2'
> Stop.
>
> C:\sw-insta\Openssl\openssl-0.9.6-stable-SNAP-20020112&
Tat,
I had the same problem until I changed the include order of the header files to look
like this:
// 1. Include OpenSSL-stuff
extern "C"{
#include
...
}
// 2. Include STL-stuff
#include
#include
#include
...
// 3. Specify namespace
using namespace std;
Basically, you shouldn't include
Hi,
your problem is that you are decrypting with a different initialization vector than
the one you are encrypting with.
Before decryption, you must set the ivec to the same value it had before encryption.
The relevant parameter of des_ede3_cbc_encrypt() for this is "des_cblock *ivec".
Try for e
ltithreaded DLL" (or "Debug Multithreaded DLL" for OpenSSL debug
build).
Cheers,
Steve
--
_____
GINIT Technology GmbH [EMAIL PROTECTED]
Steve Wirth www.ginit-technology.com
Emmy
Rafa Marín López wrote:
> Hello.
Hi.
>
> RSA * d2i_RSAPublicKey(RSA **a, unsigned char **pp, long length);
>
> What does length param mean?
length is the length of the *pp data, that means it is the number of bytes that you
want to convert from DER to internal form, starting at location *pp.
James wrote:
> Hi all
>
> // Try to copy public key from X509 Request
>
> EVP_PKEY* newEvpKey = X509_REQ_get_pubkey(x509Request);
>
> EVP_PKEY* evpKey = EVP_PKEY_new();
> evpKey->type = newEvpKey->type;
>
> if(!EVP_PKEY_copy_parameters(newEvpKey, evpKey)) // <-- Segfaults here
> {
>EVP
10 matches
Mail list logo