Skip to content

Commit

Permalink
Basic cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
paragonie-security committed Dec 8, 2016
1 parent 83fbc07 commit 49a324b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ This should produce something similar to:
<?php
use ParagonIE\Halite\HiddenString;
use ParagonIE\Halite\KeyFactory;
use ParagonIE\Halite\Symmetric\Crypto as Symmetric;

$passwd = new HiddenString('correct horse battery staple');
// Use random_bytes(16); to generate the salt:
Expand Down
4 changes: 2 additions & 2 deletions src/Symmetric/Crypto.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public static function decrypt(
authentication. By using separate keys, we can reasonably dismiss
likely cross-protocol attacks.
This uses salted HKDF to split the keys, whic is why we need the
This uses salted HKDF to split the keys, which is why we need the
salt in the first place. */
list($encKey, $authKey) = self::splitKeys($secretKey, $salt, $config);

Expand Down Expand Up @@ -162,7 +162,7 @@ public static function encrypt(
authentication. By using separate keys, we can reasonably dismiss
likely cross-protocol attacks.
This uses salted HKDF to split the keys, whic is why we need the
This uses salted HKDF to split the keys, which is why we need the
salt in the first place. */
list($encKey, $authKey) = self::splitKeys($secretKey, $salt, $config);

Expand Down
4 changes: 2 additions & 2 deletions stub/Sodium.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ function crypto_generichash_update(
string &$hashState,
string $append
): bool {
return '';
return false;
}

/**
Expand All @@ -392,7 +392,7 @@ function crypto_generichash_update(
* @return string
*/
function crypto_generichash_final(
string $state,
string $hashState,
int $length = 32
): string {
return '';
Expand Down

0 comments on commit 49a324b

Please sign in to comment.