Re: is any documentation for programmers?

2006-04-21 Thread Heikki Toivonen
Kyle Hamilton wrote: > avoid ECB mode. Schneier's _Applied Cryptography_ goes into why, but > basically it has to do with the fact that once someone knows the > plaintext of a given block, that block will always be transparent to > them. A great demonstration with images at http://en.wikipedia.or

Re: is any documentation for programmers?

2006-04-21 Thread Kyle Hamilton
avoid ECB mode. Schneier's _Applied Cryptography_ goes into why, but basically it has to do with the fact that once someone knows the plaintext of a given block, that block will always be transparent to them. -Kyle H On 4/21/06, cy pher <[EMAIL PROTECTED]> wrote: > Until i buy one of the books i

Re: is any documentation for programmers?

2006-04-21 Thread cy pher
Thanks for the answers, you helped me lot! Thank you. CyPher On Fri, 21 Apr 2006 21:06:04 +0200, "Marek Marcola" <[EMAIL PROTECTED]> said: > Hello, > > > i want to encrypt and decrypt strings, now i'm using the ecb > encryption > > of openssl/aes.h > > and it looks the encrypted block length dep

Re: is any documentation for programmers?

2006-04-21 Thread Marek Marcola
Hello, > i want to encrypt and decrypt strings, now i'm using the ecb encryption > of openssl/aes.h > and it looks the encrypted block length depends on the key, or the > encrypted msg has an \0 in. In AES encryption/decryption block size is always 16 bytes and not depends on key size. Key size fo

Re: is any documentation for programmers?

2006-04-21 Thread Christopher Fowler
This may or may not be a useful example: static int rn_crypto_bulk(char *buffer, char *out, BF_KEY *key, int cmd, size_t len) { int c = 0; // Temp counter char tmp[8] = { 0 };// Temp buffer char *ptr = out;// Pointer to out buffer while(c < len) { // Perfomr th

Re: is any documentation for programmers?

2006-04-21 Thread cy pher
Until i buy one of the books i have a question, which may be very easy to you, but, now i really need the ansver: i want to encrypt and decrypt strings, now i'm using the ecb encryption of openssl/aes.h and it looks the encrypted block length depends on the key, or the encrypted msg has an \0 in.

Re: is any documentation for programmers?

2006-04-21 Thread Alexis Lefort
Hi, There is another book from O'Reilly: "Network Security with OpenSSL", from John Viega, Matt Messier and Pravir Chandra. Hope it will help ;) Marek Marcola a écrit : Hello, I'm newbie at using openssl libs, and i need a documantation where i can read about the function of lib

Re: is any documentation for programmers?

2006-04-21 Thread Marek Marcola
Hello, > I'm newbie at using openssl libs, and i need a documantation where i can > read about the function of libssl, > for example: i want to use aes for message encrypting, and i have to > know things like what length of key can i use.. > I tried some keys and i found that the key length must be

is any documentation for programmers?

2006-04-21 Thread cy pher
Hi! I'm newbie at using openssl libs, and i need a documantation where i can read about the function of libssl, for example: i want to use aes for message encrypting, and i have to know things like what length of key can i use.. I tried some keys and i found that the key length must be 16 or 32byt