# # spec file for package perl-Crypt-DES_EDE3 # # Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define cpan_name Crypt-DES_EDE3 Name: perl-Crypt-DES_EDE3 Version: 0.30.0 Release: 0 # 0.03 -> normalize -> 0.30.0 %define cpan_version 0.03 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Triple-DES EDE encryption/decryption URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/T/TI/TIMLEGGE/%{cpan_name}-%{cpan_version}.tar.gz Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Crypt::DES) Requires: perl(Crypt::DES) Provides: perl(Crypt::DES_EDE3) = %{version} %undefine __perllib_provides %{perl_requires} %description _Crypt::DES_EDE3_ implements DES-EDE3 encryption. This is triple-DES encryption where an encrypt operation is encrypt-decrypt-encrypt, and decrypt is decrypt-encrypt-decrypt. This implementation uses _Crypt::DES_ to do its dirty DES work, and simply provides a wrapper around that module: setting up the individual DES ciphers, initializing the keys, and performing the encryption/decryption steps. DES-EDE3 encryption requires a key size of 24 bytes. You're probably best off not using this module directly, as the _encrypt_ and _decrypt_ methods expect 8-octet blocks. You might want to use the module in conjunction with _Crypt::CBC_, for example. This would be DES-EDE3-CBC, or triple-DES in outer CBC mode. %prep %autosetup -n %{cpan_name}-%{cpan_version} %build perl Makefile.PL INSTALLDIRS=vendor %make_build %check make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %doc Changes README %license LICENSE %changelog