Re: AES128 CBC

2010-07-20 Thread Rudy1
note - I didn't use the ex function; I used the older version. It should give you a slightly easier place to start from. Anthony - Original Message - From: Rudy1 r...@compumatica.eu To: openssl-users@openssl.org Sent: Thursday, July 15, 2010 5:37:38 AM Subject: AES128 CBC

Re: AES128 CBC

2010-07-16 Thread Rudy1
AM Subject: AES128 CBC I'm using the openssl crypto lib first time and I don't know how to encrypt text larger than blocksize (16 byte) . For example I want to encrypt a string of size 292 bytes. I call EVP_EncryptUpdate () one time and 288 bytes will be encrypted and finally I call

Re: AES128 CBC

2010-07-16 Thread Anthony Gabrielson
...@compumatica.eu To: openssl-users@openssl.org Sent: Thursday, July 15, 2010 5:37:38 AM Subject: AES128 CBC I'm using the openssl crypto lib first time and I don't know how to encrypt text larger than blocksize (16 byte) . For example I want to encrypt a string of size 292 bytes. I call

Re: AES128 CBC

2010-07-16 Thread Michael S. Zick
On Thu July 15 2010, Anthony Gabrielson wrote: On Jul 15, 2010, at 6:18 PM, Michael S. Zick wrote: Interesting blog. One quick question on the first linked-to source at the top: quote memset(plaintext,0,sizeof(plaintext)); in_len = strlen(ciphertext); end-quote How

AES128 CBC

2010-07-15 Thread Rudy1
encrypt the whole string correctly? Or do I have to call EVP_EncryptUpdate () for every blocksize chunk of my string? How large is the encrypted string? I would expect 304 bytes (288 + 16). Is this correct? Rudy1 -- View this message in context: http://old.nabble.com/AES128-CBC

Re: AES128 CBC

2010-07-15 Thread Anthony Gabrielson
@openssl.org Sent: Thursday, July 15, 2010 5:37:38 AM Subject: AES128 CBC I'm using the openssl crypto lib first time and I don't know how to encrypt text larger than blocksize (16 byte) . For example I want to encrypt a string of size 292 bytes. I call EVP_EncryptUpdate () one time and 288 bytes

Re: AES128 CBC

2010-07-15 Thread Michael S. Zick
-users@openssl.org Sent: Thursday, July 15, 2010 5:37:38 AM Subject: AES128 CBC I'm using the openssl crypto lib first time and I don't know how to encrypt text larger than blocksize (16 byte) . For example I want to encrypt a string of size 292 bytes. I call EVP_EncryptUpdate () one time

Re: AES128 CBC

2010-07-15 Thread Anthony Gabrielson
On Jul 15, 2010, at 6:18 PM, Michael S. Zick wrote: Interesting blog. One quick question on the first linked-to source at the top: quote memset(plaintext,0,sizeof(plaintext)); in_len = strlen(ciphertext); end-quote How did you get strlen to ignore any embedded zeros in the