debian/0000755000000000000000000000000012234303624007165 5ustar debian/libscrypt1.dirs0000644000000000000000000000001012161651626012142 0ustar usr/lib debian/libscrypt0.install0000644000000000000000000000002212165336310012643 0ustar usr/lib/lib*.so.* debian/copyright0000644000000000000000000000754212202434216011125 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: libscrypt Source: https://github.com/technion/libscrypt Files: * Copyright: 2013 Joshua Small License: BSD-2-Clause License: BSD-2-Clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: modp_b64.* Copyright: 2005, 2006, 2007 Nick Galbreath -- nickg [at] modp [dot] com License: BSD-3-Clause License: BSD-3-Clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . Neither the name of the modp.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: debian/* Copyright: 2013 Micah Anderson License: GPL-3+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". debian/libscrypt-dev.dirs0000644000000000000000000000002412161651626012642 0ustar usr/lib usr/include debian/source/0000755000000000000000000000000012161651626010474 5ustar debian/source/format0000644000000000000000000000001412161651626011702 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000131512234303624011037 0ustar libscrypt (1-2ubuntu2) trusty; urgency=low * debian/patches/big-endian.patch: Fix compilation on big-endian arches. -- Adam Conrad Wed, 30 Oct 2013 16:26:03 -0600 libscrypt (1-2ubuntu1) trusty; urgency=low * debian/patches/math-linking.patch: fix linking with -lm for crypto-mcf. -- Mathieu Trudel-Lapierre Tue, 29 Oct 2013 21:49:27 -0700 libscrypt (1-2) unstable; urgency=low * Add missing BSD-3-clause license to debian/copyright -- Micah Anderson Tue, 13 Aug 2013 09:42:28 -0400 libscrypt (1-1) unstable; urgency=low * Initial release (Closes: #713913) -- Micah Anderson Sun, 23 Jun 2013 15:59:17 -0400 debian/compat0000644000000000000000000000000212161652127010367 0ustar 9 debian/rules0000755000000000000000000000027412165275776010273 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. export DH_VERBOSE=1 %: dh $@ override_dh_auto_install: $(MAKE) DESTDIR=debian/tmp PREFIX=/usr install debian/shlibs.local0000644000000000000000000000007512161651626011476 0ustar liblibscrypt 0.1 libscrypt (>> 0.1-0), libscrypt (<< 0.1-99) debian/control0000644000000000000000000000272012234110452010564 0ustar Source: libscrypt Priority: extra Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Micah Anderson Build-Depends: debhelper (>= 9) Standards-Version: 3.9.4 Section: libs Homepage: http://www.lolware.net/libscrypt.html Vcs-Git: git://git.debian.org/collab-maint/libscrypt.git Vcs-Browser: http://git.debian.org/?p=collab-maint/libscrypt.git;a=summary Package: libscrypt-dev Section: libdevel Architecture: any Depends: libscrypt0 (= ${binary:Version}), ${misc:Depends} Description: scrypt shared library - development files The scrypt algorithm is a password-based key derivation function designed to require large amounts of memory. This proof-of-work scheme is intended to make it costly to perform large-scale hardware attacks. . This package contains a shared library implementing the scrypt algorithm, based on the original implementation with a number of harnesses and simplified interfaces. Package: libscrypt0 Section: libs Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: scrypt shared library The scrypt algorithm is a password-based key derivation function designed to require large amounts of memory. This proof-of-work scheme is intended to make it costly to perform large-scale hardware attacks. . This package contains a shared library implementing the scrypt algorithm, based on the original implementation with a number of harnesses and simplified interfaces. debian/libscrypt-dev.install0000644000000000000000000000005512165336311013346 0ustar usr/include/* usr/lib/lib*.a usr/lib/lib*.so debian/watch0000644000000000000000000000032312165267541010226 0ustar # Compulsory line, this is a version 3 file version=3 # Uncomment to examine a Webpage # http://www.lolware.net/libscrypt.html http://www.lolware.net/libscrypt-stable(.*?).tar.gz debian/docs0000644000000000000000000000001212161651626010040 0ustar README.md debian/patches/0000755000000000000000000000000012234303715010615 5ustar debian/patches/fix_makefile0000644000000000000000000000215112165276057013175 0ustar Index: libscrypt-1/Makefile =================================================================== --- libscrypt-1.orig/Makefile 2013-07-04 09:31:54.000000000 -0400 +++ libscrypt-1/Makefile 2013-07-04 09:44:12.744610549 -0400 @@ -1,3 +1,9 @@ +PREFIX = /usr/local +LIBDIR = $(PREFIX)/lib +INCLUDEDIR = $(PREFIX)/include +MAKE_DIR = install -d +INSTALL_DATA = install -m 0644 + CC=gcc CFLAGS=-O2 -Wall -g -D_FORTIFY_SOURCE=2 -fstack-protector -fPIC all: reference @@ -26,7 +32,8 @@ valgrind ./reference install: library - install -m 0644 libscrypt.a $(DESTDIR)/usr/local/lib - install -m 0644 libscrypt.so.0 $(DESTDIR)/usr/local/lib - ln -s -f $(DESTDIR)/usr/local/lib/libscrypt.so.0 $(DESTDIR)/usr/local/lib/libscrypt.so - install -m 0644 libscrypt.h $(DESTDIR)/usr/local/include + $(MAKE_DIR) $(DESTDIR) $(DESTDIR)$(PREFIX) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(INCLUDEDIR) + $(INSTALL_DATA) libscrypt.a $(DESTDIR)$(LIBDIR) + $(INSTALL_DATA) libscrypt.so.0 $(DESTDIR)$(LIBDIR) + ln -s -f $(DESTDIR)$(LIBDIR)/libscrypt.so.0 $(DESTDIR)$(LIBDIR)/libscrypt.so + $(INSTALL_DATA) libscrypt.h $(DESTDIR)$(INCLUDEDIR) debian/patches/math-linking.patch0000644000000000000000000000142712234111376014224 0ustar From: Mathieu Trudel-Lapierre Subject: Explicitly link against math earlier. It's only needed by crypto-mcf; but might as well do the linking when building the library itself rather that just for the tests. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: b/Makefile =================================================================== --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ OBJS= crypto_scrypt-nosse.o sha256.o cry library: $(OBJS) - $(CC) -shared -Wl,-soname,libscrypt.so.0 -Wl,--version-script=libscrypt.version -o libscrypt.so.0 -lc $(OBJS) + $(CC) -shared -Wl,-soname,libscrypt.so.0 -Wl,--version-script=libscrypt.version -o libscrypt.so.0 -lc $(OBJS) -lm ar rcs libscrypt.a $(OBJS) reference: library main.o debian/patches/big-endian.patch0000644000000000000000000000115312234303715013633 0ustar Description: Fix compilation on big-endian arches. Author: Aurelien Jarno Bug-Debian: http://bugs.debian.org/728254 --- libscrypt-1.orig/modp_b64.c +++ libscrypt-1/modp_b64.c @@ -45,10 +45,14 @@ #include "modp_b64.h" -/* if on motoral, sun, ibm; uncomment this */ -/* #define WORDS_BIGENDIAN 1 */ -/* else for Intel, Amd; uncomment this */ -/* #undef WORDS_BIGENDIAN */ +#include +#if __BYTE_ORDER == __BIG_ENDIAN +# define WORDS_BIGENDIAN 1 +#elif __BYTE_ORDER == __LITTLE_ENDIAN +# undef WORDS_BIGENDIAN +#else +#error "Unknown endianess" +#endif #include "modp_b64_data.h" debian/patches/series0000644000000000000000000000006112234303634012027 0ustar fix_makefile math-linking.patch big-endian.patch