Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge 6de2173 into ce70ebb
Browse files Browse the repository at this point in the history
  • Loading branch information
tdutrion committed Oct 12, 2016
2 parents ce70ebb + 6de2173 commit f87676e
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 42 deletions.
18 changes: 9 additions & 9 deletions src/BlockCipher.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public static function setSymmetricPluginManager($plugins)
* Set the symmetric cipher
*
* @param SymmetricInterface $cipher
* @return BlockCipher
* @return $this Provides a fluent interface
*/
public function setCipher(SymmetricInterface $cipher)
{
Expand All @@ -175,7 +175,7 @@ public function getCipher()
* Set the number of iterations for Pbkdf2
*
* @param int $num
* @return BlockCipher
* @return $this Provides a fluent interface
*/
public function setKeyIteration($num)
{
Expand All @@ -198,7 +198,7 @@ public function getKeyIteration()
* Set the salt (IV)
*
* @param string $salt
* @return BlockCipher
* @return $this Provides a fluent interface
* @throws Exception\InvalidArgumentException
*/
public function setSalt($salt)
Expand Down Expand Up @@ -237,7 +237,7 @@ public function getOriginalSalt()
* Enable/disable the binary output
*
* @param bool $value
* @return BlockCipher
* @return $this Provides a fluent interface
*/
public function setBinaryOutput($value)
{
Expand All @@ -259,8 +259,8 @@ public function getBinaryOutput()
/**
* Set the encryption/decryption key
*
* @param string $key
* @return BlockCipher
* @param string $key
* @return $this Provides a fluent interface
* @throws Exception\InvalidArgumentException
*/
public function setKey($key)
Expand All @@ -287,7 +287,7 @@ public function getKey()
* Set algorithm of the symmetric cipher
*
* @param string $algo
* @return BlockCipher
* @return $this Provides a fluent interface
* @throws Exception\InvalidArgumentException
*/
public function setCipherAlgorithm($algo)
Expand Down Expand Up @@ -336,7 +336,7 @@ public function getCipherSupportedAlgorithms()
* Set the hash algorithm for HMAC authentication
*
* @param string $hash
* @return BlockCipher
* @return $this Provides a fluent interface
* @throws Exception\InvalidArgumentException
*/
public function setHashAlgorithm($hash)
Expand Down Expand Up @@ -365,7 +365,7 @@ public function getHashAlgorithm()
* Set the hash algorithm for the Pbkdf2
*
* @param string $hash
* @return BlockCipher
* @return $this Provides a fluent interface
* @throws Exception\InvalidArgumentException
*/
public function setPbkdf2HashAlgorithm($hash)
Expand Down
6 changes: 3 additions & 3 deletions src/Password/Apache.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public function verify($password, $hash)
*
* @param string $format
* @throws Exception\InvalidArgumentException
* @return Apache
* @return $this Provides a fluent interface
*/
public function setFormat($format)
{
Expand Down Expand Up @@ -192,7 +192,7 @@ public function getFormat()
* Set the AuthName (for digest authentication)
*
* @param string $name
* @return Apache
* @return $this Provides a fluent interface
*/
public function setAuthName($name)
{
Expand All @@ -215,7 +215,7 @@ public function getAuthName()
* Set the username
*
* @param string $name
* @return Apache
* @return $this Provides a fluent interface
*/
public function setUserName($name)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Password/Bcrypt.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function verify($password, $hash)
*
* @param int|string $cost
* @throws Exception\InvalidArgumentException
* @return Bcrypt
* @return $this Provides a fluent interface
*/
public function setCost($cost)
{
Expand Down Expand Up @@ -124,7 +124,7 @@ public function getCost()
*
* @param string $salt
* @throws Exception\InvalidArgumentException
* @return Bcrypt
* @return $this Provides a fluent interface
*/
public function setSalt($salt)
{
Expand Down
10 changes: 5 additions & 5 deletions src/PublicKey/DiffieHellman.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public static function useOpensslExtension($flag = true)
* Generate own public key. If a private number has not already been set,
* one will be generated at this stage.
*
* @return DiffieHellman
* @return $this Provides a fluent interface
* @throws \Zend\Crypt\Exception\RuntimeException
*/
public function generateKeys()
Expand Down Expand Up @@ -174,7 +174,7 @@ public function generateKeys()
*
* @param string $number
* @param string $format
* @return DiffieHellman
* @return $this Provides a fluent interface
* @throws \Zend\Crypt\Exception\InvalidArgumentException
*/
public function setPublicKey($number, $format = self::FORMAT_NUMBER)
Expand Down Expand Up @@ -273,7 +273,7 @@ public function getSharedSecretKey($format = self::FORMAT_NUMBER)
* Setter for the value of the prime number
*
* @param string $number
* @return DiffieHellman
* @return $this Provides a fluent interface
* @throws \Zend\Crypt\Exception\InvalidArgumentException
*/
public function setPrime($number)
Expand Down Expand Up @@ -309,7 +309,7 @@ public function getPrime($format = self::FORMAT_NUMBER)
* Setter for the value of the generator number
*
* @param string $number
* @return DiffieHellman
* @return $this Provides a fluent interface
* @throws \Zend\Crypt\Exception\InvalidArgumentException
*/
public function setGenerator($number)
Expand Down Expand Up @@ -345,7 +345,7 @@ public function getGenerator($format = self::FORMAT_NUMBER)
*
* @param string $number
* @param string $format
* @return DiffieHellman
* @return $this Provides a fluent interface
* @throws \Zend\Crypt\Exception\InvalidArgumentException
*/
public function setPrivateKey($number, $format = self::FORMAT_NUMBER)
Expand Down
4 changes: 2 additions & 2 deletions src/PublicKey/Rsa.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function __construct(RsaOptions $options = null)
* Set options
*
* @param RsaOptions $options
* @return Rsa
* @return $this Provides a fluent interface
*/
public function setOptions(RsaOptions $options)
{
Expand Down Expand Up @@ -332,7 +332,7 @@ public function decrypt(
* @see RsaOptions::generateKeys()
*
* @param array $opensslConfig
* @return Rsa
* @return $this Provides a fluent interface
* @throws Rsa\Exception\RuntimeException
*/
public function generateKeys(array $opensslConfig = [])
Expand Down
14 changes: 7 additions & 7 deletions src/PublicKey/RsaOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class RsaOptions extends AbstractOptions
* Set private key
*
* @param Rsa\PrivateKey $key
* @return RsaOptions
* @return $this Provides a fluent interface
*/
public function setPrivateKey(Rsa\PrivateKey $key)
{
Expand All @@ -85,7 +85,7 @@ public function getPrivateKey()
* Set public key
*
* @param Rsa\PublicKey $key
* @return RsaOptions
* @return $this Provides a fluent interface
*/
public function setPublicKey(Rsa\PublicKey $key)
{
Expand All @@ -107,7 +107,7 @@ public function getPublicKey()
* Set pass phrase
*
* @param string $phrase
* @return RsaOptions
* @return $this Provides a fluent interface
*/
public function setPassPhrase($phrase)
{
Expand All @@ -129,7 +129,7 @@ public function getPassPhrase()
* Set hash algorithm
*
* @param string $hash
* @return RsaOptions
* @return $this Provides a fluent interface
* @throws Rsa\Exception\RuntimeException
* @throws Rsa\Exception\InvalidArgumentException
*/
Expand Down Expand Up @@ -169,7 +169,7 @@ public function getOpensslSignatureAlgorithm()
* Enable/disable the binary output
*
* @param bool $value
* @return RsaOptions
* @return $this Provides a fluent interface
*/
public function setBinaryOutput($value)
{
Expand Down Expand Up @@ -201,7 +201,7 @@ public function getOpensslPadding()
* Set the OPENSSL padding
*
* @param int|null $opensslPadding
* @return $this
* @return $this Provides a fluent interface
*/
public function setOpensslPadding($opensslPadding)
{
Expand All @@ -213,7 +213,7 @@ public function setOpensslPadding($opensslPadding)
* Generate new private/public key pair
*
* @param array $opensslConfig
* @return RsaOptions
* @return $this Provides a fluent interface
* @throws Rsa\Exception\RuntimeException
*/
public function generateKeys(array $opensslConfig = [])
Expand Down
18 changes: 9 additions & 9 deletions src/Symmetric/Mcrypt.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,9 @@ public function getKeySize()
* Set the encryption key
* If the key is longer than maximum supported, it will be truncated by getKey().
*
* @param string $key
* @param string $key
* @return $this Provides a fluent interface
* @throws Exception\InvalidArgumentException
* @return Mcrypt
*/
public function setKey($key)
{
Expand Down Expand Up @@ -280,9 +280,9 @@ public function getKey()
/**
* Set the encryption algorithm (cipher)
*
* @param string $algo
* @param string $algo
* @return $this Provides a fluent interface
* @throws Exception\InvalidArgumentException
* @return Mcrypt
*/
public function setAlgorithm($algo)
{
Expand Down Expand Up @@ -312,7 +312,7 @@ public function getAlgorithm()
* Set the padding object
*
* @param Padding\PaddingInterface $padding
* @return Mcrypt
* @return $this Provides a fluent interface
*/
public function setPadding(Padding\PaddingInterface $padding)
{
Expand Down Expand Up @@ -422,9 +422,9 @@ public function getSupportedAlgorithms()
/**
* Set the salt (IV)
*
* @param string $salt
* @param string $salt
* @return $this Provides a fluent interface
* @throws Exception\InvalidArgumentException
* @return Mcrypt
*/
public function setSalt($salt)
{
Expand Down Expand Up @@ -475,9 +475,9 @@ public function getOriginalSalt()
/**
* Set the cipher mode
*
* @param string $mode
* @param string $mode
* @return $this Provides a fluent interface
* @throws Exception\InvalidArgumentException
* @return Mcrypt
*/
public function setMode($mode)
{
Expand Down
10 changes: 5 additions & 5 deletions src/Symmetric/Openssl.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ public function getKeySize()
* If the key is longer than maximum supported, it will be truncated by getKey().
*
* @param string $key
* @return $this Provides a fluent interface
* @throws Exception\InvalidArgumentException
* @return self
*/
public function setKey($key)
{
Expand Down Expand Up @@ -323,8 +323,8 @@ public function getKey()
* Set the encryption algorithm (cipher)
*
* @param string $algo
* @return $this Provides a fluent interface
* @throws Exception\InvalidArgumentException
* @return self
*/
public function setAlgorithm($algo)
{
Expand Down Expand Up @@ -353,7 +353,7 @@ public function getAlgorithm()
* Set the padding object
*
* @param Padding\PaddingInterface $padding
* @return self
* @return $this Provides a fluent interface
*/
public function setPadding(Padding\PaddingInterface $padding)
{
Expand Down Expand Up @@ -503,8 +503,8 @@ public function getSupportedAlgorithms()
* Set the salt (IV)
*
* @param string $salt
* @return $this Provides a fluent interface
* @throws Exception\InvalidArgumentException
* @return self
*/
public function setSalt($salt)
{
Expand Down Expand Up @@ -566,8 +566,8 @@ public function getOriginalSalt()
* Set the cipher mode
*
* @param string $mode
* @return $this Provides a fluent interface
* @throws Exception\InvalidArgumentException
* @return self
*/
public function setMode($mode)
{
Expand Down

0 comments on commit f87676e

Please sign in to comment.