Compiling Crypto++

picture-3

Has successfully compiled Crypto++ (pfffh, finally 😉 ). I made a very simple code (above), and standard g++ command for compiling did not work, until the library being installed to the library directory.

Here’s how to install the crypto package:

  1. mkdir crypto
  2. mv cryptopp552.zip ./crypto
  3. cd crypto
  4. unzip cryptopp552.zip
  5. make
  6. sudo cp libcryptopp.a /usr/lib/
  7. sudo mkdir /usr/include/cryptopp
  8. sudo cp *.h /usr/include/cryptopp/

Then compile it:

g++ -lcryptopp cryptopptest.cpp

And run it:

./a.out

I decide to do some experiments using Crypto++ for the following reasons:

  1. It supports ECDSA, ECDH, ECIES
  2. It supports both binary and prime curves
  3. The library comes with domain parameters defined by NIST and SECG
  4. Great support for manipulating data
  5. Precomputation is supported
  6. Crypto++ is trying to receive NIST’s certification of ECDSA
Advertisements