diff --git a/tools/benchmark_deep.pl b/tools/benchmark_deep.pl index 4b6f629fe..a7a2124d0 100755 --- a/tools/benchmark_deep.pl +++ b/tools/benchmark_deep.pl @@ -1,4 +1,9 @@ -#!/usr/bin/perl +#!/usr/bin/env perl + +## +## Author......: See docs/credits.txt +## License.....: MIT +## use strict; use warnings; diff --git a/tools/code_generators/GEN_AMD_switch_buffer_by_offset_1x64_be_S.pl b/tools/code_generators/GEN_AMD_switch_buffer_by_offset_1x64_be_S.pl old mode 100644 new mode 100755 index 18867c567..f497021d2 --- a/tools/code_generators/GEN_AMD_switch_buffer_by_offset_1x64_be_S.pl +++ b/tools/code_generators/GEN_AMD_switch_buffer_by_offset_1x64_be_S.pl @@ -1,4 +1,9 @@ -#!/usr/bin/perl +#!/usr/bin/env perl + +## +## Author......: See docs/credits.txt +## License.....: MIT +## use strict; use warnings; diff --git a/tools/code_generators/GEN_AMD_switch_buffer_by_offset_1x64_le_S.pl b/tools/code_generators/GEN_AMD_switch_buffer_by_offset_1x64_le_S.pl old mode 100644 new mode 100755 index 26a73ba5e..16b735557 --- a/tools/code_generators/GEN_AMD_switch_buffer_by_offset_1x64_le_S.pl +++ b/tools/code_generators/GEN_AMD_switch_buffer_by_offset_1x64_le_S.pl @@ -1,4 +1,9 @@ -#!/usr/bin/perl +#!/usr/bin/env perl + +## +## Author......: See docs/credits.txt +## License.....: MIT +## use strict; use warnings; diff --git a/tools/code_generators/GEN_AMD_switch_buffer_by_offset_4x4_be_S.pl b/tools/code_generators/GEN_AMD_switch_buffer_by_offset_4x4_be_S.pl old mode 100644 new mode 100755 index 25acf22f0..e73e10cbb --- a/tools/code_generators/GEN_AMD_switch_buffer_by_offset_4x4_be_S.pl +++ b/tools/code_generators/GEN_AMD_switch_buffer_by_offset_4x4_be_S.pl @@ -1,4 +1,9 @@ -#!/usr/bin/perl +#!/usr/bin/env perl + +## +## Author......: See docs/credits.txt +## License.....: MIT +## use strict; use warnings; diff --git a/tools/code_generators/GEN_AMD_switch_buffer_by_offset_4x4_carry_be_S.pl b/tools/code_generators/GEN_AMD_switch_buffer_by_offset_4x4_carry_be_S.pl old mode 100644 new mode 100755 index cbaa406fe..4e898457f --- a/tools/code_generators/GEN_AMD_switch_buffer_by_offset_4x4_carry_be_S.pl +++ b/tools/code_generators/GEN_AMD_switch_buffer_by_offset_4x4_carry_be_S.pl @@ -1,4 +1,9 @@ -#!/usr/bin/perl +#!/usr/bin/env perl + +## +## Author......: See docs/credits.txt +## License.....: MIT +## use strict; use warnings; diff --git a/tools/code_generators/GEN_AMD_switch_buffer_by_offset_4x4_le_S.pl b/tools/code_generators/GEN_AMD_switch_buffer_by_offset_4x4_le_S.pl old mode 100644 new mode 100755 index 310634f6b..aadb6a2c1 --- a/tools/code_generators/GEN_AMD_switch_buffer_by_offset_4x4_le_S.pl +++ b/tools/code_generators/GEN_AMD_switch_buffer_by_offset_4x4_le_S.pl @@ -1,4 +1,9 @@ -#!/usr/bin/perl +#!/usr/bin/env perl + +## +## Author......: See docs/credits.txt +## License.....: MIT +## use strict; use warnings; diff --git a/tools/code_generators/GEN_AMD_switch_buffer_by_offset_8x4_be_S.pl b/tools/code_generators/GEN_AMD_switch_buffer_by_offset_8x4_be_S.pl old mode 100644 new mode 100755 index 404d3eb0e..11e3d22ac --- a/tools/code_generators/GEN_AMD_switch_buffer_by_offset_8x4_be_S.pl +++ b/tools/code_generators/GEN_AMD_switch_buffer_by_offset_8x4_be_S.pl @@ -1,4 +1,9 @@ -#!/usr/bin/perl +#!/usr/bin/env perl + +## +## Author......: See docs/credits.txt +## License.....: MIT +## use strict; use warnings; diff --git a/tools/code_generators/GEN_AMD_switch_buffer_by_offset_8x4_carry_be_S.pl b/tools/code_generators/GEN_AMD_switch_buffer_by_offset_8x4_carry_be_S.pl old mode 100644 new mode 100755 index 931caf5c6..6c059d564 --- a/tools/code_generators/GEN_AMD_switch_buffer_by_offset_8x4_carry_be_S.pl +++ b/tools/code_generators/GEN_AMD_switch_buffer_by_offset_8x4_carry_be_S.pl @@ -1,4 +1,9 @@ -#!/usr/bin/perl +#!/usr/bin/env perl + +## +## Author......: See docs/credits.txt +## License.....: MIT +## use strict; use warnings; diff --git a/tools/code_generators/GEN_NV_switch_buffer_by_offset_1x64_be_S.pl b/tools/code_generators/GEN_NV_switch_buffer_by_offset_1x64_be_S.pl old mode 100644 new mode 100755 index 2719267fd..784dd80a8 --- a/tools/code_generators/GEN_NV_switch_buffer_by_offset_1x64_be_S.pl +++ b/tools/code_generators/GEN_NV_switch_buffer_by_offset_1x64_be_S.pl @@ -1,4 +1,9 @@ -#!/usr/bin/perl +#!/usr/bin/env perl + +## +## Author......: See docs/credits.txt +## License.....: MIT +## use strict; use warnings; diff --git a/tools/code_generators/GEN_NV_switch_buffer_by_offset_1x64_le_S.pl b/tools/code_generators/GEN_NV_switch_buffer_by_offset_1x64_le_S.pl old mode 100644 new mode 100755 index f8a87f7d5..2b4d40ee7 --- a/tools/code_generators/GEN_NV_switch_buffer_by_offset_1x64_le_S.pl +++ b/tools/code_generators/GEN_NV_switch_buffer_by_offset_1x64_le_S.pl @@ -1,4 +1,9 @@ -#!/usr/bin/perl +#!/usr/bin/env perl + +## +## Author......: See docs/credits.txt +## License.....: MIT +## use strict; use warnings; diff --git a/tools/code_generators/GEN_NV_switch_buffer_by_offset_4x4_be_S.pl b/tools/code_generators/GEN_NV_switch_buffer_by_offset_4x4_be_S.pl old mode 100644 new mode 100755 index c2c95751f..bf4052848 --- a/tools/code_generators/GEN_NV_switch_buffer_by_offset_4x4_be_S.pl +++ b/tools/code_generators/GEN_NV_switch_buffer_by_offset_4x4_be_S.pl @@ -1,4 +1,9 @@ -#!/usr/bin/perl +#!/usr/bin/env perl + +## +## Author......: See docs/credits.txt +## License.....: MIT +## use strict; use warnings; diff --git a/tools/code_generators/GEN_NV_switch_buffer_by_offset_4x4_carry_be_S.pl b/tools/code_generators/GEN_NV_switch_buffer_by_offset_4x4_carry_be_S.pl old mode 100644 new mode 100755 index 2f1e87497..2993fc697 --- a/tools/code_generators/GEN_NV_switch_buffer_by_offset_4x4_carry_be_S.pl +++ b/tools/code_generators/GEN_NV_switch_buffer_by_offset_4x4_carry_be_S.pl @@ -1,4 +1,9 @@ -#!/usr/bin/perl +#!/usr/bin/env perl + +## +## Author......: See docs/credits.txt +## License.....: MIT +## use strict; use warnings; diff --git a/tools/code_generators/GEN_NV_switch_buffer_by_offset_4x4_le_S.pl b/tools/code_generators/GEN_NV_switch_buffer_by_offset_4x4_le_S.pl old mode 100644 new mode 100755 index 0f0f62809..e1ba4b6e6 --- a/tools/code_generators/GEN_NV_switch_buffer_by_offset_4x4_le_S.pl +++ b/tools/code_generators/GEN_NV_switch_buffer_by_offset_4x4_le_S.pl @@ -1,4 +1,9 @@ -#!/usr/bin/perl +#!/usr/bin/env perl + +## +## Author......: See docs/credits.txt +## License.....: MIT +## use strict; use warnings; diff --git a/tools/code_generators/GEN_NV_switch_buffer_by_offset_8x4_be_S.pl b/tools/code_generators/GEN_NV_switch_buffer_by_offset_8x4_be_S.pl old mode 100644 new mode 100755 index ea67607ab..6f3c0336f --- a/tools/code_generators/GEN_NV_switch_buffer_by_offset_8x4_be_S.pl +++ b/tools/code_generators/GEN_NV_switch_buffer_by_offset_8x4_be_S.pl @@ -1,4 +1,9 @@ -#!/usr/bin/perl +#!/usr/bin/env perl + +## +## Author......: See docs/credits.txt +## License.....: MIT +## use strict; use warnings; diff --git a/tools/code_generators/GEN_NV_switch_buffer_by_offset_8x4_carry_be_S.pl b/tools/code_generators/GEN_NV_switch_buffer_by_offset_8x4_carry_be_S.pl old mode 100644 new mode 100755 index 2ac665806..15fd4c1e7 --- a/tools/code_generators/GEN_NV_switch_buffer_by_offset_8x4_carry_be_S.pl +++ b/tools/code_generators/GEN_NV_switch_buffer_by_offset_8x4_carry_be_S.pl @@ -1,4 +1,9 @@ -#!/usr/bin/perl +#!/usr/bin/env perl + +## +## Author......: See docs/credits.txt +## License.....: MIT +## use strict; use warnings; diff --git a/tools/code_generators/GEN_truncate_block_16x4_be.pl b/tools/code_generators/GEN_truncate_block_16x4_be.pl old mode 100644 new mode 100755 index 41427e754..59363850b --- a/tools/code_generators/GEN_truncate_block_16x4_be.pl +++ b/tools/code_generators/GEN_truncate_block_16x4_be.pl @@ -1,4 +1,9 @@ -#!/usr/bin/perl +#!/usr/bin/env perl + +## +## Author......: See docs/credits.txt +## License.....: MIT +## use strict; use warnings; diff --git a/tools/code_generators/GEN_truncate_block_16x4_le.pl b/tools/code_generators/GEN_truncate_block_16x4_le.pl old mode 100644 new mode 100755 index ce17f8bcc..5c19219f1 --- a/tools/code_generators/GEN_truncate_block_16x4_le.pl +++ b/tools/code_generators/GEN_truncate_block_16x4_le.pl @@ -1,4 +1,9 @@ -#!/usr/bin/perl +#!/usr/bin/env perl + +## +## Author......: See docs/credits.txt +## License.....: MIT +## use strict; use warnings; diff --git a/tools/code_generators/GEN_truncate_block_4x4_be.pl b/tools/code_generators/GEN_truncate_block_4x4_be.pl old mode 100644 new mode 100755 index e5b017841..c92c32bf1 --- a/tools/code_generators/GEN_truncate_block_4x4_be.pl +++ b/tools/code_generators/GEN_truncate_block_4x4_be.pl @@ -1,4 +1,9 @@ -#!/usr/bin/perl +#!/usr/bin/env perl + +## +## Author......: See docs/credits.txt +## License.....: MIT +## use strict; use warnings; diff --git a/tools/code_generators/GEN_truncate_block_4x4_le.pl b/tools/code_generators/GEN_truncate_block_4x4_le.pl old mode 100644 new mode 100755 index 292120770..11e1430bf --- a/tools/code_generators/GEN_truncate_block_4x4_le.pl +++ b/tools/code_generators/GEN_truncate_block_4x4_le.pl @@ -1,4 +1,9 @@ -#!/usr/bin/perl +#!/usr/bin/env perl + +## +## Author......: See docs/credits.txt +## License.....: MIT +## use strict; use warnings; diff --git a/tools/install_modules.sh b/tools/install_modules.sh index 804960f82..33d907aeb 100755 --- a/tools/install_modules.sh +++ b/tools/install_modules.sh @@ -23,6 +23,7 @@ cpan install Authen::Passphrase::LANManager \ Crypt::ECB \ Crypt::Eksblowfish::Bcrypt \ Crypt::GCrypt \ + Crypt::Mode::CBC \ Crypt::Mode::ECB \ Crypt::MySQL \ Crypt::OpenSSH::ChachaPoly \ @@ -50,11 +51,13 @@ cpan install Authen::Passphrase::LANManager \ Digest::SHA1 \ Digest::SHA3 \ Digest::SipHash \ + Encode \ JSON \ MIME::Base32 \ MIME::Base64 \ Net::DNS::RR::NSEC3 \ Net::DNS::SEC \ + POSIX \ Text::Iconv \ ; @@ -66,6 +69,15 @@ pip2 uninstall -y pycryptodome ERRORS=$((ERRORS+$?)) +php --version > /dev/null 2> /dev/null + +if [ "$?" -ne 0 ] +then + echo '[ ERROR ] php must be installed for some unit tests' + + ERRORS=$((ERRORS+1)) +fi + echo if [ $ERRORS -eq 0 ]; then echo '[ OK ] All commands were successful' diff --git a/tools/securenotes2hashcat.pl b/tools/securenotes2hashcat.pl old mode 100644 new mode 100755