libcryptx-perl/t/001_compile.t

137 lines
3.5 KiB
Perl
Raw Normal View History

2018-03-22 15:51:09 +01:00
use strict;
use warnings;
2018-03-22 15:54:03 +01:00
use Config;
2018-03-22 15:51:09 +01:00
use Test::More tests => 1;
2018-03-22 15:54:03 +01:00
diag( "Testing CryptX $CryptX::VERSION, Perl $] $^O $^X" );
2018-03-22 15:51:09 +01:00
my $ok;
END { die "Could not load all modules" unless $ok }
2018-03-22 15:54:03 +01:00
use Crypt::AuthEnc::CCM;
use Crypt::AuthEnc::ChaCha20Poly1305;
use Crypt::AuthEnc::EAX;
use Crypt::AuthEnc::GCM;
use Crypt::AuthEnc::OCB;
use Crypt::AuthEnc;
use Crypt::Checksum::Adler32;
use Crypt::Checksum::CRC32;
use Crypt::Checksum;
2018-03-22 15:51:09 +01:00
use Crypt::Cipher::AES;
use Crypt::Cipher::Anubis;
use Crypt::Cipher::Blowfish;
use Crypt::Cipher::Camellia;
use Crypt::Cipher::CAST5;
use Crypt::Cipher::DES;
use Crypt::Cipher::DES_EDE;
2018-03-22 15:54:03 +01:00
use Crypt::Cipher::IDEA;
2018-03-22 15:51:09 +01:00
use Crypt::Cipher::KASUMI;
use Crypt::Cipher::Khazad;
use Crypt::Cipher::MULTI2;
use Crypt::Cipher::Noekeon;
use Crypt::Cipher::RC2;
use Crypt::Cipher::RC5;
use Crypt::Cipher::RC6;
use Crypt::Cipher::SAFERP;
use Crypt::Cipher::SAFER_K128;
use Crypt::Cipher::SAFER_K64;
use Crypt::Cipher::SAFER_SK128;
use Crypt::Cipher::SAFER_SK64;
use Crypt::Cipher::SEED;
2018-03-22 15:54:03 +01:00
use Crypt::Cipher::Serpent;
2018-03-22 15:51:09 +01:00
use Crypt::Cipher::Skipjack;
use Crypt::Cipher::Twofish;
use Crypt::Cipher::XTEA;
use Crypt::Cipher;
2018-03-22 15:54:03 +01:00
use Crypt::Digest::BLAKE2b_160;
use Crypt::Digest::BLAKE2b_256;
use Crypt::Digest::BLAKE2b_384;
use Crypt::Digest::BLAKE2b_512;
use Crypt::Digest::BLAKE2s_128;
use Crypt::Digest::BLAKE2s_160;
use Crypt::Digest::BLAKE2s_224;
use Crypt::Digest::BLAKE2s_256;
2018-03-22 15:51:09 +01:00
use Crypt::Digest::CHAES;
use Crypt::Digest::MD2;
use Crypt::Digest::MD4;
use Crypt::Digest::MD5;
use Crypt::Digest::RIPEMD128;
use Crypt::Digest::RIPEMD160;
use Crypt::Digest::RIPEMD256;
use Crypt::Digest::RIPEMD320;
use Crypt::Digest::SHA1;
use Crypt::Digest::SHA224;
use Crypt::Digest::SHA256;
use Crypt::Digest::SHA384;
2018-03-22 15:54:03 +01:00
use Crypt::Digest::SHA3_224;
use Crypt::Digest::SHA3_256;
use Crypt::Digest::SHA3_384;
use Crypt::Digest::SHA3_512;
use Crypt::Digest::Keccak224;
use Crypt::Digest::Keccak256;
use Crypt::Digest::Keccak384;
use Crypt::Digest::Keccak512;
2018-03-22 15:51:09 +01:00
use Crypt::Digest::SHA512;
2018-03-22 15:54:03 +01:00
use Crypt::Digest::SHA512_224;
use Crypt::Digest::SHA512_256;
use Crypt::Digest::SHAKE;
2018-03-22 15:51:09 +01:00
use Crypt::Digest::Tiger192;
use Crypt::Digest::Whirlpool;
use Crypt::Digest;
2018-03-22 15:54:03 +01:00
use Crypt::KeyDerivation;
use Crypt::Mac::BLAKE2b;
use Crypt::Mac::BLAKE2s;
2018-03-22 15:51:09 +01:00
use Crypt::Mac::F9;
use Crypt::Mac::HMAC;
use Crypt::Mac::OMAC;
use Crypt::Mac::Pelican;
use Crypt::Mac::PMAC;
2018-03-22 15:54:03 +01:00
use Crypt::Mac::Poly1305;
2018-03-22 15:51:09 +01:00
use Crypt::Mac::XCBC;
2018-03-22 15:54:03 +01:00
use Crypt::Mac;
use Crypt::Misc;
2018-03-22 15:51:09 +01:00
use Crypt::Mode::CBC;
use Crypt::Mode::CFB;
use Crypt::Mode::CTR;
2018-03-22 15:54:03 +01:00
use Crypt::Mode::ECB;
use Crypt::Mode::OFB;
use Crypt::Mode;
use Crypt::PK::DH;
2018-03-22 15:51:09 +01:00
use Crypt::PK::DSA;
use Crypt::PK::ECC;
2018-03-22 15:54:03 +01:00
use Crypt::PK::RSA;
use Crypt::PK;
use Crypt::PRNG::ChaCha20;
use Crypt::PRNG::Fortuna;
use Crypt::PRNG::RC4;
use Crypt::PRNG::Sober128;
use Crypt::PRNG::Yarrow;
use Crypt::PRNG;
use Crypt::Stream::ChaCha;
use Crypt::Stream::RC4;
use Crypt::Stream::Salsa20;
use Crypt::Stream::Sober128;
use Crypt::Stream::Sosemanuk;
use Crypt::Stream::Rabbit;
use CryptX;
use Math::BigInt::LTM;
diag( "osname = $Config{osname}" );
diag( "myarchname = $Config{myarchname}" );
diag( "myuname = $Config{myuname}" );
diag( "intsize = $Config{intsize}" );
diag( "longsize = $Config{longsize}" );
diag( "longlongsize = $Config{longlongsize}" );
diag( "ptrsize = $Config{ptrsize}" );
diag( "byteorder = $Config{byteorder}" );
diag( "" );
diag( CryptX::_ltc_build_settings );
diag( "" );
diag( "MP_PROVIDER = " . CryptX::_ltc_mp_name );
diag( "MP_DIGIT_BIT = " . CryptX::_ltc_mp_bits_per_digit );
diag( "" );
2018-03-22 15:51:09 +01:00
ok 1, 'All modules loaded successfully';
$ok = 1;