Computer System Security
Lab Assignments---Installing the Libraries

This page describes how to install the libraries used in the Computer System Security class. These libraries are already installed on the class machines, so you will only need to follow these instructions if you want to do the assignments on other machines.

GNU MP

You must have the GNU Multiple Precision arithmetic library installed on you machine. The 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.

Dmalloc

You should also install the dmalloc library, which helps you keep track of the memory you allocate.

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.

Libdcrypt

Finally, you should install dcrypt, the simple crypto library that we are providing you for the lab assignments.