diff options
Diffstat (limited to 'src/EncoderInterface.php')
-rw-r--r-- | src/EncoderInterface.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/EncoderInterface.php b/src/EncoderInterface.php index 79744ce..ca69916 100644 --- a/src/EncoderInterface.php +++ b/src/EncoderInterface.php @@ -35,17 +35,18 @@ interface EncoderInterface * Convert a binary string into a hexadecimal string without cache-timing * leaks * - * @param string $bin_string (raw binary) + * @param string $binString (raw binary) * @return string */ - public static function encode(string $bin_string): string; + public static function encode(string $binString): string; /** * Convert a binary string into a hexadecimal string without cache-timing * leaks * - * @param string $encoded_string + * @param string $encodedString + * @param bool $strictPadding Error on invalid padding * @return string (raw binary) */ - public static function decode(string $encoded_string): string; + public static function decode(string $encodedString, bool $strictPadding = false): string; } |