![]() CEG
499/699:
|
|
| 03/29/01 |
A cryptographic algorithm, also known as cipher, transforms a
"plain" (e.g., human readable) text pt and outputs cipher
text ct as the output so that it is possible to re-generate the pt
from the ct through a companion decryption algorithm. Ciphers use keys
together with plain text as the input to produce cipher text. It is the
key that provides the security of a modern cipher, not the details of the
algorithm.
Note that we said "for example, human readable" and not "that is, human readable" as an explanation for the word "plain" in plain text.
The phrase "computationally infeasible" is used frequently in cryptography but is rarely defined. The general consensus on its meaning is as follows. As you know, the time complexity, TC, of an algorithm is a function of its "input length", n. For example, the time complexity of the bubble sort algorithm is O(n^2). If the time complexity of an algorithm A is a function that grows faster than any polynomial, we consider A to be computationally infeasible. A similar meaning with respect to memory (and other) resources required is included in the meaning of the phrase. It is important to note the following. Just because no one has yet discovered an algorithm to compute something does not make it infeasible. On the other hand if it is mathematically proven that a certain computation is (Turing-) impossible to compute, it is infeasible.
On a practical level, we should understand the phrase to imply any computation that requires extremely long time even on the fastest (parallel, cluster, etc) computer systems. Extremely long here is in the class of several (zillion?) years.
The nature of all hash functions is that there must exist multiple input sequences that map to same fixed-length hash. The inverse is a mathematical relation, not a mathematical function. But, a good hash functions have the following properties: It is hard to find two strings that would produce the same hash value. A slight change in an input string causes the hash value to change drastically. E.g., if one bit is flipped in the input string, half of the bits in the hash value will flip as a result.
One-way hash functions are also known as message digests (MD), fingerprints, or compression functions. The most popular one-way hash algorithms are MD4 and MD5 (both producing a 128-bit hash value), and SHA, also known as SHA1 (producing a 160-bit hash value).
The most popular symmetric-key system is the DES, short for Data Encryption Standard (ANSI X.3.92). DES encrypts data in 64-bit blocks using a 56-bit key. The algorithm transforms the input in a series of steps into a 64-bit output. Being a symmetric key algorithm, the same key, and the same steps are used to decrypt.
IDEA (International Data Encryption Algorithm) is a block cipher which uses a 128-bit length key to encrypt successive 64-bit blocks of plain text. The procedure is quite complicated using subkeys generated from the key to carry out a series of modular arithmetic and XOR operations on segments of the 64-bit plaintext block. The encryption scheme uses a total of fifty-two 16-bit subkeys.
Blowfish is a symmetric block cipher that can be used as a drop-in replacement for DES or IDEA. It takes a variable-length key, from 32 bits to 448 bits, making it ideal for both domestic and exportable use. Blowfish is unpatented and license-free, and is available free for all uses.
Public-key systems, such as Pretty Good Privacy (PGP), are becoming popular for transmitting information via the Internet. They are extremely secure and relatively simple to use. You of course need to know the recipient's public key to encrypt a message. A global registry of public keys is needed, which is one of the promises of the new LDAP technology.
The most well-known of the public-key encryption algorithms is RSA, named after its designers Rivest, Shamir, and Adelman. The algorithm is based on the fact that there is no efficient way to factor very large numbers into their primes. RSA allows both the public and private key to be used for encryption. If a message is encrypted with someone's private key, it can only be decrypted with the corresponding public key. This feature can be used to generate digital signatures, as follows:
In real-world implementations, public keys are rarely used to encrypt actual messages because public-key cryptography is very slow, about 1000 times slower that conventional cryptography. Instead, public-key cryptography is used to distribute symmetric keys, which are then used to encrypt and decrypt actual messages, as follows:
The public key-based secure communication protocol
between Alice and Bob described above is vulnerable to a man-in-the-middle
attack. Let's assume that Mallory, a cracker, not only can listen to the traffic
between Alice and Bob, but also can modify, delete, and substitute Alice's and
Bob's messages, as well as introduce new ones.
Mallory can impersonate Alice when talking to Bob and impersonate Bob when talking to Alice. Here is how the attack goes:
A package containing a person's name (and possibly some other information such as an E-mail address and company name) and his public key and signed by a trusted party is called a digital certificate (or digital ID). An independent third party that everyone trusts, whose responsibility is to issue certificates, is called a Certification Authority (CA). A digital certificate is a means of binding the details about an individual or organization to a public key. A digital certificate serves two purposes. First, it provides a cryptographic key that allows another party to encrypt information for the certificate's owner. Second, it provides a measure of proof that the holder of the certificate is who they claim to be - because otherwise, they will not be able to decrypt any information that was encrypted using the key in the certificate.
The recipient of an encrypted message uses the CA's public key to decode the digital certificate attached to the message, verifies it as issued by the CA and then obtains the sender's public key and identification information held within the certificate. With this information, the recipient can send an encrypted reply.
The most widely used standard for digital certificates is X.509, which defines the following structure for public-key certificates:
You can obtain a personal certificate from companies like VeriSign www.verisign.com or Thawte www.thawte.com.
the Public Key of the subject.
None.
| 03/29/01 01:58:52 PM |
| Open Content Copyright © 2000 pmateti@cs.wright.edu |