[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Source view] [Print] [Project Stats]
Pure-PHP implementation of DES. Uses mcrypt, if available, and an internal implementation, otherwise.
Author: | Jim Wigginton <[email protected]> |
Copyright: | 2007 Jim Wigginton |
License: | http://www.opensource.org/licenses/mit-license.html MIT License |
File Size: | 1411 lines (69 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
DES:: (8 methods):
__construct()
isValidEngineHelper()
setKey()
encryptBlock()
decryptBlock()
processBlock()
setupKey()
setupInlineCrypt()
__construct($mode) X-Ref |
Default Constructor. param: string $mode |
isValidEngineHelper($engine) X-Ref |
Test for engine validity This is mainly just a wrapper to set things up for \phpseclib3\Crypt\Common\SymmetricKey::isValidEngine() param: int $engine return: bool |
setKey($key) X-Ref |
Sets the key. Keys must be 64-bits long or 8 bytes long. DES also requires that every eighth bit be a parity bit, however, we'll ignore that. param: string $key |
encryptBlock($in) X-Ref |
Encrypts a block param: string $in return: string |
decryptBlock($in) X-Ref |
Decrypts a block param: string $in return: string |
processBlock($block, $mode) X-Ref |
Encrypts or decrypts a 64-bit block $mode should be either self::ENCRYPT or self::DECRYPT. See {@link http://en.wikipedia.org/wiki/Image:Feistel.png Feistel.png} to get a general idea of what this function does. param: string $block param: int $mode return: string |
setupKey() X-Ref |
Creates the key schedule |
setupInlineCrypt() X-Ref |
Setup the performance-optimized function for de/encrypt() |
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |