The invention relates to a real-time decryption system and method, and in particular, to a method and system utilizing Content Addressable Memory (CAM) for wireless communication.
Cryptography is a basis of information security in communication technologies. For example, in the standard IEEE 802.11, a shared key is provided for two nodes to communicate through encryption and decryption. Therefore memory capacity is essential for key management, although, especially when communicating with numerous nodes, the cost for storing and locating a key grows significantly.
The advantage of the architecture shown in
An embodiment provides a real-time decryption method for wireless communication comprising the following steps. First, a network address table and a decryption key table are provided. The decryption key table comprises a plurality of decryption keys, and the network address table comprises a plurality of network addresses correspondingly. Thereafter, a packet comprising a source address and a ciphertext is received. The source address is then compared with the network addresses. If one network address matches the source address, a decryption key is obtained from a location of the decryption key table according to the network address. The ciphertext is decrypted with the decryption key to generate a plaintext.
Each network address maps to a corresponding decryption key in the decryption key table. The packet is discarded if no match is found. The network address table and the decryption key table are stored in different locations of one memory device, or in different memory devices. The comparison step synchronously compares the source address with all network addresses in the network address table, and the network address table is stored in a Content Addressable Memory (CAM) device.
Further provided is an embodiment of a real-time decryption system receiving a packet comprising a source address and a ciphertext. The real-time decryption system comprises a first memory device, a second memory device, and a decryption module. The first memory device, storing a plurality of network addresses, is capable of comparing the source address with the network addresses and generating a match result. The second memory device storing a plurality of decryption keys is capable of providing a decryption key according to the match result. The decryption module decrypts the ciphertext with the decryption key to generate a plaintext.
The first memory device synchronously outputs match results of each network address. A match result is set to a first bit if matched, and conversely, to a second bit if not matched. The real-time decryption system further comprises a decoder for determining the location of the network address where its match result has the first bit, and obtaining the decryption key in the decryption key table according to the location.
The following detailed description, given by way of example and not intended to limit the invention solely to the embodiments described herein, will best be understood in conjunction with the accompanying drawings, in which:
a shows a conventional data structure of a packet;
b is a block diagram of a conventional memory device storing data;
A detailed description of the present invention is provided in-the following.
The results are delivered to a decoder 204 for location calculation. For example, if the second result is “matched”, then it is the second slot of the memory device 206 where the correct key 216 resides. Since the correct key 216 is obtained therefrom, the decryption module 208 can then decrypt the ciphertext 110 with the key 216 to generate a plaintext.
The cryptographic schemes utilized in the embodiment can be a symmetric cryptography system or asymmetric cryptography system. The memory device 206 can be implemented by Dynamic Read All Memory (DRAM) or Static Read All Memory (SRAM). The decoder 204 and decryption module 208 can be implemented by a central processing unit cooperating with software, or through Application Specific Integrated Circuit (ASIC). The CAM 202 is a market available product provided by vendors such as Net Logic and Altera APEX.
The data structures of the network addresses and keys in the memory are stored separately in two different memory devices (or two separate locations of a memory device). Moreover, only the memory for storing the network addresses is used to perform the comparison with the address of the received packet. Therefore, different to the prior arts, the invention need not read the keys in the memory during the comparison, and then the efficiency is improved. Further, while the network address corresponding to the received packet is not located near the top of the memory for saving the network addresses, the advantageous is clearer for more time for reading the keys during the comparison is saved by the invention.
In addition, the invention could use the character of the CAM, is capable of parallel comparing many data, to store many network addresses in a CAM. Therefore, the invention need to compare the address of the received packet serially with each of the network addresses, but can compare it with the network address simultaneously. Hence, the invention significantly reduces the need of processing time as the conventional serial comparison takes, especially while the corresponding network address is not located near the top of the memory for storing the network addresses.
In summery, as described in above embodiments, the invention amends the way to store the network addresses and the ways in the memory, and optionally use the parallel comparison character of the CAM. Hence, the time and resources consumed during comparison is significantly reduced, and than a wireless communication system capable of real-time decryption, is established.
While the invention has been described by way of example and in terms of the preferred embodiment, it is to be understood that the invention is not limited thereto. To the contrary, it is intended to cover various modifications and similar arrangements (as would be apparent to those skilled in the art) Therefore, the scope of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.
Number | Date | Country | Kind |
---|---|---|---|
93134086 | Sep 2004 | TW | national |