RE: last parameter of AES_ofb128_encrypt

2013-01-10 Thread Dave Thompson
From: owner-openssl-us...@openssl.org On Behalf Of jeetendra gangele Sent: Wednesday, 09 January, 2013 01:28 when I use AES_ofb128_encrypt for decrpyting 2 bytes of data. Actually I have 18 bytes of data so 16 bytes I am decryting with CBC and 2 bytes with OFB mode. For this 2 bytes I am

Re: last parameter of AES_ofb128_encrypt

2013-01-08 Thread jeetendra gangele
when I use AES_ofb128_encrypt for decrpyting 2 bytes of data. Actually I have 18 bytes of data so 16 bytes I am decryting with CBC and 2 bytes with OFB mode. For this 2 bytes I am using IV as 16 bytes of decrypted data(means plaintext),but this 2 bytes data is not maching. what will be the key

Re: last parameter of AES_ofb128_encrypt

2013-01-08 Thread jeetendra gangele
when I use AES_ofb128_encrypt for decrpyting 2 bytes of data. Actually I have 18 bytes of data so 16 bytes I am decryting with CBC and 2 bytes with OFB mode. For this 2 bytes I am using IV as 16 bytes of decrypted data(means plaintext),but this 2 bytes data is not maching. what will be the key

Re: last parameter of AES_ofb128_encrypt

2013-01-07 Thread Ken Goldman
I don't think it's documented. I pass in 0 and it works. My notes also say that ivec is altered, so make a copy if you have to preserve the original value. On 1/7/2013 10:26 AM, jeetendra gangele wrote: Hi All, If I use the below function void AES_ofb128_encrypt(const unsigned char *in,

Re: last parameter of AES_ofb128_encrypt

2013-01-07 Thread jeetendra gangele
0 for encryption or decryption? On 7 January 2013 21:19, Ken Goldman kgold...@us.ibm.com wrote: I don't think it's documented. I pass in 0 and it works. My notes also say that ivec is altered, so make a copy if you have to preserve the original value. On 1/7/2013 10:26 AM, jeetendra

Re: last parameter of AES_ofb128_encrypt

2013-01-07 Thread Ken Goldman
Am I missing something, or is this a trick question? For OFB, aren't they the same On 1/7/2013 10:55 AM, jeetendra gangele wrote: 0 for encryption or decryption? __ OpenSSL Project

RE: last parameter of AES_ofb128_encrypt

2013-01-07 Thread Dave Thompson
From: owner-openssl-us...@openssl.org On Behalf Of jeetendra gangele Sent: Monday, 07 January, 2013 10:26 void AES_ofb128_encrypt(const unsigned char *in, unsigned char *out, size_t length, const AES_KEY *key, unsigned char *ivec, int *num) What will be the value for num

Re: last parameter of AES_ofb128_encrypt

2013-01-07 Thread Ken Goldman
On 1/7/2013 4:43 PM, Dave Thompson wrote: (There's an official word for this I can't remember at the moment -- self-inverse maybe?) XOR ? :-) __ OpenSSL Project http://www.openssl.org User