forked from GNUsocial/gnu-social
ParagonIE\ConstantTime required PHP7, going to v1.x branch
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
namespace ParagonIE\ConstantTime;
|
||||
|
||||
/**
|
||||
@@ -37,7 +36,7 @@ abstract class Encoding
|
||||
* @param $str
|
||||
* @return string
|
||||
*/
|
||||
public static function base32Encode(string $str): string
|
||||
public static function base32Encode($str)
|
||||
{
|
||||
return Base32::encode($str);
|
||||
}
|
||||
@@ -48,7 +47,7 @@ abstract class Encoding
|
||||
* @param $str
|
||||
* @return string
|
||||
*/
|
||||
public static function base32EncodeUpper(string $str): string
|
||||
public static function base32EncodeUpper($str)
|
||||
{
|
||||
return Base32::encodeUpper($str);
|
||||
}
|
||||
@@ -59,7 +58,7 @@ abstract class Encoding
|
||||
* @param $str
|
||||
* @return string
|
||||
*/
|
||||
public static function base32Decode(string $str): string
|
||||
public static function base32Decode($str)
|
||||
{
|
||||
return Base32::decode($str);
|
||||
}
|
||||
@@ -70,7 +69,7 @@ abstract class Encoding
|
||||
* @param $str
|
||||
* @return string
|
||||
*/
|
||||
public static function base32DecodeUpper(string $str): string
|
||||
public static function base32DecodeUpper($str)
|
||||
{
|
||||
return Base32::decodeUpper($str);
|
||||
}
|
||||
@@ -81,7 +80,7 @@ abstract class Encoding
|
||||
* @param $str
|
||||
* @return string
|
||||
*/
|
||||
public static function base32HexEncode(string $str): string
|
||||
public static function base32HexEncode($str)
|
||||
{
|
||||
return Base32Hex::encode($str);
|
||||
}
|
||||
@@ -93,7 +92,7 @@ abstract class Encoding
|
||||
* @param $str
|
||||
* @return string
|
||||
*/
|
||||
public static function base32HexEncodeUpper(string $str): string
|
||||
public static function base32HexEncodeUpper($str)
|
||||
{
|
||||
return Base32Hex::encodeUpper($str);
|
||||
}
|
||||
@@ -104,7 +103,7 @@ abstract class Encoding
|
||||
* @param $str
|
||||
* @return string
|
||||
*/
|
||||
public static function base32HexDecode(string $str): string
|
||||
public static function base32HexDecode($str)
|
||||
{
|
||||
return Base32Hex::decode($str);
|
||||
}
|
||||
@@ -115,7 +114,7 @@ abstract class Encoding
|
||||
* @param $str
|
||||
* @return string
|
||||
*/
|
||||
public static function base32HexDecodeUpper(string $str): string
|
||||
public static function base32HexDecodeUpper($str)
|
||||
{
|
||||
return Base32Hex::decodeUpper($str);
|
||||
}
|
||||
@@ -126,7 +125,7 @@ abstract class Encoding
|
||||
* @param $str
|
||||
* @return string
|
||||
*/
|
||||
public static function base64Encode(string $str): string
|
||||
public static function base64Encode($str)
|
||||
{
|
||||
return Base64::encode($str);
|
||||
}
|
||||
@@ -137,7 +136,7 @@ abstract class Encoding
|
||||
* @param $str
|
||||
* @return string
|
||||
*/
|
||||
public static function base64Decode(string $str): string
|
||||
public static function base64Decode($str)
|
||||
{
|
||||
return Base64::decode($str);
|
||||
}
|
||||
@@ -149,9 +148,9 @@ abstract class Encoding
|
||||
* @param $src
|
||||
* @return string
|
||||
*/
|
||||
public static function base64EncodeDotSlash(string $str): string
|
||||
public static function base64EncodeDotSlash($src)
|
||||
{
|
||||
return Base64DotSlash::encode($str);
|
||||
return Base64DotSlash::encode($src);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -163,9 +162,9 @@ abstract class Encoding
|
||||
* @return bool|string
|
||||
* @throws \RangeException
|
||||
*/
|
||||
public static function base64DecodeDotSlash(string $str): string
|
||||
public static function base64DecodeDotSlash($src)
|
||||
{
|
||||
return Base64DotSlash::decode($str);
|
||||
return Base64DotSlash::decode($src);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -175,9 +174,9 @@ abstract class Encoding
|
||||
* @param $src
|
||||
* @return string
|
||||
*/
|
||||
public static function base64EncodeDotSlashOrdered(string $str): string
|
||||
public static function base64EncodeDotSlashOrdered($src)
|
||||
{
|
||||
return Base64DotSlashOrdered::encode($str);
|
||||
return Base64DotSlashOrdered::encode($src);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -189,9 +188,9 @@ abstract class Encoding
|
||||
* @return bool|string
|
||||
* @throws \RangeException
|
||||
*/
|
||||
public static function base64DecodeDotSlashOrdered(string $str): string
|
||||
public static function base64DecodeDotSlashOrdered($src)
|
||||
{
|
||||
return Base64DotSlashOrdered::decode($str);
|
||||
return Base64DotSlashOrdered::decode($src);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -201,7 +200,7 @@ abstract class Encoding
|
||||
* @param string $bin_string (raw binary)
|
||||
* @return string
|
||||
*/
|
||||
public static function hexEncode(string $bin_string): string
|
||||
public static function hexEncode($bin_string)
|
||||
{
|
||||
return Hex::encode($bin_string);
|
||||
}
|
||||
@@ -214,7 +213,7 @@ abstract class Encoding
|
||||
* @return string (raw binary)
|
||||
* @throws \RangeException
|
||||
*/
|
||||
public static function hexDecode(string $hex_string): string
|
||||
public static function hexDecode($hex_string)
|
||||
{
|
||||
return Hex::decode($hex_string);
|
||||
}
|
||||
@@ -226,7 +225,7 @@ abstract class Encoding
|
||||
* @param string $bin_string (raw binary)
|
||||
* @return string
|
||||
*/
|
||||
public static function hexEncodeUpper(string $bin_string): string
|
||||
public static function hexEncodeUpper($bin_string)
|
||||
{
|
||||
return Hex::encodeUpper($bin_string);
|
||||
}
|
||||
@@ -238,7 +237,7 @@ abstract class Encoding
|
||||
* @param string $bin_string (raw binary)
|
||||
* @return string
|
||||
*/
|
||||
public static function hexDecodeUpper(string $bin_string): string
|
||||
public static function hexDecodeUpper($bin_string)
|
||||
{
|
||||
return Hex::decode($bin_string);
|
||||
}
|
||||
|
Reference in New Issue
Block a user