Block Cipher

From Crypto++ Wiki
Jump to: navigation, search

Crypto++ includes the following Block Ciphers:

Usage

For ECB and CBC mode, data must be processed in multiples of the block size.

Alternatively, the mode object can be wrapped StreamTransformationFilter for use as a Filter object. StreamTransformationFilter will take care of buffering data into blocks as required.

Sample Programs

BlockCipher.zip - Exercises Block Ciphers in Crypto++ - 8.0 kB

g++ command line to build the sample :

g++ -O2  SymmetricCipher.cpp -I/usr/include/cryptopp -L/usr/lib -lcryptopp  -o SymmetricCipher