Codebase list libcryptx-perl / ba17cc9
Update upstream source from tag 'upstream/0.077' Update to upstream version '0.077' with Debian dir f143b361e47395b7944e13de455381bc40fd68f3 gregor herrmann 1 year, 8 months ago
118 changed file(s) with 240 addition(s) and 133 deletion(s). Raw diff Collapse all Expand all
00 Changes for CryptX
1
2 0.077 2022-08-21
3 - fix #82 + #84 new t/mbi_ltm_big*.t failures
4 - fix #85 wrong linker options for aix
15
26 0.076 2022-01-07
37 - fix #80 github actions (mac, windows, cygwin)
10561056 t/mbi_ltm_biglog.t
10571057 t/mbi_ltm_bigroot.t
10581058 t/mbi_ltm_bugs.t
1059 t/mbi_ltm_latest.t
10591060 t/mbi_ltm_mbi-from-big-scalar.t
10601061 t/mbi_ltm_storable.t
10611062 t/mode_cbc.t
33 "Karel Miko"
44 ],
55 "dynamic_config" : 1,
6 "generated_by" : "ExtUtils::MakeMaker version 7.62, CPAN::Meta::Converter version 2.150010",
6 "generated_by" : "ExtUtils::MakeMaker version 7.64, CPAN::Meta::Converter version 2.150010",
77 "license" : [
88 "perl_5"
99 ],
5050 "url" : "https://github.com/DCIT/perl-CryptX"
5151 }
5252 },
53 "version" : "0.076",
54 "x_serialization_backend" : "JSON::PP version 4.07"
53 "version" : "0.077",
54 "x_serialization_backend" : "JSON::PP version 4.08"
5555 }
77 configure_requires:
88 ExtUtils::MakeMaker: '0'
99 dynamic_config: 1
10 generated_by: 'ExtUtils::MakeMaker version 7.62, CPAN::Meta::Converter version 2.150010'
10 generated_by: 'ExtUtils::MakeMaker version 7.64, CPAN::Meta::Converter version 2.150010'
1111 license: perl
1212 meta-spec:
1313 url: http://module-build.sourceforge.net/META-spec-v1.4.html
2323 resources:
2424 bugtracker: https://github.com/DCIT/perl-CryptX/issues
2525 repository: https://github.com/DCIT/perl-CryptX
26 version: '0.076'
26 version: '0.077'
2727 x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
6666 # not needed on MS Windows
6767 # does not work on macos - Apple LLVM 12.0.5 (clang-1205.0.22.9) ld: unknown option: --exclude-libs
6868 # does not work on solaris - gcc 9.3.0 - ld: fatal: unrecognized option '--exclude-libs'
69 if ($^O !~ /^(MSWin32|darwin|solaris)$/ && ($Config{ld} =~ /gcc|g\+\+/ || $Config{gccversion})) {
69 # does not work on aix - https://github.com/DCIT/perl-CryptX/issues/85
70 if ($^O !~ /^(MSWin32|darwin|solaris|aix)$/ && ($Config{ld} =~ /gcc|g\+\+/ || $Config{gccversion})) {
7071 push @EUMM_INC_LIB, (LDDLFLAGS => "$Config{lddlflags} -Wl,--exclude-libs,ALL");
7172 }
7273 }
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 require Exporter; our @ISA = qw(Exporter); ### use Exporter 5.57 'import';
77 our %EXPORT_TAGS = ( all => [qw( ccm_encrypt_authenticate ccm_decrypt_verify )] );
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 require Exporter; our @ISA = qw(Exporter); ### use Exporter 5.57 'import';
77 our %EXPORT_TAGS = ( all => [qw( chacha20poly1305_encrypt_authenticate chacha20poly1305_decrypt_verify )] );
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 require Exporter; our @ISA = qw(Exporter); ### use Exporter 5.57 'import';
77 our %EXPORT_TAGS = ( all => [qw( eax_encrypt_authenticate eax_decrypt_verify )] );
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 require Exporter; our @ISA = qw(Exporter); ### use Exporter 5.57 'import';
77 our %EXPORT_TAGS = ( all => [qw( gcm_encrypt_authenticate gcm_decrypt_verify )] );
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 require Exporter; our @ISA = qw(Exporter); ### use Exporter 5.57 'import';
77 our %EXPORT_TAGS = ( all => [qw( ocb_encrypt_authenticate ocb_decrypt_verify )] );
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 ### not used
77
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 use base qw(Crypt::Checksum Exporter);
77 our %EXPORT_TAGS = ( all => [qw( adler32_data adler32_data_hex adler32_data_int adler32_file adler32_file_hex adler32_file_int )] );
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 use base qw(Crypt::Checksum Exporter);
77 our %EXPORT_TAGS = ( all => [qw( crc32_data crc32_data_hex crc32_data_int crc32_file crc32_file_hex crc32_file_int )] );
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 require Exporter; our @ISA = qw(Exporter); ### use Exporter 5.57 'import';
77 our %EXPORT_TAGS = ( all => [qw/ adler32_data adler32_data_hex adler32_data_int adler32_file adler32_file_hex adler32_file_int
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Cipher);
99
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Cipher);
99
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Cipher);
99
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Cipher);
99
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Cipher);
99
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Cipher);
99
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Cipher);
99
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Cipher);
99
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Cipher);
99
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Cipher);
99
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Cipher);
99
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Cipher);
99
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Cipher);
99
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Cipher);
99
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Cipher);
99
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Cipher);
99
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Cipher);
99
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Cipher);
99
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Cipher);
99
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Cipher);
99
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Cipher);
99
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Cipher);
99
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Cipher);
99
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Cipher);
99
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Cipher);
99
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 use Carp;
77 $Carp::Internal{(__PACKAGE__)}++;
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( blake2b_160 blake2b_160_hex blake2b_160_b64 blake2b_160_b64u blake2b_160_file blake2b_160_file_hex blake2b_160_file_b64 blake2b_160_file_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( blake2b_256 blake2b_256_hex blake2b_256_b64 blake2b_256_b64u blake2b_256_file blake2b_256_file_hex blake2b_256_file_b64 blake2b_256_file_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( blake2b_384 blake2b_384_hex blake2b_384_b64 blake2b_384_b64u blake2b_384_file blake2b_384_file_hex blake2b_384_file_b64 blake2b_384_file_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( blake2b_512 blake2b_512_hex blake2b_512_b64 blake2b_512_b64u blake2b_512_file blake2b_512_file_hex blake2b_512_file_b64 blake2b_512_file_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( blake2s_128 blake2s_128_hex blake2s_128_b64 blake2s_128_b64u blake2s_128_file blake2s_128_file_hex blake2s_128_file_b64 blake2s_128_file_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( blake2s_160 blake2s_160_hex blake2s_160_b64 blake2s_160_b64u blake2s_160_file blake2s_160_file_hex blake2s_160_file_b64 blake2s_160_file_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( blake2s_224 blake2s_224_hex blake2s_224_b64 blake2s_224_b64u blake2s_224_file blake2s_224_file_hex blake2s_224_file_b64 blake2s_224_file_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( blake2s_256 blake2s_256_hex blake2s_256_b64 blake2s_256_b64u blake2s_256_file blake2s_256_file_hex blake2s_256_file_b64 blake2s_256_file_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( chaes chaes_hex chaes_b64 chaes_b64u chaes_file chaes_file_hex chaes_file_b64 chaes_file_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( keccak224 keccak224_hex keccak224_b64 keccak224_b64u keccak224_file keccak224_file_hex keccak224_file_b64 keccak224_file_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( keccak256 keccak256_hex keccak256_b64 keccak256_b64u keccak256_file keccak256_file_hex keccak256_file_b64 keccak256_file_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( keccak384 keccak384_hex keccak384_b64 keccak384_b64u keccak384_file keccak384_file_hex keccak384_file_b64 keccak384_file_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( keccak512 keccak512_hex keccak512_b64 keccak512_b64u keccak512_file keccak512_file_hex keccak512_file_b64 keccak512_file_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( md2 md2_hex md2_b64 md2_b64u md2_file md2_file_hex md2_file_b64 md2_file_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( md4 md4_hex md4_b64 md4_b64u md4_file md4_file_hex md4_file_b64 md4_file_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( md5 md5_hex md5_b64 md5_b64u md5_file md5_file_hex md5_file_b64 md5_file_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( ripemd128 ripemd128_hex ripemd128_b64 ripemd128_b64u ripemd128_file ripemd128_file_hex ripemd128_file_b64 ripemd128_file_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( ripemd160 ripemd160_hex ripemd160_b64 ripemd160_b64u ripemd160_file ripemd160_file_hex ripemd160_file_b64 ripemd160_file_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( ripemd256 ripemd256_hex ripemd256_b64 ripemd256_b64u ripemd256_file ripemd256_file_hex ripemd256_file_b64 ripemd256_file_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( ripemd320 ripemd320_hex ripemd320_b64 ripemd320_b64u ripemd320_file ripemd320_file_hex ripemd320_file_b64 ripemd320_file_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( sha1 sha1_hex sha1_b64 sha1_b64u sha1_file sha1_file_hex sha1_file_b64 sha1_file_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( sha224 sha224_hex sha224_b64 sha224_b64u sha224_file sha224_file_hex sha224_file_b64 sha224_file_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( sha256 sha256_hex sha256_b64 sha256_b64u sha256_file sha256_file_hex sha256_file_b64 sha256_file_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( sha384 sha384_hex sha384_b64 sha384_b64u sha384_file sha384_file_hex sha384_file_b64 sha384_file_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( sha3_224 sha3_224_hex sha3_224_b64 sha3_224_b64u sha3_224_file sha3_224_file_hex sha3_224_file_b64 sha3_224_file_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( sha3_256 sha3_256_hex sha3_256_b64 sha3_256_b64u sha3_256_file sha3_256_file_hex sha3_256_file_b64 sha3_256_file_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( sha3_384 sha3_384_hex sha3_384_b64 sha3_384_b64u sha3_384_file sha3_384_file_hex sha3_384_file_b64 sha3_384_file_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( sha3_512 sha3_512_hex sha3_512_b64 sha3_512_b64u sha3_512_file sha3_512_file_hex sha3_512_file_b64 sha3_512_file_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( sha512 sha512_hex sha512_b64 sha512_b64u sha512_file sha512_file_hex sha512_file_b64 sha512_file_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( sha512_224 sha512_224_hex sha512_224_b64 sha512_224_b64u sha512_224_file sha512_224_file_hex sha512_224_file_b64 sha512_224_file_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( sha512_256 sha512_256_hex sha512_256_b64 sha512_256_b64u sha512_256_file sha512_256_file_hex sha512_256_file_b64 sha512_256_file_b64u )] );
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 use Carp;
77 $Carp::Internal{(__PACKAGE__)}++;
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( tiger192 tiger192_hex tiger192_b64 tiger192_b64u tiger192_file tiger192_file_hex tiger192_file_b64 tiger192_file_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Digest Exporter);
99 our %EXPORT_TAGS = ( all => [qw( whirlpool whirlpool_hex whirlpool_b64 whirlpool_b64u whirlpool_file whirlpool_file_hex whirlpool_file_b64 whirlpool_file_b64u )] );
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 require Exporter; our @ISA = qw(Exporter); ### use Exporter 5.57 'import';
77 our %EXPORT_TAGS = ( all => [qw( digest_data digest_data_hex digest_data_b64 digest_data_b64u digest_file digest_file_hex digest_file_b64 digest_file_b64u )] );
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 require Exporter; our @ISA = qw(Exporter); ### use Exporter 5.57 'import';
77 our %EXPORT_TAGS = ( all => [qw(pbkdf1 pbkdf2 hkdf hkdf_expand hkdf_extract)] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Mac Exporter);
99 our %EXPORT_TAGS = ( all => [qw( blake2b blake2b_hex blake2b_b64 blake2b_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Mac Exporter);
99 our %EXPORT_TAGS = ( all => [qw( blake2s blake2s_hex blake2s_b64 blake2s_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Mac Exporter);
99 our %EXPORT_TAGS = ( all => [qw( f9 f9_hex f9_b64 f9_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Mac Exporter);
99 our %EXPORT_TAGS = ( all => [qw( hmac hmac_hex hmac_b64 hmac_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Mac Exporter);
99 our %EXPORT_TAGS = ( all => [qw( omac omac_hex omac_b64 omac_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Mac Exporter);
99 our %EXPORT_TAGS = ( all => [qw( pmac pmac_hex pmac_b64 pmac_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Mac Exporter);
99 our %EXPORT_TAGS = ( all => [qw( pelican pelican_hex pelican_b64 pelican_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Mac Exporter);
99 our %EXPORT_TAGS = ( all => [qw( poly1305 poly1305_hex poly1305_b64 poly1305_b64u )] );
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use base qw(Crypt::Mac Exporter);
99 our %EXPORT_TAGS = ( all => [qw( xcbc xcbc_hex xcbc_b64 xcbc_b64u )] );
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 use Carp;
77 $Carp::Internal{(__PACKAGE__)}++;
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 require Exporter; our @ISA = qw(Exporter); ### use Exporter 5.57 'import';
77 use Carp 'croak';
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use Crypt::Cipher;
99
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use Crypt::Cipher;
99
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use Crypt::Cipher;
99
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use Crypt::Cipher;
99
33
44 use strict;
55 use warnings;
6 our $VERSION = '0.076';
6 our $VERSION = '0.077';
77
88 use Crypt::Cipher;
99
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 ### not used
77
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 require Exporter; our @ISA = qw(Exporter); ### use Exporter 5.57 'import';
77 our %EXPORT_TAGS = ( all => [qw( dh_shared_secret )] );
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 require Exporter; our @ISA = qw(Exporter); ### use Exporter 5.57 'import';
77 our %EXPORT_TAGS = ( all => [qw( dsa_encrypt dsa_decrypt dsa_sign_message dsa_verify_message dsa_sign_hash dsa_verify_hash )] );
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 require Exporter; our @ISA = qw(Exporter); ### use Exporter 5.57 'import';
77 our %EXPORT_TAGS = ( all => [qw( ecc_encrypt ecc_decrypt ecc_sign_message ecc_verify_message ecc_sign_hash ecc_verify_hash ecc_shared_secret )] );
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 require Exporter; our @ISA = qw(Exporter); ### use Exporter 5.57 'import';
77 our %EXPORT_TAGS = ( all => [qw( )] );
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 require Exporter; our @ISA = qw(Exporter); ### use Exporter 5.57 'import';
77 our %EXPORT_TAGS = ( all => [qw(rsa_encrypt rsa_decrypt rsa_sign_message rsa_verify_message rsa_sign_hash rsa_verify_hash)] );
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 require Exporter; our @ISA = qw(Exporter); ### use Exporter 5.57 'import';
77 our %EXPORT_TAGS = ( all => [qw( )] );
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 use Carp;
77
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 use base qw(Crypt::PRNG Exporter);
77 our %EXPORT_TAGS = ( all => [qw(random_bytes random_bytes_hex random_bytes_b64 random_bytes_b64u random_string random_string_from rand irand)] );
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 use base qw(Crypt::PRNG Exporter);
77 our %EXPORT_TAGS = ( all => [qw(random_bytes random_bytes_hex random_bytes_b64 random_bytes_b64u random_string random_string_from rand irand)] );
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 use base qw(Crypt::PRNG Exporter);
77 our %EXPORT_TAGS = ( all => [qw(random_bytes random_bytes_hex random_bytes_b64 random_bytes_b64u random_string random_string_from rand irand)] );
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 use base qw(Crypt::PRNG Exporter);
77 our %EXPORT_TAGS = ( all => [qw(random_bytes random_bytes_hex random_bytes_b64 random_bytes_b64u random_string random_string_from rand irand)] );
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 use base qw(Crypt::PRNG Exporter);
77 our %EXPORT_TAGS = ( all => [qw(random_bytes random_bytes_hex random_bytes_b64 random_bytes_b64u random_string random_string_from rand irand)] );
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 require Exporter; our @ISA = qw(Exporter); ### use Exporter 5.57 'import';
77 our %EXPORT_TAGS = ( all => [qw(random_bytes random_bytes_hex random_bytes_b64 random_bytes_b64u random_string random_string_from rand irand)] );
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 use CryptX;
77
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 use CryptX;
77
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 use CryptX;
77
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 use CryptX;
77
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 use CryptX;
77
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 use CryptX;
77
11
22 use strict;
33 use warnings ;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 require XSLoader;
77 XSLoader::load('CryptX', $VERSION);
11
22 use strict;
33 use warnings;
4 our $VERSION = '0.076';
4 our $VERSION = '0.077';
55
66 use CryptX;
77 use Carp;
146146 $x = $_[0];
147147 $y = ref($_[1]) ? $class -> _num($_[1]) : $_[1];
148148 }
149 return $class -> _blsft($x, $y);
149 return $class -> _lsft($x, $y);
150150 },
151151
152152 '>>' => sub {
159159 $x = $class -> _copy($_[0]);
160160 $y = ref($_[1]) ? $_[1] : $class -> _new($_[1]);
161161 }
162 return $class -> _brsft($x, $y);
162 return $class -> _rsft($x, $y);
163163 },
164164
165165 # overload key: num_comparison
308308 '=' => sub { ref($_[0]) -> _copy($_[0]); },
309309
310310 ;
311
312 ### same as _from_base_num() in Math::BigInt::Lib
313 sub _from_base_num {
314 # Convert an array in the given base to a number.
315 my ($class, $in, $base) = @_;
316
317 # Make sure the base is an object and >= 2.
318 $base = $class -> _new($base) unless ref($base);
319 my $two = $class -> _two();
320 croak "base must be >= 2" unless $class -> _acmp($base, $two) >= 0;
321
322 # @$in = map { ref($_) ? $_ : $class -> _new($_) } @$in;
323
324 my $ele = $in -> [0];
325
326 $ele = $class -> _new($ele) unless ref($ele);
327 my $x = $class -> _copy($ele);
328
329 for my $i (1 .. $#$in) {
330 $x = $class -> _mul($x, $base);
331 $ele = $in -> [$i];
332 $ele = $class -> _new($ele) unless ref($ele);
333 $x = $class -> _add($x, $ele);
334 }
335
336 return $x;
337 }
338
339 ### same as _to_base_num() in Math::BigInt::Lib
340 sub _to_base_num {
341 # Convert the number to an array of integers in any base.
342 my ($class, $x, $base) = @_;
343
344 # Make sure the base is an object and >= 2.
345 $base = $class -> _new($base) unless ref($base);
346 my $two = $class -> _two();
347 croak "base must be >= 2" unless $class -> _acmp($base, $two) >= 0;
348
349 my $out = [];
350 my $xcopy = $class -> _copy($x);
351 my $rem;
352
353 # Do all except the last (most significant) element.
354 until ($class -> _acmp($xcopy, $base) < 0) {
355 ($xcopy, $rem) = $class -> _div($xcopy, $base);
356 unshift @$out, $rem;
357 }
358
359 # Do the last (most significant element).
360 unless ($class -> _is_zero($xcopy)) {
361 unshift @$out, $xcopy;
362 }
363
364 # $out is empty if $x is zero.
365 unshift @$out, $class -> _zero() unless @$out;
366
367 return $out;
368 }
311369
312370 ### same as _check() in Math::BigInt::Lib
313371 sub _check {
324382 substr($class ->_str($x), -($n+1), 1);
325383 }
326384
385 ### same as _digitsum() in Math::BigInt::Lib
386 sub _digitsum {
387 my ($class, $x) = @_;
388
389 my $len = $class -> _len($x);
390 my $sum = $class -> _zero();
391 for (my $i = 0 ; $i < $len ; ++$i) {
392 my $digit = $class -> _digit($x, $i);
393 $digit = $class -> _new($digit);
394 $sum = $class -> _add($sum, $digit);
395 }
396
397 return $sum;
398 }
399
327400 ### same as _num() in Math::BigInt::Lib
328401 sub _num {
329402 my ($class, $x) = @_;
330403 0 + $class -> _str($x);
331404 }
332405
333 ### PATCHED _fac() from Math::BigInt::Lib
406 ### PATCHED/OLDER _fac() from Math::BigInt::Lib
334407 sub _fac {
335408 # factorial
336409 my ($class, $x) = @_;
579652 return @y;
580653 }
581654
582 require Scalar::Util;
583
584655 # In scalar context use that lucas(n) = fib(n-1) + fib(n+1).
585656 #
586657 # Remember that _fib() behaves differently in scalar context and list
588659
589660 return $class -> _two() if $n == 0;
590661
591 return $class -> _add(scalar $class -> _fib($n - 1),
592 scalar $class -> _fib($n + 1));
662 return $class -> _add(scalar($class -> _fib($n - 1)),
663 scalar($class -> _fib($n + 1)));
593664 }
594665
595666 ### same as _fib() in Math::BigInt::Lib
554554 &bcos
555555 1.2:10:0.3623577545
556556 2.4:12:-0.737393715541
557 0:10:1
558 0:20:1
559557 1:10:0.5403023059
560558 1:12:0.540302305868
561559
840838 -2:-:-1
841839 -2:+:1
842840 2:-:-1
843 0::1
844 -2::1
845 abc::1
846 2:abc:1
847841
848842 &bsstr
849843 +inf:inf
66
77 BEGIN {
88 plan skip_all => "requires Math::BigFloat 1.999827+" unless eval { require Math::BigFloat && eval($Math::BigFloat::VERSION) >= 1.999827 };
9 plan tests => 2403 # tests in require'd file
9 plan tests => 2391 # tests in require'd file
1010 + 5; # tests in this file
1111 }
1212
1515
1616 BEGIN {
1717 plan skip_all => "requires Math::BigInt 1.9997+" unless eval { require Math::BigInt && eval($Math::BigInt::VERSION) >= 1.9997 };
18 plan tests => 71;
18 plan tests => 70;
1919 }
2020
2121 use Math::BigFloat only => 'LTM';
118118 is ($cl->new('1.2')->bpow('0.3',10), '1.056219968');
119119 is ($cl->new('10')->bpow('0.6',10), '3.981071706');
120120
121 # blog should handle bigint input
122 is (Math::BigFloat::blog(Math::BigInt->new(100),10), 2, "blog(100)");
123
124121 #############################################################################
125122 # some integer results
126123 is ($cl->new(2)->bpow(32)->blog(2), '32', "2 ** 32");
0 use strict;
1 use warnings;
2 use Test::More;
3
4 BEGIN {
5 plan skip_all => "requires Math::BigInt 1.999837+" unless eval { require Math::BigInt && eval($Math::BigInt::VERSION) >= 1.999837 };
6 plan tests => 3;
7 }
8
9 use Math::BigFloat only => 'LTM';
10 use Math::BigInt only => 'LTM';
11
12 my ($x, $y);
13
14 ### https://github.com/DCIT/perl-CryptX/issues/82
15
16 $x = Math::BigFloat->new("0");
17 $y = Math::BigFloat->new("20");
18 $x->bcos($y);
19 is($x, "1.0000000000000000000");
20 $x = Math::BigFloat->new("0");
21 $y = Math::BigFloat->new("20");
22 $x->bcos($y);
23 is($x, "1.0000000000000000000");
24 $x = Math::BigFloat->blog(Math::BigInt->new(100),10);
25 is($x, "2");
26
27 ### unsolved part of https://github.com/DCIT/perl-CryptX/issues/82
28 ## t/mbi_ltm_bigfltpm.t ................ 123/2408 Argument "" isn't numeric in subtraction (-) at /home/jkeenan/testing/v5.36.0/lib/perl5/site_perl/5.36.0/Math/BigFloat.pm line 4651, <DATA> line 330.
29 ## Argument "" isn't numeric in subtraction (-) at /home/jkeenan/testing/v5.36.0/lib/perl5/site_perl/5.36.0/Math/BigFloat.pm line 4651, <DATA> line 331.
30 ## Argument "" isn't numeric in subtraction (-) at /home/jkeenan/testing/v5.36.0/lib/perl5/site_perl/5.36.0/Math/BigFloat.pm line 4651, <DATA> line 332.
31 ## Argument "abc" isn't numeric in subtraction (-) at /home/jkeenan/testing/v5.36.0/lib/perl5/site_perl/5.36.0/Math/BigFloat.pm line 4651, <DATA> line 333.
32 #
33 #&bone
34 #...
35 #-0::1
36 #--2::1
37 #-abc::1
38 #-2:abc:1