pssht  latest
SSH server library written in PHP
fpoirotte\Pssht\Encryption\BaseInterface Interface Reference
+ Inheritance diagram for fpoirotte\Pssht\Encryption\BaseInterface:

Static Public Member Functions

static getAlgorithm ()
 
static getMode ()
 

Detailed Description

Base interface for encryption/decryption ciphers.

Definition at line 17 of file BaseInterface.php.

Member Function Documentation

static fpoirotte\Pssht\Encryption\BaseInterface::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.

Implemented in fpoirotte\Pssht\Encryption\Base, fpoirotte\Pssht\Encryption\Stream\Arcfour256, fpoirotte\Pssht\Encryption\CBC\AES256, fpoirotte\Pssht\Encryption\CBC\CAST128, fpoirotte\Pssht\Encryption\CBC\Serpent256, and fpoirotte\Pssht\Encryption\CBC\Twofish256.

static fpoirotte\Pssht\Encryption\BaseInterface::getMode ( )
static

Get the encryption/decryption mode.

Return values
stringName of the cipher encryption/decryption mode to use.
Warning
The return value of this method is the name of the cipher mode, ie. the value of one of the "MCRYPT_MODE_*" constants.

Implemented in fpoirotte\Pssht\Encryption\Base, and fpoirotte\Pssht\Encryption\OpensshCom\Rijndael.


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