gmp
library provides support for big
integers and many number-theoretics functions, which are needed for
the implementation of most cryptographic primitives.
Before proceeding with the instructions below to install
gmp
, check if it's already installed on your machine:
% ls /lib/libgmp* /usr/lib/libgmp* /usr/share/lib/libgmp* /usr/local/lib/libgmp* /usr/local/share/lib/libgmp*
If you get a match, gmp
is already installed on your
machine, so you can move on to install
dmalloc
.
Otherwise, install gmp
as follows.
gmp
library from ftp://ftp.gnu.org/gnu/gmp/gmp-4.1.4.tar.gz.
gmp
as follows:
% gzip -dc gmp-4.1.4.tar.gz | tar xf - % cd gmp-4.1.g.tar.gz % ./configure ... % gmake ... % % gmake check ... %
First, check if the dmalloc
library is already installed
on your machine:
% ls /lib/libdmalloc* /usr/lib/libdmalloc* /usr/share/lib/libdmalloc* /usr/local/lib/libdmalloc* /usr/local/share/lib/libdmalloc*
If you get a match, dmalloc
is already installed on your
machine, so you can move on to install
dcrypt
.
Otherwise, install gmp
as follows.
dmalloc
from http://dmalloc.com/releases/dmalloc-5.3.0.tgz.
dmalloc
as follows.
% gzip -dc dmalloc-5.3.0.tgz | tar xf - % cd dmalloc-5.3.0 % ./configure ... % gmake ... %
dcrypt
, the simple crypto
library that we are providing you for the lab assignments.
dcrypt
from http://www.scs.cs.nyu.edu/css/src/libdcrypt-0.3.tar.gz.
dcrypt
as follows.
% gzip -dc libdcrypt-0.3.tar.gz | tar xf - % cd libdcrypt-0.3 % ./configure --with-dmalloc checking for a BSD-compatible install... /usr/bin/install -c ... config.status: creating Makefile config.status: creating config.h config.status: executing default-1 commands % gmake gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -I/usr/local/include -g -O2 -ansi -Wall -Wsign-compare -Wchar-subscripts -Werror -c dcconf.c ... gcc -g -O2 -ansi -Wall -Wsign-compare -Wchar-subscripts -Werror -o tst tst.o ./ libdcrypt.a -L/usr/local/lib -lgmp -ldmalloc -Wl,-rpath,/usr/local/lib -Wl,-rpat h,/usr/local/lib % % gmake check ... %