1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
4<head>
5    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6    <meta http-equiv="Content-Style-Type" content="text/css" />
7    <link rel="stylesheet" href="../../css/manpage.css" type="text/css" />
8</head>
9<body>
10
11<h1><CODE>crypto</CODE> - <CODE>BlockCipher</CODE> Demo</h1>
12
13<h2>Description</h2>
14
15<div class="section">
16    <p>
17        This demo uses a block cipher to encrypt and decrypt text.
18    </p>
19</div>
20
21<h2>Required Environment</h2>
22
23<div class="section">
24    <p>None.</p>
25</div>
26
27<h2>How to Use</h2>
28
29<div class="section">
30    <p>None.</p>
31</div>
32
33<h2>Notes</h2>
34
35<div class="section">
36    <p>
37        This demo does not display anything on the screen. The only output is debugger output.
38    </p>
39</div>
40
41<h2>Description</h2>
42
43<div class="section">
44    <p>
45        The demo uses the AES block cipher and the CTR and CCM encryption modes to encrypt and decrypt text.
46    </p>
47    <p>
48        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.
49    </p>
50    <p>
51        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.
52    </p>
53    <p>
54        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.
55    </p>
56    <p>
57        This demo does not handle the fourth method listed in the function reference.
58    </p>
59</div>
60
61<h2>Revision History</h2>
62
63<div class="section">
64    <dl class="history">
65        <dt>2012/01/12</dt>
66        <dd>Initial version.</dd>
67    </dl>
68</div>
69
70
71<hr><p>CONFIDENTIAL</p></body>
72</html>