Skip to content

Commit

Permalink
fix: hash module return statement from raw_output to binary
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 authored and LolGleb committed Aug 20, 2024
1 parent 89adaed commit d31912c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions hash/hash.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* <b>FALSE</b> outputs lowercase hexits.
* </p>
* @return string a string containing the calculated message digest as lowercase hexits
* unless <i>raw_output</i> is set to true in which case the raw
* unless <i>binary</i> is set to true in which case the raw
* binary representation of the message digest is returned.
*/
#[Pure]
Expand Down Expand Up @@ -53,7 +53,7 @@ function hash_equals(string $known_string, string $user_string): bool {}
* <b>FALSE</b> outputs lowercase hexits.
* </p>
* @return string|false a string containing the calculated message digest as lowercase hexits
* unless <i>raw_output</i> is set to true in which case the raw
* unless <i>binary</i> is set to true in which case the raw
* binary representation of the message digest is returned.
*/
#[Pure]
Expand All @@ -78,7 +78,7 @@ function hash_file(string $algo, string $filename, bool $binary = false, #[PhpSt
* <b>FALSE</b> outputs lowercase hexits.
* </p>
* @return string a string containing the calculated message digest as lowercase hexits
* unless <i>raw_output</i> is set to true in which case the raw
* unless <i>binary</i> is set to true in which case the raw
* binary representation of the message digest is returned.
*/
#[Pure]
Expand All @@ -103,7 +103,7 @@ function hash_hmac(string $algo, string $data, string $key, bool $binary = false
* <b>FALSE</b> outputs lowercase hexits.
* </p>
* @return string|false a string containing the calculated message digest as lowercase hexits
* unless <i>raw_output</i> is set to true in which case the raw
* unless <i>binary</i> is set to true in which case the raw
* binary representation of the message digest is returned.
*/
#[Pure]
Expand Down Expand Up @@ -196,7 +196,7 @@ function hash_update_file(#[LanguageLevelTypeAware(["7.2" => "HashContext"], def
* <b>FALSE</b> outputs lowercase hexits.
* </p>
* @return string a string containing the calculated message digest as lowercase hexits
* unless <i>raw_output</i> is set to true in which case the raw
* unless <i>binary</i> is set to true in which case the raw
* binary representation of the message digest is returned.
*/
function hash_final(#[LanguageLevelTypeAware(["7.2" => "HashContext"], default: "resource")] $context, bool $binary = false): string {}
Expand Down Expand Up @@ -273,8 +273,8 @@ function hash_hmac_algos(): array {}
* The number of internal iterations to perform for the derivation.
* </p>
* @param int $length [optional] <p>
* The length of the output string. If raw_output is TRUE this corresponds to the byte-length of the derived key,
* if raw_output is FALSE this corresponds to twice the byte-length of the derived key (as every byte of the key is returned as two hexits). <br/>
* The length of the output string. If binary is TRUE this corresponds to the byte-length of the derived key,
* if binary is FALSE this corresponds to twice the byte-length of the derived key (as every byte of the key is returned as two hexits). <br/>
* If 0 is passed, the entire output of the supplied algorithm is used.
* </p>
* @param bool $binary [optional] <p>
Expand All @@ -284,7 +284,7 @@ function hash_hmac_algos(): array {}
* Additional options. This parameter was added for PHP 8.1 only.
* </p>
* @return string a string containing the derived key as lowercase hexits unless
* <i>raw_output</i> is set to <b>TRUE</b> in which case the raw
* <i>binary</i> is set to <b>TRUE</b> in which case the raw
* binary representation of the derived key is returned.
* @since 5.5
*/
Expand Down

0 comments on commit d31912c

Please sign in to comment.