Design question
| From: | Derick Rethans | Date: | Mon, 31 Jul 2000 19:58:39 +0000 |
| Subject: | Design question | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-27108@lists.php.net to get a copy of this message | ||
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@jdimedia.nl
http://www.jdimedia.nl/