1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-15 02:17:04 +01:00

Merge branch '3.0'

This commit is contained in:
terrafrost 2020-05-12 08:32:46 -05:00
commit dcd6b7cbbd
3 changed files with 10 additions and 21 deletions

View File

@ -24,4 +24,14 @@ namespace phpseclib3\Crypt\Common;
*/ */
abstract class StreamCipher extends SymmetricKey abstract class StreamCipher extends SymmetricKey
{ {
/**
* Stream ciphers not use an IV
*
* @access public
* @return bool
*/
public function usesIV()
{
return false;
}
} }

View File

@ -161,17 +161,6 @@ class RC4 extends StreamCipher
return parent::isValidEngineHelper($engine); return parent::isValidEngineHelper($engine);
} }
/**
* RC4 does not use an IV
*
* @access public
* @return bool
*/
public function usesIV()
{
return false;
}
/** /**
* Sets the key length * Sets the key length
* *

View File

@ -107,16 +107,6 @@ class Salsa20 extends StreamCipher
parent::__construct('stream'); parent::__construct('stream');
} }
/**
* Salsa20 does not use an IV
*
* @return bool
*/
public function usesIV()
{
return false;
}
/** /**
* Salsa20 uses a nonce * Salsa20 uses a nonce
* *