The bit flag for a new algorithm would logically be 0x20000000 and the next 0x40000000. 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 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 guess it would be "0x2C3F8000L" because the new algorithm would be declared with 0x20000000. But I'm not sure and wondering if I miss something.




Mounir IDRASSI a écrit :
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 0x08000000 (bit number 27) and for SEED it's 0x10000000 (bit number 28).

Cheers,



______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

--
--
Mounir IDRASSI
IDRIX
http://www.idrix.fr

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to