diff --git a/README.md b/README.md index f5f4099..c98d0bc 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,26 @@ # mcrypt +Mcrypt, and the accompanying libmcrypt, are intended to be replacements for the old Unix crypt, except that they are under the GPL and support an ever-wider range of algorithms and modes. +Unlike most encryption libraries libmcrypt does not have everything (random number generators, hashes, hmac implementation, key exchange, public key encryption etc.). +Libmcrypt only implements an interface to access block and stream encryption algorithms. +It's purpose was to assist in the development of mcrypt by providing a uniform interface to access several different encryption algorithms, so that the main program is independent of the encryption algorithms and the modes used. + +Libmcrypt supports the algorithms: +* BLOWFISH +* TWOFISH +* DES, TripleDES +* 3-WAY +* SAFER-sk64, SAFER-sk128, SAFER+ +* LOKI97 +* GOST +* RC2, RC6 +* MARS +* IDEA +* RIJNDAEL-128 (AES), RIJNDAEL-192, RIJNDAEL-256 +* SERPENT +* CAST-128 (known as CAST5), CAST-256 +* ARCFOUR +* WAKE +Block algorithms can be used in: CBC, ECB, CFB and OFB (8 bit and n bit, where +n is the size of the algorithm's block length). + diff --git a/mcrypt.spec b/mcrypt.spec new file mode 100644 index 0000000..eec5ed0 --- /dev/null +++ b/mcrypt.spec @@ -0,0 +1,84 @@ +Name: mcrypt +Version: 2.6.8 +Release: 1mamba +Summary: A replacement of the old unix crypt +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://mcrypt.sourceforge.net/ +Source: http://downloads.sourceforge.net/project/mcrypt/MCrypt/%{version}/mcrypt-%{version}.tar.gz +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libmcrypt-devel +BuildRequires: libmhash-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Mcrypt, and the accompanying libmcrypt, are intended to be replacements for the old Unix crypt, except that they are under the GPL and support an ever-wider range of algorithms and modes. +Unlike most encryption libraries libmcrypt does not have everything (random number generators, hashes, hmac implementation, key exchange, public key encryption etc.). +Libmcrypt only implements an interface to access block and stream encryption algorithms. +It's purpose was to assist in the development of mcrypt by providing a uniform interface to access several different encryption algorithms, so that the main program is independent of the encryption algorithms and the modes used. + +Libmcrypt supports the algorithms: +* BLOWFISH +* TWOFISH +* DES, TripleDES +* 3-WAY +* SAFER-sk64, SAFER-sk128, SAFER+ +* LOKI97 +* GOST +* RC2, RC6 +* MARS +* IDEA +* RIJNDAEL-128 (AES), RIJNDAEL-192, RIJNDAEL-256 +* SERPENT +* CAST-128 (known as CAST5), CAST-256 +* ARCFOUR +* WAKE +Block algorithms can be used in: CBC, ECB, CFB and OFB (8 bit and n bit, where +n is the size of the algorithm's block length). + +%package devel +Summary: Devel package for libmcrypt +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +Mcrypt, and the accompanying libmcrypt, are intended to be replacements for the old Unix crypt, except that they are under the GPL and support an ever-wider range of algorithms and modes. +Unlike most encryption libraries libmcrypt does not have everything (random number generators, hashes, hmac implementation, key exchange, public key encryption etc.). +Libmcrypt only implements an interface to access block and stream encryption algorithms. +It's purpose was to assist in the development of mcrypt by providing a uniform interface to access several different encryption algorithms, so that the main program is independent of the encryption algorithms and the modes used. + +This package contains static libraries and header files need for development + +%prep +%setup -q -n mcrypt-%{version} + +%build +%configure \ + --enable-shared + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%find_lang %{name} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files -f %{name}.lang +%defattr(-,root,root) +%{_bindir}/mcrypt +%{_bindir}/mdecrypt +%{_mandir}/man1/mcrypt.1* + +%changelog +* Mon Jul 13 2015 Silvan Calarco 2.6.8-1mamba +- package created