Skip to content

Commit

Permalink
re #8
Browse files Browse the repository at this point in the history
  • Loading branch information
Rasmus Fuhse committed Jan 29, 2021
1 parent 32dff8f commit 10e23d6
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion plugin.manifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pluginname=LernMarktplatz
pluginclassname=LernMarktplatz
version=4.11
version=4.12
origin=RasmusFuhse
studipMinVersion=4.0
studipMaxVersion=4.6.99
6 changes: 3 additions & 3 deletions vendor/Crypt/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@

/**#@+
* @access private
* @see self::Crypt_Base()
* @see self::__construct()
* @internal These constants are for internal use only
*/
/**
Expand Down Expand Up @@ -127,7 +127,7 @@ class Crypt_Base
/**
* The Encryption Mode
*
* @see self::Crypt_Base()
* @see self::__construct()
* @var int
* @access private
*/
Expand Down Expand Up @@ -503,7 +503,7 @@ class Crypt_Base
* @param int $mode
* @access public
*/
function Crypt_Base($mode = CRYPT_MODE_CBC)
function __construct($mode = CRYPT_MODE_CBC)
{
// $mode dependent settings
switch ($mode) {
Expand Down
2 changes: 1 addition & 1 deletion vendor/Crypt/Hash.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class Crypt_Hash
* @return Crypt_Hash
* @access public
*/
function Crypt_Hash($hash = 'sha1')
function __construct($hash = 'sha1')
{
if (!defined('CRYPT_HASH_MODE')) {
switch (true) {
Expand Down
4 changes: 2 additions & 2 deletions vendor/Crypt/RC2.php
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,9 @@ class Crypt_RC2 extends Crypt_Base
* @param int $mode
* @access public
*/
function Crypt_RC2($mode = CRYPT_RC2_MODE_CBC)
function __construct($mode = CRYPT_RC2_MODE_CBC)
{
parent::Crypt_Base($mode);
parent::__construct($mode);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions vendor/Crypt/RC4.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ class Crypt_RC4 extends Crypt_Base
* @return Crypt_RC4
* @access public
*/
function Crypt_RC4()
function __construct()
{
parent::Crypt_Base(CRYPT_MODE_STREAM);
parent::__construct(CRYPT_MODE_STREAM);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion vendor/Crypt/RSA.php
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ class Crypt_RSA
* @return Crypt_RSA
* @access public
*/
function Crypt_RSA()
function __construct()
{
if (!class_exists('Math_BigInteger')) {
include_once 'Math/BigInteger.php';
Expand Down
4 changes: 2 additions & 2 deletions vendor/Crypt/Rijndael.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,9 @@ class Crypt_Rijndael extends Crypt_Base
* @param int $mode
* @access public
*/
function Crypt_Rijndael($mode = CRYPT_RIJNDAEL_MODE_CBC)
function __construct($mode = CRYPT_RIJNDAEL_MODE_CBC)
{
parent::Crypt_Base($mode);
parent::__construct($mode);
}

/**
Expand Down
6 changes: 3 additions & 3 deletions vendor/Crypt/TripleDES.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,13 @@ class Crypt_TripleDES extends Crypt_DES
* @param int $mode
* @access public
*/
function Crypt_TripleDES($mode = CRYPT_MODE_CBC)
function __construct($mode = CRYPT_MODE_CBC)
{
switch ($mode) {
// In case of CRYPT_DES_MODE_3CBC, we init as CRYPT_DES_MODE_CBC
// and additional flag us internally as 3CBC
case CRYPT_DES_MODE_3CBC:
parent::Crypt_Base(CRYPT_MODE_CBC);
parent::__construct(CRYPT_MODE_CBC);
$this->mode_3cbc = true;

// This three $des'es will do the 3CBC work (if $key > 64bits)
Expand All @@ -219,7 +219,7 @@ function Crypt_TripleDES($mode = CRYPT_MODE_CBC)
break;
// If not 3CBC, we init as usual
default:
parent::Crypt_Base($mode);
parent::__construct($mode);
}
}

Expand Down

0 comments on commit 10e23d6

Please sign in to comment.