note 62006 added to ref.mcrypt

From: Date: Fri, 17 Feb 2006 06:23:16 +0000
Subject: note 62006 added to ref.mcrypt
Groups: php.notes 
Request: Send a blank email to php-notes+get-103882@lists.php.net to get a copy of this message
After benchmarking AES in 256-bit operation, I've concluded that CBC is far faster than OFB. Using a 14.9 MiB file, on average... Encrypt in CBC: 1.9 seconds Encrypt in OFB: 45.7 seconds (same as CFB) Just reading the file: ~.53 seconds After some research, I've concluded that OFB and CFB are slightly more secure than CBC, however I believe the performance difference to be due to an implementation issue. As a side note on ECB: As stated in the wiki linked to below, ECB is wholly inadequate. It not use an IV (whether it was supplied ot MCrypt or not), meaning the same key and plaintext always produce the same ciphertext and it doesn't hide patterns. The site shows an excellent example of this. Very useful info: http://en.wikipedia.org/wiki/Block_cipher_mode_of_operation ---- Server IP: 216.194.113.175 Probable Submitter: 129.93.191.177 ---- Manual Page -- http://www.php.net/manual/en/ref.mcrypt.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+62006 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+62006&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+62006&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+62006&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+62006&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+62006&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+62006&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+62006&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+62006&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#103882) next »