From: cajus Date: Thu, 6 Dec 2007 12:40:17 +0000 (+0000) Subject: Switched to 128 bit for perl compatibilty X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=354c7a5a5bc62a8e0f7f053fe38680f0020925c9;p=gosa.git Switched to 128 bit for perl compatibilty git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8043 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/contrib/socket_server/server.php b/contrib/socket_server/server.php index 8f6473ec5..8bf4265f1 100755 --- a/contrib/socket_server/server.php +++ b/contrib/socket_server/server.php @@ -36,11 +36,12 @@ echo "\nServer startet on port : $bind_port\n"; /* Open the cipher */ -$td = mcrypt_module_open('rijndael-256', '', 'cbc', ''); +$td = mcrypt_module_open('rijndael-128', '', 'cbc', ''); /* Create the IV and determine the keysize length */ $iv = substr(md5('GONICUS GmbH'),0, mcrypt_enc_get_iv_size($td)); $ks = mcrypt_enc_get_key_size($td); +echo "IV-Size: ".mcrypt_enc_get_iv_size($td)."\n"; /* Create key */ $key = substr(md5('ferdinand_frost'), 0, $ks); diff --git a/include/class_socketClient.inc b/include/class_socketClient.inc index ec8ff5a7a..2df0b4328 100755 --- a/include/class_socketClient.inc +++ b/include/class_socketClient.inc @@ -79,7 +79,7 @@ class Socket_Client $this->b_data_send = TRUE; /* Open the cipher */ - $this->td = mcrypt_module_open('rijndael-256', '', 'cbc', ''); + $this->td = mcrypt_module_open('rijndael-128', '', 'cbc', ''); /* Create the IV and determine the keysize length */ $this->iv = substr(md5('GONICUS GmbH'),0, mcrypt_enc_get_iv_size($this->td));