[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/phpseclib/phpseclib/phpseclib/Crypt/ -> Twofish.php (summary)

Pure-PHP implementation of Twofish. Uses mcrypt, if available, and an internal implementation, otherwise.

Author: Jim Wigginton <[email protected]>
Author: Hans-Juergen Petrich <[email protected]>
Copyright: 2007 Jim Wigginton
License: http://www.opensource.org/licenses/mit-license.html MIT License
File Size: 826 lines (37 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Twofish:: (8 methods):
  __construct()
  setKeyLength()
  setKey()
  setupKey()
  mdsrem()
  encryptBlock()
  decryptBlock()
  setupInlineCrypt()


Class: Twofish  - X-Ref

Pure-PHP implementation of Twofish.

__construct($mode)   X-Ref
Default Constructor.

param: string $mode

setKeyLength($length)   X-Ref
Sets the key length.

Valid key lengths are 128, 192 or 256 bits

param: int $length

setKey($key)   X-Ref
Sets the key.

Rijndael supports five different key lengths

param: string $key

setupKey()   X-Ref
Setup the key (expansion)


mdsrem($A, $B)   X-Ref
_mdsrem function using by the twofish cipher algorithm

param: string $A
param: string $B
return: array

encryptBlock($in)   X-Ref
Encrypts a block

param: string $in
return: string

decryptBlock($in)   X-Ref
Decrypts a block

param: string $in
return: string

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