> Thank!
> but how can I use EVP_get_cipherbyname(const char *name);?
>
> ciphers[0].cipher = EVP_get_cipherbyname("BLABLABLABLA");
> perror("EVP_get_cipherbyname()");
>
> ./evp
> EVP_get_cipherbyname(): Success
>
> And always: success :-) but doesn't work.
Why are you calling 'perror'?
On Wed, Mar 29, 2006, Nagy Zoltn Mrk wrote:
> ohh sorry...
> in the last example:
> but, if i use:
> {
> const EVP_CIPHER *c;
> c = EVP_get_cipherbyname("aes-128-cbc");
> EVP_EncryptInit(&ctx, c, key, NULL);
> }
> doesn't work
> (segmentation fault)
>
Check to see if "c" is NULL before using it.
ohh sorry...
in the last example:
but, if i use:
{
const EVP_CIPHER *c;
c = EVP_get_cipherbyname("aes-128-cbc");
EVP_EncryptInit(&ctx, c, key, NULL);
}
doesn't work
(segmentation fault)
mark
> hi!
>
> if i use:
> {
> EVP_EncryptInit(&ctx, EVP_aes_128_cbc(), key, NULL);
> }
> is work
>
> if i use:
hi!
if i use:
{
EVP_EncryptInit(&ctx, EVP_aes_128_cbc(), key, NULL);
}
is work
if i use:
{
const EVP_CIPHER *c;
c = EVP_aes_128_cbc();
EVP_EncryptInit(&ctx, c, key, NULL);
}
is work
but, if i use:
{
const EVP_CIPHER *c;
c = EVP_get_cipherbyname("aes-128-cbc");
EVP_EncryptInit(&ctx, EVP_aes_128_c
Thank!
but how can I use EVP_get_cipherbyname(const char *name);?
ciphers[0].cipher = EVP_get_cipherbyname("BLABLABLABLA");
perror("EVP_get_cipherbyname()");
./evp
EVP_get_cipherbyname(): Success
And always: success :-) but doesn't work.
King regards,
mark
> That wont work in many cases beca
On Wed, Mar 29, 2006, Nagy Zoltn Mrk wrote:
> Dear all
>
> I would like to create a data structure in C.
> Below you can see what I have created, but it doesn't work correctly.
> My question is: why doesn't initialised EVP_aes_128_cbc() into cipher?
>
> #define ORANGE 0xffa500
>
> struct cipher
t;
Sent by: [EMAIL PROTECTED]
03/29/2006 10:16 AM
Please respond to
openssl-users@openssl.org
To
openssl-users@openssl.org
cc
Subject
struct problem
Dear all
I would like to create a data structure in C.
Below you can see what I have created, but it doesn't work correctly
PROTECTED]
"Nagy
Zoltán Márk" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
03/29/2006 10:16 AM
Please respond to
openssl-users@openssl.org
To
openssl-users@openssl.org
cc
Subject
struct problem
Dear all
I would like to create a data structure in C.
B
Dear all
I would like to create a data structure in C.
Below you can see what I have created, but it doesn't work correctly.
My question is: why doesn't initialised EVP_aes_128_cbc() into cipher?
#define ORANGE 0xffa500
struct ciphers_name
{
unsigned char *name;
unsigned char *description;