Skip to content

Commit 99f3853

Browse files
committed
formatting
1 parent 2e2120e commit 99f3853

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Common/Microsoft/PasswordEncoder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,17 +155,17 @@ private static function getAlgorithm($sid)
155155
*/
156156
private static function buildCombinedKey($byteChars)
157157
{
158-
$byteCharsLength = count($byteChars);
158+
$byteCharsLength = count($byteChars);
159159
// Compute the high-order word
160160
// Initialize from the initial code array (see above), depending on the passwords length.
161-
$highOrderWord = self::$initialCodeArray[$byteCharsLength - 1];
161+
$highOrderWord = self::$initialCodeArray[$byteCharsLength - 1];
162162

163163
// For each character in the password:
164164
// For every bit in the character, starting with the least significant and progressing to (but excluding)
165165
// the most significant, if the bit is set, XOR the key’s high-order word with the corresponding word from
166166
// the Encryption Matrix
167167
for ($i = 0; $i < $byteCharsLength; $i++) {
168-
$tmp = self::$passwordMaxLength - $byteCharsLength + $i;
168+
$tmp = self::$passwordMaxLength - $byteCharsLength + $i;
169169
$matrixRow = self::$encryptionMatrix[$tmp];
170170
for ($intBit = 0; $intBit < 7; $intBit++) {
171171
if (($byteChars[$i] & (0x0001 << $intBit)) != 0) {

0 commit comments

Comments
 (0)