RE: Error copiling ssl: undefined reference

2010-02-28 Thread Jeremy Farrell
It doesn't make any difference in this case, but you'd be best to get in the 
habit of putting the libraries last; for example
 
gcc cli.c -lssl -lcrypto
 
A few compilers only search libraries for references which they know about at 
the time the library is listed. If you were using that sort of compiler, you 
would still have your problem.




From: owner-openssl-us...@openssl.org 
[mailto:owner-openssl-us...@openssl.org] On Behalf Of xabi esteban
Sent: Sunday, February 28, 2010 11:27 AM
To: openssl-users@openssl.org
Subject: RE: Error copiling ssl: undefined reference


A lot of thanks, now roks perfectly.
The problem it was that i put the commnad line with -o and the correct 
form was:
gcc -lssl -lcrypto cli.c

Thanks.




> Date: Sat, 27 Feb 2010 11:33:31 -0800
> From: pie...@hogranch.com
> To: openssl-users@openssl.org
> Subject: Re: Error copiling ssl: undefined reference
> 
> xabi esteban wrote:
> > A lot of thanks but I'm vey confused and my english is not good. I 
> > compile with ggc -o and you said that this is not enought, i need 
> > linket too?
> > Put you put an example linking the libreres with gcc or example for 
a 
> > makefile? Thanks
> 
> at a minimum, try adding -lssl -lcrypto to that gcc command line. 
> this tells it to tell the linker phase to include libssl.so and 
> libcrypto.so
> 
> 
> __
> OpenSSL Project http://www.openssl.org
> User Support Mailing List openssl-users@openssl.org
> Automated List Manager majord...@openssl.org




¡Nuevo MSN Entretenimiento! Todos los trailers, series de tv y 
videoclips, los mejores juegos online y lo último sobre tus estrellas 
favoritas.   



Re: CFB change

2010-02-28 Thread Tim Hudson

Bruce Stephens wrote:

"Dr. Stephen Henson"  writes:

[...]

Didn't realise anyone was using CFB for that. 


Note - there is now a Debian bug logged too for encfs which appears to be 
impacted by this change.


See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=571810

I've forwarded your email (SteveH) noting that you are reverting that change.

Thanks,
Tim.
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   majord...@openssl.org


Re: Capi engine

2010-02-28 Thread Dr. Stephen Henson
On Sun, Feb 28, 2010, ?  wrote:

> Hello all !
> How can I specify OpenSSL to use capi engine by default ??? 
> (using openssl1.0.0beta5 library in my application)

There are no default algorithm implementations in the CryptoAPI ENGINE at
present: just private key operations. If you load a private key from the
CryptoAPI ENGINE the operations are transparently redirected.

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   majord...@openssl.org


Capi engine

2010-02-28 Thread Игорь Дмитриев
Hello all !
How can I specify OpenSSL to use capi engine by default ??? 
(using openssl1.0.0beta5 library in my application)
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   majord...@openssl.org


interoperability of C++ libcrypto and Java bouncy castle

2010-02-28 Thread ashuahen

I am using AES_CBC with padding (using PKCS#5 to pad) on C++ side:

AES_set_encrypt_key( keyBuf, 128, &key )
keyBuf contains key string
key is the key generated

Block Lenght is 16

AES_cbc_encrypt (ibuf, obuf, lenpad, &key, iv, AES_ENCRYPT)
ibuf = input data
obuf = encrypted data
lenpad = length of data (input data length + pad data length)
key = key generated by AES_set_encrypt_key
iv = initialization vector

On java side:
I am decrypting using following:
 
SecretKey aesKey = new SecretKeySpec(KeSo.getKey(keyBuffer), "AES");
keyBuffer: is same as KeyBuf @ C++ side

Cipher cipherDec = Cipher.getInstance("AES/CBC/PKCS5Padding", "BC");
cipherDec.init(Cipher.DECRYPT_MODE, aesKey, iv); 
cipherDec.doFinal(enc);
enc: data to be encrypted in byte.

Problem
===

I was using libcrypto.0.9.8a and every thing was working fine.
But as a part of upgrade on Sun SPARC licrypto0.9.8a is changed to
libcrypto.0.9.8k and things became worst. Encryption is not giving any
problem but during decryption with the same code I am getting
BadPaddingException.

Please help me out, this problem has made my life hell.

Thanks
Ashutosh
-- 
View this message in context: 
http://old.nabble.com/interoperability-of-C%2B%2B-libcrypto-and-Java-bouncy-castle-tp27735050p27735050.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.

__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   majord...@openssl.org


RE: Error copiling ssl: undefined reference

2010-02-28 Thread xabi esteban

A lot of thanks, now roks perfectly.The problem it was that i put the commnad 
line with -o and the correct form was:gcc -lssl -lcrypto cli.c
Thanks.



> Date: Sat, 27 Feb 2010 11:33:31 -0800
> From: pie...@hogranch.com
> To: openssl-users@openssl.org
> Subject: Re: Error copiling ssl: undefined reference
> 
> xabi esteban wrote:
> > A lot of thanks but I'm vey confused and my english is not good. I 
> > compile with ggc -o and you said that this is not enought, i need 
> > linket too?
> > Put you put an example linking the libreres with gcc or example for a 
> > makefile? Thanks
> 
> at a minimum, try adding -lssl -lcrypto   to that gcc command line.   
> this tells it to tell the linker phase to include libssl.so and 
> libcrypto.so
> 
> 
> __
> OpenSSL Project http://www.openssl.org
> User Support Mailing Listopenssl-users@openssl.org
> Automated List Manager   majord...@openssl.org
  
_
¿Aún sin la última versión de Internet Explorer 8? ¡Actualízate gratis!
http://www.vivelive.com/internetexplorer8