[PHP-DEV] Design question From: Derick Rethans (d.rethans <email protected>)
Date: 07/31/00

Hi folks,

working on the rewrite of the mcrypt module I stumbled acros the
following problem:
The key size must exactly match the key size needed by the module (or
else mcrypt will crash).
So when a user tries a key size of 5 and a key size of 8 is needed there
are two possibilities:
1) return an error that the key size is too small or
2) pad the key with the 0 byte.

This also is a problem with the IV.

Your thoughts please?

--
Derick Rethans
JDI Media Solutions

H.v.Tussenbroekstraat 1 6952 BL Dieren The Netherlands

e-mail: d.rethans <email protected> http://www.jdimedia.nl/

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>