Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
language: php

php:
- 5.5
- 5.6
- 7.1
- 7.2
- nightly

matrix:
fast_finish: true
allow_failures:
- php: 5.5
- php: 5.6

install:
- if [[ "$TRAVIS_PHP_VERSION" != "nightly" ]]; then phpenv config-rm xdebug.ini; fi
- travis_retry composer self-update
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
}
],
"require": {
"php": ">=7.1.0"
"php": ">=5.5.9"
},
"autoload": {
"psr-4": {
"kornrunner\\": "src"
}
},
"require-dev": {
"phpunit/phpunit": "^6.5",
"phpunit/phpunit": "4.8.36|6.5",
"satooshi/php-coveralls": "~2"
}
}
8 changes: 3 additions & 5 deletions src/Keccak.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
namespace kornrunner;

use Exception;
use function mb_strlen;
use function mb_substr;

final class Keccak
{
private const KECCAK_ROUNDS = 24;
private const LFSR = 0x01;
private const ENCODING = '8bit';
const KECCAK_ROUNDS = 24;
const LFSR = 0x01;
const ENCODING = '8bit';
private static $keccakf_rotc = [1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 2, 14, 27, 41, 56, 8, 25, 43, 62, 18, 39, 61, 20, 44];
private static $keccakf_piln = [10, 7, 11, 17, 18, 3, 5, 16, 8, 21, 24, 4, 15, 23, 19, 13, 12,2, 20, 14, 22, 9, 6, 1];
private static $x64 = (PHP_INT_SIZE === 8);
Expand Down