Hello Marek,
originally I must use RSA encryption. But in the internet is written I should
use AES for encryption big files because of the low RSA speed. My solution is
to use AES for file encryption and then to use RSA for encryption the AES key.
The RSA key is protected by 3DES and witten as
Thanks to Marek and Bill :)
I have decided to use the EVP Aes version. This is my try. It worked fine for
me.
Regards
Martin
#include
#include
#include
#include
#include
#include
#include
#include
int AesEncrypt(const std::string &sAesKey,
c
Thanks for the examples. :-)
You wrote:
> In CBC mode, your encrypted data can be bigger for one block (for padding).
But how will I know how big the Buffer
A) must be before encryption
B) and will be filled after encryption?
Example: I want to encrypt 133 Bytes. So I need 9*16 Byte plus maybe one
Hello Marek,
can you help me a little bit more how to handle AES with OpenSSL?
1. If I want to encrypt with AES_cbc_encrypt() I have to give the key I have
created with AES_set_encrypt_key(). For decryption vice versa?
2. What is the parameter "ivec" in AES_cbc_encrypt? What must set if I want
Hello Mailinglist,
1. How must I init Openssl? Must I call additional init functions than this?
OpenSSL_add_all_algorithms();
OpenSSL_add_all_ciphers();
OpenSSL_add_all_digests();
ERR_load_crypto_strings(); // Only for debugging, right?
2. I found in openssl/aes.h the function AES_cbc_encrypt() b
Ok, thanks a lot :)
Original-Nachricht
> Datum: Mon, 3 Sep 2007 15:02:49 +0200
> Von: "Dr. Stephen Henson" <[EMAIL PROTECTED]>
> An: openssl-users@openssl.org
> Betreff: Re: Use Rand_Seed on windows?
> On Mon, Sep 03, 2007, Martin Salo
Hello Mailinglist,
in the OpenSSL documentation is written that I should initialize with
RAND_seed() before using RSA_public_encrypt() and RSA_generate_key_ex(). But I
havent found any good examples that show how to do this. (For Windows)
I found this example in the test folder over and over ag
eforge.net/viewvc/e-doc/trunk/ossl/
>
> Regards,
> Stefan
>
> On 8/30/07, Martin Salo <[EMAIL PROTECTED]> wrote:
> >
> > Hello Mailinglist,
> >
> > I want to use RSA for encryption. So I need to know how to create a RSA
> > key pair and how to De- En
abc
--
Pt! Schon vom neuen GMX MultiMessenger gehört?
Der kanns mit allen: http://www.gmx.net/de/go/multimessenger
__
OpenSSL Project http://www.openssl.org
User Support Mailing List
Hello Mailinglist,
I have a RSA key written to memory. How can I free the memory?
oBIO = BIO_new(BIO_s_mem());
PEM_write_bio_RSAPrivateKey(oBIO, oRsaKey, 0, 0, 0, 0, 0);
char *cMem;
iBytesWritten = BIO_get_mem_data(oBIO, &cMem);
cMem[iBytesWritten] = '\0';
// How can I free cMem?
Reg
@Bill: Thanks, but I hope it is not necessary.
Can someone help me with this code? Why doese my program crash on executing
RSA_print_fp()? I'm using WindowsXP and Visual Studio 6.
I found some postings on this mailinglist with the advice to look into the FAQ.
But the only topic that matches my
Hello Mailinglist,
I want to use RSA for encryption. So I need to know how to create a RSA key
pair and how to De- Encrypt. Both must be done within the RAM. I want to use
the OpenSSL Api, but all I can find was this page:
http://www.openssl.org/docs/crypto/rsa.html#
1. Is somewhere explained i
12 matches
Mail list logo