crypto - BlockCipher Demo

Description

This demo uses a block cipher to encrypt and decrypt text.

Required Environment

None.

How to Use

None.

Notes

This demo does not display anything on the screen. The only output is debugger output.

Description

The demo uses the AES block cipher and the CTR and CCM encryption modes to encrypt and decrypt text.

CTR Mode is only for encrypting text. In this demo, this mode is for showing that text can be encrypted and then later decrypted to obtain the original text.

CCM encryption mode is for encrypting and validity checking text. In this demo, this mode is for showing that text can be encrypted, then later decrypted and checked for validity to obtain the original text. It also shows that changing the encrypted data by even one bit will cause the validity check to fail.

Go through the processes above, each time using methods one through three as listed in the function reference, to find out which of the methods would be best for your own implementation purposes.

This demo does not handle the fourth method listed in the function reference.

Revision History

2012/01/12
Initial version.

CONFIDENTIAL