|Previous||Table of Contents||Next|
Sender and Receiver
Suppose a sender wants to send a message to a receiver. Moreover, this sender wants to send the message securely: She wants to make sure an eavesdropper cannot read the message.
Messages and Encryption
A message is plaintext (sometimes called cleartext). The process of disguising a message in such a way as to hide its substance is encryption. An encrypted message is ciphertext. The process of turning ciphertext back into plaintext is decryption. This is all shown in Figure 1.1.
(If you want to follow the ISO 7498-2 standard, use the terms encipher and decipher. It seems that some cultures find the terms encrypt and decrypt offensive, as they refer to dead bodies.)
The art and science of keeping messages secure is cryptography, and it is practiced by cryptographers. Cryptanalysts are practitioners of cryptanalysis, the art and science of breaking ciphertext; that is, seeing through the disguise. The branch of mathematics encompassing both cryptography and cryptanalysis is cryptology and its practitioners are cryptologists. Modern cryptologists are generally trained in theoretical mathematicsthey have to be.
Figure 1.1 Encryption and Decryption.
Plaintext is denoted by M, for message, or P, for plaintext. It can be a stream of bits, a text file, a bitmap, a stream of digitized voice, a digital video image...whatever. As far as a computer is concerned, M is simply binary data. (After this chapter, this book concerns itself with binary data and computer cryptography.) The plaintext can be intended for either transmission or storage. In any case, M is the message to be encrypted.
Ciphertext is denoted by C. It is also binary data: sometimes the same size as M, sometimes larger. (By combining encryption with compression, C may be smaller than M. However, encryption does not accomplish this.) The encryption function E, operates on M to produce C. Or, in mathematical notation:
In the reverse process, the decryption function D operates on C to produce M:
Since the whole point of encrypting and then decrypting a message is to recover the original plaintext, the following identity must hold true:
Authentication, Integrity, and Nonrepudiation
In addition to providing confidentiality, cryptography is often asked to do other jobs:
These are vital requirements for social interaction on computers, and are analogous to face-to-face interactions. That someone is who he says he is...that someones credentialswhether a drivers license, a medical degree, or a passportare valid...that a document purporting to come from a person actually came from that person.... These are the things that authentication, integrity, and nonrepudiation provide.
Algorithms and Keys
A cryptographic algorithm, also called a cipher, is the mathematical function used for encryption and decryption. (Generally, there are two related functions: one for encryption and the other for decryption.)
If the security of an algorithm is based on keeping the way that algorithm works a secret, it is a restricted algorithm. Restricted algorithms have historical interest, but are woefully inadequate by todays standards. A large or changing group of users cannot use them, because every time a user leaves the group everyone else must switch to a different algorithm. If someone accidentally reveals the secret, everyone must change their algorithm.
Even more damning, restricted algorithms allow no quality control or standardization. Every group of users must have their own unique algorithm. Such a group cant use off-the-shelf hardware or software products; an eavesdropper can buy the same product and learn the algorithm. They have to write their own algorithms and implementations. If no one in the group is a good cryptographer, then they wont know if they have a secure algorithm.
Despite these major drawbacks, restricted algorithms are enormously popular for low-security applications. Users either dont realize or dont care about the security problems inherent in their system.
Modern cryptography solves this problem with a key, denoted by K. This key might be any one of a large number of values. The range of possible values of the key is called the keyspace. Both the encryption and decryption operations use this key (i.e., they are dependent on the key and this fact is denoted by the k subscript), so the functions now become:
Those functions have the property that (see Figure 1.2):
Some algorithms use a different encryption key and decryption key (see Figure 1.3). That is, the encryption key, K1, is different from the corresponding decryption key, K2. In this case:
All of the security in these algorithms is based in the key (or keys); none is based in the details of the algorithm. This means that the algorithm can be published and analyzed. Products using the algorithm can be mass-produced. It doesnt matter if an eavesdropper knows your algorithm; if she doesnt know your particular key, she cant read your messages.
Figure 1.2 Encryption and decryption with a key.
Figure 1.3 Encryption and decryption with two different keys.
A cryptosystem is an algorithm, plus all possible plaintexts, ciphertexts, and keys.
There are two general types of key-based algorithms: symmetric and public-key. Symmetric algorithms, sometimes called conventional algorithms, are algorithms where the encryption key can be calculated from the decryption key and vice versa. In most symmetric algorithms, the encryption key and the decryption key are the same. These algorithms, also called secret-key algorithms, single-key algorithms, or one-key algorithms, require that the sender and receiver agree on a key before they can communicate securely. The security of a symmetric algorithm rests in the key; divulging the key means that anyone could encrypt and decrypt messages. As long as the communication needs to remain secret, the key must remain secret.
Encryption and decryption with a symmetric algorithm are denoted by:
|Previous||Table of Contents||Next|