Block Cipher

From Crypto++ Wiki
Jump to navigation Jump to search

A block cipher is a deterministic algorithm operating on fixed-length groups of bits called blocks. 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