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

Public Member Functions

 __construct ($iv, $key)
 
 decrypt ($seqno, $data)
 
 encrypt ($seqno, $data)
 

Static Public Member Functions

static getBlockSize ()
 
static getIVSize ()
 
static getKeySize ()
 
static getName ()
 Return the name of the algorithm.
 

Detailed Description

Null cipher (OPTIONAL and NOT RECOMMENDED in RFC 4253).

Definition at line 17 of file None.php.

Constructor & Destructor Documentation

fpoirotte\Pssht\Encryption\None::__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 19 of file None.php.

Member Function Documentation

fpoirotte\Pssht\Encryption\None::decrypt (   $seqno,
  $data 
)

Decrypt data using the algorithm.

Parameters
int$seqnoSequence number.
string$dataData to decrypt.
Return values
stringDecrypted data.

Implements fpoirotte\Pssht\Encryption\EncryptionInterface.

Definition at line 48 of file None.php.

fpoirotte\Pssht\Encryption\None::encrypt (   $seqno,
  $data 
)

Encrypt data using the algorithm.

Parameters
int$seqnoSequence number.
string$dataData to encrypt.
Return values
stringEncrypted data.

Implements fpoirotte\Pssht\Encryption\EncryptionInterface.

Definition at line 43 of file None.php.

static fpoirotte\Pssht\Encryption\None::getBlockSize ( )
static

Get the algorithm's block size.

Return values
intBlock size (in bytes).

Implements fpoirotte\Pssht\Encryption\EncryptionInterface.

Definition at line 38 of file None.php.

static fpoirotte\Pssht\Encryption\None::getIVSize ( )
static

Get the algorithm's IV size.

Return values
intInitialization vector size (in bytes).

Implements fpoirotte\Pssht\Encryption\EncryptionInterface.

Definition at line 33 of file None.php.

static fpoirotte\Pssht\Encryption\None::getKeySize ( )
static

Get the algorithm's key size.

Return values
intKey size (in bytes).

Implements fpoirotte\Pssht\Encryption\EncryptionInterface.

Definition at line 28 of file None.php.


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