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,
--
Mounir IDRASSI
IDRIX
http://www.idrix.fr
On 2/22/2010 12:14 PM, Gregory BELLIER wrote:
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 -> +8
I guess, that each time you add a new cipher, the SSL_ENC_MASK is +8.
I may guess wrong, please correct me so I can learn.
However, the SSL_ENC_MASK in 0.9.8f is 0x1C3F8000L because of the new
cipher which is SEED.
- I would have thought the new mask should have been 0x143F8000L since
SEED.
- In the case I misunderstand and that the current mask is the good
one, what should the next one be ? 0x253F8000L or 0x2C3F8000L ?
Regards,
Grégory BELLIER.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List openssl-dev@openssl.org
Automated List Manager majord...@openssl.org