pssht  latest
SSH server library written in PHP
fpoirotte\Pssht\Encryption\CBC\CAST128 Class Reference
+ Inheritance diagram for fpoirotte\Pssht\Encryption\CBC\CAST128:

Static Public Member Functions

static getAlgorithm ()
 
static getKeySize ()
 
- Static Public Member Functions inherited from fpoirotte\Pssht\Encryption\Base
static getAlgorithm ()
 
static getBlockSize ()
 
static getIVSize ()
 
static getMode ()
 
static getName ()
 Return the name of the algorithm.
 
static isAvailable ()
 

Additional Inherited Members

- Public Member Functions inherited from fpoirotte\Pssht\Encryption\Base
 __construct ($iv, $key)
 
 decrypt ($seqno, $data)
 
 encrypt ($seqno, $data)
 
- Protected Attributes inherited from fpoirotte\Pssht\Encryption\Base
 $mcrypt
 mcrypt handle for the cipher.
 

Detailed Description

CAST-128 cipher in CBC mode (OPTIONAL in RFC 4253).

Definition at line 18 of file CAST128.php.

Member Function Documentation

static fpoirotte\Pssht\Encryption\CBC\CAST128::getAlgorithm ( )
static

Get the name of the algorithm to use.

Return values
stringName of the mcrypt constant representing the algorithm to use for encryption/decryption.
Warning
The return value of this method is the name of the constant for the algorithm to use (eg. "MCRYPT_TRIPLEDES"), not its value.

Implements fpoirotte\Pssht\Encryption\BaseInterface.

Definition at line 20 of file CAST128.php.

static fpoirotte\Pssht\Encryption\CBC\CAST128::getKeySize ( )
static

Get the algorithm's key size.

Return values
intKey size (in bytes).

Implements fpoirotte\Pssht\Encryption\EncryptionInterface.

Definition at line 25 of file CAST128.php.


The documentation for this class was generated from the following file: