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

Public Member Functions

 __construct ($iv, $key)
 
- Public Member Functions inherited from fpoirotte\Pssht\Encryption\Base
 __construct ($iv, $key)
 
 decrypt ($seqno, $data)
 
 encrypt ($seqno, $data)
 

Static Public Member Functions

static getAlgorithm ()
 
static getKeySize ()
 
static getName ()
 Return the name of the algorithm.
 
- 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

- Protected Attributes inherited from fpoirotte\Pssht\Encryption\Base
 $mcrypt
 mcrypt handle for the cipher.
 

Detailed Description

Arcfour cipher in stream mode with a 256-bit key and 1536 discarded bytes (defined in RFC 4345).

Definition at line 18 of file Arcfour256.php.

Constructor & Destructor Documentation

fpoirotte\Pssht\Encryption\Stream\Arcfour256::__construct (   $iv,
  $key 
)

Construct an encryption/decryption algorithm.

Parameters
string$ivInitialization vector for the algorithm.
string$keyEncryption/decrytion key.

Implements fpoirotte\Pssht\Encryption\EncryptionInterface.

Definition at line 20 of file Arcfour256.php.

References fpoirotte\Pssht\Encryption\Base\encrypt().

Member Function Documentation

static fpoirotte\Pssht\Encryption\Stream\Arcfour256::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 27 of file Arcfour256.php.

static fpoirotte\Pssht\Encryption\Stream\Arcfour256::getKeySize ( )
static

Get the algorithm's key size.

Return values
intKey size (in bytes).

Implements fpoirotte\Pssht\Encryption\EncryptionInterface.

Definition at line 37 of file Arcfour256.php.


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