SSL_ENC_MASK since SEED

2010-02-22 Thread Gregory BELLIER
Hello. I'm studying some parts of the OpenSSL code and I now have a question. In ssl/ssl_locl.h, I'm wandering if the #define SSL_ENC_MASK is right. Before the Camellia was added (0.9.8b), we had : #define SSL_ENC_MASK 0x0*4*3F8000L In 0.9.8c: #define SSL_ENC_MASK 0x0*C*3F8000L From 4 to C -

Re: SSL_ENC_MASK since SEED

2010-02-22 Thread Mounir IDRASSI
Hi, SSL_ENC_MASK is a bit mask. Each time a new algorithm is added, a new bit est positioned. If you look in the file ssl_locl.h just under the define of SSL_ENC_MASK, you'll find the definitions of the bits associated with each algorithm. For example, for Camellia it's 0x0800 (bit number

Re: SSL_ENC_MASK since SEED

2010-02-22 Thread Gregory BELLIER
Thanks Mounir but you didn't exactly answer my question. I noticed Camellia and SEED. My question was about how to define the mask according to a new cipher. That's why I've already taken a look at the last 2 entries. However, if a new algorithm makes it in OpenSSL, what would the mask be ? I

Re: SSL_ENC_MASK since SEED

2010-02-22 Thread Mounir IDRASSI
The bit flag for a new algorithm would logically be 0x2000 and the next 0x4000. Thus, the value of the mask would be 0x3C3F8000L and 0x7C3F8000L respectively. -- Mounir IDRASSI IDRIX http://www.idrix.fr On 2/22/2010 2:29 PM, Gregory BELLIER wrote: Thanks Mounir but you didn't

Re: SSL_ENC_MASK since SEED

2010-02-22 Thread Gregory BELLIER
understood. Thanks. Mounir IDRASSI a écrit : The bit flag for a new algorithm would logically be 0x2000 and the next 0x4000. Thus, the value of the mask would be 0x3C3F8000L and 0x7C3F8000L respectively. __