File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments