3 * A packing mode implementation for no padding
5 * This is provided for completeness only. Do not use this with actual ciphers
9 * @category PHPCryptLib
11 * @subpackage PackingMode
12 * @author Anthony Ferrara <ircmaxell@ircmaxell.com>
13 * @copyright 2011 The Authors
14 * @license http://www.opensource.org/licenses/mit-license.html MIT License
15 * @version Build @@version@@
18 namespace CryptLib\Encryption\PackingMode
;
21 * A packing mode implementation for no padding
23 * This is provided for completeness only. Do not use this with actual ciphers
25 * @category PHPCryptLib
27 * @subpackage PackingMode
28 * @author Anthony Ferrara <ircmaxell@ircmaxell.com>
30 class None
implements \CryptLib\Encryption\PackingMode
{
33 * Pad the string to the specified size
35 * @param string $string The string to pad
36 * @param int $blockSize The size to pad to
38 * @return string The padded string
40 public function pad($string, $blockSize = 32) {
45 * Strip the padding from the supplied string
47 * @param string $string The string to trim
49 * @return string The unpadded string
51 public function strip($string) {