commit sha1collisiondetection for openSUSE:Factory
Hello community, here is the log from the commit of package sha1collisiondetection for openSUSE:Factory checked in at 2018-02-05 10:50:10 Comparing /work/SRC/openSUSE:Factory/sha1collisiondetection (Old) and /work/SRC/openSUSE:Factory/.sha1collisiondetection.new (New) Package is "sha1collisiondetection" Mon Feb 5 10:50:10 2018 rev:5 rq:571492 version:1.0.3 Changes: --- /work/SRC/openSUSE:Factory/sha1collisiondetection/sha1collisiondetection.changes 2017-08-16 16:15:25.259004535 +0200 +++ /work/SRC/openSUSE:Factory/.sha1collisiondetection.new/sha1collisiondetection.changes 2018-02-05 10:50:11.756211915 +0100 @@ -1,0 +2,12 @@ +Wed Jan 31 17:48:45 CET 2018 - r...@suse.de + +- cleaner solution for the endian detection issue: + include the proper header file + +--- +Wed Jan 31 17:33:48 CET 2018 - r...@suse.de + +- add sha1collisiondetection-endian_detection.patch + fix detection of endianness at compile time + +--- New: sha1collisiondetection-endian_detection.patch Other differences: -- ++ sha1collisiondetection.spec ++ --- /var/tmp/diff_new_pack.au494Q/_old 2018-02-05 10:50:12.276187573 +0100 +++ /var/tmp/diff_new_pack.au494Q/_new 2018-02-05 10:50:12.276187573 +0100 @@ -1,7 +1,7 @@ # # spec file for package sha1collisiondetection # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2017 Andreas Stieger# # All modifications and additions to the file contributed by third parties @@ -26,6 +26,7 @@ Url:https://github.com/cr-marcstevens/sha1collisiondetection Source: https://github.com/cr-marcstevens/sha1collisiondetection/archive/stable-v%{version}.tar.gz#/%{name}-%{version}.tar.gz Patch0: sha1collisiondetection-1.0.3-io-fixes.patch +Patch1: sha1collisiondetection-endian_detection.patch BuildRequires: libtool BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -59,6 +60,7 @@ %prep %setup -q -n %{name}-stable-v%{version} %patch0 -p1 +%patch1 %build export TARGETCFLAGS="%{optflags}" ++ sha1collisiondetection-endian_detection.patch ++ --- lib/sha1.c +++ lib/sha1.c @@ -9,6 +9,7 @@ #include #include #include +#include #include "sha1.h" #include "ubc_check.h"
commit sha1collisiondetection for openSUSE:Factory
Hello community, here is the log from the commit of package sha1collisiondetection for openSUSE:Factory checked in at 2017-08-16 16:15:13 Comparing /work/SRC/openSUSE:Factory/sha1collisiondetection (Old) and /work/SRC/openSUSE:Factory/.sha1collisiondetection.new (New) Package is "sha1collisiondetection" Wed Aug 16 16:15:13 2017 rev:4 rq:516844 version:1.0.3 Changes: --- /work/SRC/openSUSE:Factory/sha1collisiondetection/sha1collisiondetection.changes 2017-05-24 16:51:02.756822358 +0200 +++ /work/SRC/openSUSE:Factory/.sha1collisiondetection.new/sha1collisiondetection.changes 2017-08-16 16:15:25.259004535 +0200 @@ -1,0 +2,7 @@ +Fri Aug 4 15:18:33 CEST 2017 - ti...@suse.de + +- Fix include header path to /usr/include/sha1dc/sha1.h as supposed + by upstream installation +- Remove conflicts with libmd-devel, as we changed the header path + +--- Other differences: -- ++ sha1collisiondetection.spec ++ --- /var/tmp/diff_new_pack.VRzpew/_old 2017-08-16 16:15:26.310856889 +0200 +++ /var/tmp/diff_new_pack.VRzpew/_new 2017-08-16 16:15:26.322855204 +0200 @@ -49,8 +49,6 @@ Summary:Development files for Group: Development/Libraries/C and C++ Requires: libsha1detectcoll1 = %{version} -# both libs offer /usr/include/sha1.h -Conflicts: libmd-devel %description -n libsha1detectcoll-devel This library was designed as near drop-in replacements for other sha1sum @@ -70,12 +68,11 @@ mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_libdir} %make_install \ - INCLUDEDIR=%{buildroot}%{_includedir} \ - BINDIR=%{buildroot}%{_bindir} \ + PREFIX=%{buildroot}%{_prefix} \ LIBDIR=%{buildroot}%{_libdir} find %{buildroot} -type f -name "*.la" -delete -print find %{buildroot} -type f -name "*.a" -delete -print -chmod -x %{buildroot}%{_includedir}/sha1.h +chmod -x %{buildroot}%{_includedir}/sha1dc/sha1.h %check make %{?_smp_mflags} test @@ -96,7 +93,7 @@ %files -n libsha1detectcoll-devel %defattr(-,root,root) %doc LICENSE.txt README.md -%{_includedir}/sha1.h +%{_includedir}/sha1dc %{_libdir}/libsha1detectcoll.so %changelog
commit sha1collisiondetection for openSUSE:Factory
Hello community, here is the log from the commit of package sha1collisiondetection for openSUSE:Factory checked in at 2017-05-24 16:50:19 Comparing /work/SRC/openSUSE:Factory/sha1collisiondetection (Old) and /work/SRC/openSUSE:Factory/.sha1collisiondetection.new (New) Package is "sha1collisiondetection" Wed May 24 16:50:19 2017 rev:3 rq:497349 version:1.0.3 Changes: --- /work/SRC/openSUSE:Factory/sha1collisiondetection/sha1collisiondetection.changes 2017-04-13 10:45:54.146364659 +0200 +++ /work/SRC/openSUSE:Factory/.sha1collisiondetection.new/sha1collisiondetection.changes 2017-05-24 16:51:02.756822358 +0200 @@ -1,0 +2,6 @@ +Mon May 22 16:20:43 UTC 2017 - astie...@suse.com + +- better printing of errors, and allow hashing stdin + add sha1collisiondetection-1.0.3-io-fixes.patch + +--- New: sha1collisiondetection-1.0.3-io-fixes.patch Other differences: -- ++ sha1collisiondetection.spec ++ --- /var/tmp/diff_new_pack.6Zqa93/_old 2017-05-24 16:51:03.232755363 +0200 +++ /var/tmp/diff_new_pack.6Zqa93/_new 2017-05-24 16:51:03.236754801 +0200 @@ -25,6 +25,7 @@ Group: Productivity/Security Url:https://github.com/cr-marcstevens/sha1collisiondetection Source: https://github.com/cr-marcstevens/sha1collisiondetection/archive/stable-v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Patch0: sha1collisiondetection-1.0.3-io-fixes.patch BuildRequires: libtool BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -59,6 +60,7 @@ %prep %setup -q -n %{name}-stable-v%{version} +%patch0 -p1 %build export TARGETCFLAGS="%{optflags}" ++ sha1collisiondetection-1.0.3-io-fixes.patch ++ From: Andreas StiegerDate: Mon, 8 May 2017 21:51:28 +0200 Subject: some IO improvements References: https://github.com/cr-marcstevens/sha1collisiondetection/pull/28 --- src/main.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) Index: sha1collisiondetection-stable-v1.0.3/src/main.c === --- sha1collisiondetection-stable-v1.0.3.orig/src/main.c2017-05-22 18:17:51.339889238 +0200 +++ sha1collisiondetection-stable-v1.0.3/src/main.c 2017-05-22 18:18:14.471988044 +0200 @@ -8,6 +8,7 @@ #include #include #include +#include #include #include "sha1.h" @@ -23,7 +24,7 @@ int main(int argc, char** argv) if (argc < 2) { - printf("Usage: %s \n", basename(argv[0])); + fprintf(stderr, "Usage: %s \n", basename(argv[0])); return 1; } @@ -37,10 +38,14 @@ int main(int argc, char** argv) SHA1DCSetDetectReducedRoundCollision(, 1); } - fd = fopen(argv[i], "rb"); + if(!strcmp(argv[i],"-")) { + fd = stdin; + } else { + fd = fopen(argv[i], "rb"); + } if (fd == NULL) { - printf("cannot open file: %s\n", argv[i]); + fprintf(stderr, "cannot open file: %s: %s\n", argv[i], strerror(errno)); return 1; } @@ -53,12 +58,12 @@ int main(int argc, char** argv) } if (ferror(fd)) { - printf("error while reading file: %s\n", argv[i]); + fprintf(stderr, "error while reading file: %s: %s\n", argv[i], strerror(errno)); return 1; } if (!feof(fd)) { - printf("not end of file?: %s\n",argv[i]); + fprintf(stderr, "not end of file?: %s: %s\n", argv[i], strerror(errno)); return 1; } Index: sha1collisiondetection-stable-v1.0.3/README.md === --- sha1collisiondetection-stable-v1.0.3.orig/README.md 2017-05-22 18:17:51.339889238 +0200 +++ sha1collisiondetection-stable-v1.0.3/README.md 2017-05-22 18:17:54.539902741 +0200 @@ -51,6 +51,7 @@ Examples: ``` bin/sha1dcsum test/sha1_reducedsha_coll.bin test/shattered-1.pdf bin/sha1dcsum_partialcoll test/sha1reducedsha_coll.bin test/shattered-1.pdf +pipe_data | bin/sha1dcsum - ``` ## Library usage
commit sha1collisiondetection for openSUSE:Factory
Hello community, here is the log from the commit of package sha1collisiondetection for openSUSE:Factory checked in at 2017-04-13 10:45:44 Comparing /work/SRC/openSUSE:Factory/sha1collisiondetection (Old) and /work/SRC/openSUSE:Factory/.sha1collisiondetection.new (New) Package is "sha1collisiondetection" Thu Apr 13 10:45:44 2017 rev:2 rq:487549 version:1.0.3 Changes: --- /work/SRC/openSUSE:Factory/sha1collisiondetection/sha1collisiondetection.changes 2017-03-24 02:22:04.680469716 +0100 +++ /work/SRC/openSUSE:Factory/.sha1collisiondetection.new/sha1collisiondetection.changes 2017-04-13 10:45:54.146364659 +0200 @@ -1,0 +2,9 @@ +Mon Apr 10 13:29:43 UTC 2017 - astie...@suse.com + +- update to 1.0.3: + * SIMD code removed + * performance improvements +- package library +- conflicts with libmd-devel + +--- Old: _service _servicedata sha1collisiondetection-20170228.ec0ddf3.tar.xz New: sha1collisiondetection-1.0.3.tar.gz Other differences: -- ++ sha1collisiondetection.spec ++ --- /var/tmp/diff_new_pack.Q3rVZz/_old 2017-04-13 10:45:55.826127110 +0200 +++ /var/tmp/diff_new_pack.Q3rVZz/_new 2017-04-13 10:45:55.830126545 +0200 @@ -18,14 +18,13 @@ Name: sha1collisiondetection -Version:20170228.ec0ddf3 +Version:1.0.3 Release:0 -Summary:Command line tool to detect SHA-1 collision in a file +Summary:Detection of SHA-1 collisions License:MIT Group: Productivity/Security Url:https://github.com/cr-marcstevens/sha1collisiondetection -Source: %{name}-%{version}.tar.xz -BuildRequires: fdupes +Source: https://github.com/cr-marcstevens/sha1collisiondetection/archive/stable-v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: libtool BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -35,27 +34,67 @@ will detect cryptanalytic collision attacks against SHA-1 present in each file. It is very fast and takes less than twice the amount of time as regular SHA-1. +%package -n libsha1detectcoll1 +Summary:Library that can detect SHA-1 collisions +Group: System/Libraries + +%description -n libsha1detectcoll1 +This library was designed as near drop-in replacements for other sha1sum +implementations. It will compute the SHA-1 hash of any given file and additionally +will detect cryptanalytic collision attacks against SHA-1 present in each file. +It is very fast and takes less than twice the amount of time as regular SHA-1. + +%package -n libsha1detectcoll-devel +Summary:Development files for +Group: Development/Libraries/C and C++ +Requires: libsha1detectcoll1 = %{version} +# both libs offer /usr/include/sha1.h +Conflicts: libmd-devel + +%description -n libsha1detectcoll-devel +This library was designed as near drop-in replacements for other sha1sum +implementations. It will compute the SHA-1 hash of any given file and additionally +will detect cryptanalytic collision attacks against SHA-1 present in each file. +It is very fast and takes less than twice the amount of time as regular SHA-1. + %prep -%setup -q +%setup -q -n %{name}-stable-v%{version} %build +export TARGETCFLAGS="%{optflags}" make %{?_smp_mflags} PREFIX=%{_prefix} %install mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_libdir} -make install \ +%make_install \ + INCLUDEDIR=%{buildroot}%{_includedir} \ BINDIR=%{buildroot}%{_bindir} \ LIBDIR=%{buildroot}%{_libdir} find %{buildroot} -type f -name "*.la" -delete -print -%fdupes %{buildroot}%{_bindir} +find %{buildroot} -type f -name "*.a" -delete -print +chmod -x %{buildroot}%{_includedir}/sha1.h %check make %{?_smp_mflags} test +%post -n libsha1detectcoll1 -p /sbin/ldconfig +%postun -n libsha1detectcoll1 -p /sbin/ldconfig + %files %defattr(-,root,root) %doc LICENSE.txt README.md %{_bindir}/* +%files -n libsha1detectcoll1 +%defattr(-,root,root) +%doc LICENSE.txt README.md +%{_libdir}/libsha1detectcoll.so.* + +%files -n libsha1detectcoll-devel +%defattr(-,root,root) +%doc LICENSE.txt README.md +%{_includedir}/sha1.h +%{_libdir}/libsha1detectcoll.so + %changelog