Cryptography accelerator input interface data handling

Information

  • Patent Application
  • 20040123120
  • Publication Number
    20040123120
  • Date Filed
    January 23, 2003
    21 years ago
  • Date Published
    June 24, 2004
    20 years ago
Abstract
Methods and apparatus are provided for handling data at a cryptography accelerator input interface. A shared resource is provided at the cryptography accelerator input interface having multiple input ports. The input interface shared resource can be allocated amongst the various input ports based on characteristics and requirements of the various input ports. References to data in the shared resource allow processing and ordering of data in preparation for processing by cryptographic processing cores.
Description


BACKGROUND OF THE INVENTION

[0002] 1. Field of the Invention


[0003] The present application relates to cryptography accelerators. More specifically, the present application relates to methods and apparatus for data handling in cryptography accelerators.


[0004] 2. Description of Related Art


[0005] Conventional cryptography accelerators include a variety of mechanisms for managing the exchange of data with external devices. In many conventional implementations, specialized data handling mechanisms are configured for specific ports. Port buffers are preconfigured based on expected needs and requirements of particular ports and data path buffers are provided for implementation of cryptographic operations.


[0006] Mechanisms for performing cryptographic operations are described in Applied Cryptography, Bruce Schneier, John Wiley & Sons, Inc. (ISBN 0471128457), incorporated by reference in its entirety for all purposes. However, implementation of specialized data handling mechanisms for specific ports and providing buffers throughout a cryptography accelerator causes a variety of inefficiencies including data handling inefficiencies and inflexibility in managing different types of data.


[0007] It is therefore desirable to provide methods and apparatus for improving data handling with respect to some or all of the performance limitations noted above.



SUMMARY OF THE INVENTION

[0008] Methods and apparatus are provided for handling data at a cryptography accelerator input interface. A shared resource is provided at the cryptography accelerator input interface having multiple input ports. The input interface shared resource can be allocated amongst the various input ports based on characteristics and requirements of the various input ports. References to data in the shared resource allow processing and ordering of data in preparation for processing by cryptographic processing cores.


[0009] In one embodiment, a cryptography accelerator is provided. The cryptography accelerator includes a plurality of input ports, a data input unit input controller, and a plurality of cryptographic processing cores. The plurality of input ports on a cryptography accelerator are configured to receive data from an entity external to the cryptography accelerator. The data input unit input controller is coupled to the plurality of input ports. The data input unit input controller is configured to write data blocks from the plurality of input ports into an input buffer and write entries corresponding to the data blocks into a buffer pointer table. The buffer pointer table is configurable to vary the allocation of input buffer space available to each of the plurality of input ports.


[0010] In another embodiment, a method for receiving data in a cryptography accelerator is provided. A plurality of data sequences are received at one of a plurality of input ports. The plurality of data sequences are written into a shared resource. References to the data sequences in the shared resource are provided. The references identify the data sequences as well as the type of the data sequences. It is determined if policy security association information is associated with the plurality of data sequences. The plurality of data sequences are forwarded to cryptographic processing circuitry.


[0011] In another embodiment, a cryptography processor is provided. The cryptography processor includes a plurality of input ports, a shared input buffer, and a plurality of cryptographic processing cores. The plurality of input ports are configured to receive packets from an entity external to the cryptography processor. The shared input buffer is coupled to the plurality of input ports. The shared input buffer is operable to store packets received through the plurality of input ports. The allocation of the shared input buffer is reallocable based on the particular characteristics of the various input ports. The plurality of cryptographic processing cores are coupled to the shared input buffer. The plurality of cryptographic processing cores are configured to receive data associated with the packets and perform cryptographic processing on the data.


[0012] These and other features and advantages of the present invention will be presented in more detail in the following specification of the invention and the accompanying figures, which illustrate by way of example the principles of the invention.







BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The invention may best be understood by reference to the following description taken in conjunction with the accompanying drawings, which are illustrative of specific embodiments of the present invention.


[0014]
FIG. 1 is a diagrammatic representation of a system that can use the techniques of the present invention.


[0015]
FIG. 2 is a diagrammatic representation of a cryptography accelerator containing processing cores and interfaces.


[0016]
FIG. 3 is a diagrammatic representation of a cryptography accelerator having a data interface unit and a data routing unit.


[0017]
FIG. 4 is a diagrammatic representation showing a data input unit.


[0018]
FIG. 5 is a diagrammatic representation showing a pointer buffer list.


[0019]
FIG. 6 is a diagrammatic representation showing a target list.


[0020]
FIG. 7 is a diagrammatic representation showing data handling associated with a policy security association lookup unit.


[0021]
FIG. 8 is a flow process diagram showing packet processing at an input interface.


[0022]
FIG. 9 is a diagrammatic representation showing a data routing unit.


[0023]
FIG. 10 is a flow process diagram showing packet processing at an output interface.







DETAILED DESCRIPTION OF SPECIFIC EMBODIMENTS

[0024] The present application relates to implementing a cryptography accelerator. More specifically, the present application relates to methods and apparatus for providing a cryptography accelerator capable of performing secure session operations.


[0025] Reference will now be made in detail to some specific embodiments of the invention including the best modes contemplated by the inventors for carrying out the invention. Examples of these specific embodiments are illustrated in the accompanying drawings. While the invention is described in conjunction with these specific embodiments, it will be understood that it is not intended to limit the invention to the described embodiments. On the contrary, it is intended to cover alternatives, modifications, and equivalents as may be included within the spirit and scope of the invention as defined by the appended claims.


[0026] For example, the techniques of the present invention will be described in the context of a multiple port cryptography accelerator with multiple cores for performing particular cryptographic operations. However, it should be noted that the techniques of the present invention can be applied to a variety of different chip architectures that perform authentication and encryption operations in general. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. The present invention may be practiced without some or all of these specific details. In other instances, well known process operations have not been described in detail in order not to unnecessarily obscure the present invention.


[0027]
FIG. 1 is a diagrammatic representation of one example of a processing system 100 in accordance with an embodiment of the present invention. As shown in FIG. 1, the present invention may be implemented in a stand-alone cryptography accelerator 102 or as part of the system 100. Any logic, mechanism, or device operable to perform encryption, decryption, and/or authentication operations is referred to herein as a cryptography accelerator. In the described embodiment, the cryptography accelerator 102 is connected to a bus 104 such as a PCI bus via a standard on-chip PCI interface. The processing system 100 includes a processing unit 106 and a system memory unit 108. In typical implementations, the cryptography accelerator 102 includes multiple ports used for communication with external devices such as the processing unit 106 and system memory unit 108. The processing unit 106 and the system memory unit 108 are coupled to the system bus 104 via a bridge and memory controller 110.


[0028] Although the processing unit 106 may be the central processing unit (CPU) of a system 100, it does not necessarily have to be the CPU. It can be one of a variety of processors in a multiprocessor system. In one example, a LAN interface 114 is provided to couple the processing system 100 to a local area network (LAN) to allow packet receipt and transmission. Similarly, a Wide Area Network (WAN) interface 112 can also be provided to connect the processing system to a WAN (not shown) such as the Internet. The WAN interface manages in-bound and out-bound packets to allow automatic decryption and authentication processing.


[0029] According to various embodiments, the cryptography accelerator 102 is an application specific integrated circuit (ASIC) coupled to the processor 106. The cryptography accelerator 102 can also be a programmable logic device (PLD), field programmable gate array (FPGA), or other device coupled to the processor 106. According to specific embodiments, the cryptography accelerator 102 is implemented either on a card connected to the bus 104 or as a standalone chip integrated in the system 100.


[0030] In other embodiments, the cryptography accelerator 102 itself is integrated into the processing core of a CPU of system 100, such as that available from Tensilica Corporation of Santa Clara, Calif. or ARC Cores of San Jose, Calif. In another embodiment, techniques and mechanisms of the present invention are integrated into a CPU such as a CPU available from Intel Corporation of San Jose, Calif. or AMD Corporation of Sunnyvale, Calif. By implementing cryptography accelerator functionality entirely on the processor 106, a separate card or chip in the system 100 is not needed. In still other embodiments, the processing system 100 including the cryptography accelerator 102 is implemented as a system on a chip (SOC). The network interfaces, memory, processing core, and cryptography accelerator functionality are provided on a single integrated circuit device.


[0031] The cryptography accelerator 102 is capable of implementing various network security standards, such as Secure Sockets Layer/Transport Layer Security (SSL/TLS), which provide application-transparent encryption and authentication services for network traffic. Network security standards such as SSL/TLS provide authentication through the use of hash algorithms and encryption through the use of encryption algorithms. Two commonly used hash algorithms are MD5 and the Secure Hash algorithm (SHA-1). Other hash algorithms such as MD4 and MD2 are also available. Two commonly used encryption algorithms are DES and RC4. Other encryption algorithms such as triple DES are also available. Authentication and encryption algorithms are described in Applied Cryptography, Bruce Schneier, John Wiley & Sons, Inc. (ISBN 0471128457), incorporated by reference in its entirety for all purposes.


[0032]
FIG. 2 is a diagrammatic representation of one example of a cryptography accelerator 201. The cryptography accelerator 201 includes an input interface 203 connected to a host such as an external processor. According to various embodiments, the interface 203 receives information from the host for processing and sends information to the host when processing is completed. In typical implementations, the input interface includes multiple ports 231, 233, 235, and 237. Each of the different ports may be used to provide a different interface to an external resource such as a host or network card. In one example, port 231 is a streaming interface port configured to allow the input of data streams for processing in the cryptographic processing cores. Port 233 is a Gigabit MAC (media access control) interface configured to receive individual packets.


[0033] According to various embodiments, the Gigabit MAC provides packet processing such as collision detection, back pressure, and error detection for received data. In one example, port 235 is a memory mapped port allowing the cryptography accelerator to obtain data from memory associated with the host. Each of the different ports 231, 233, 235, and 237 may include buffers of various sizes. In one example, the buffer size is determined based on the expected packet size. For example, much larger buffers would have to be provided to hold incoming traffic for ports supporting 9 k byte packets than for ports that support only 2 k byte packets. In conventional implementations, a system designer would estimate optimal buffer sizes for the various ports. However, because each port maintains its own buffer, inefficiencies in buffer allocation can occur. Some port buffers may be underutilized while other ports receiving a large amount of traffic may not have sufficient buffer space.


[0034] In typical implementations, small buffers are also provided in data paths associated with cryptographic processing cores 217 and 209. Buffers 261 and 241 are typically required to store data for various cryptography operations along various data paths. Having a large number of separate, fixed sized buffers leads to inefficiencies in both chip design, cost, and resource allocation. Consequently, the techniques of the present invention provide mechanisms for efficiently allocating a shared memory resource that can be optimized for different ports as well as for data paths associated with cryptographic operations.


[0035] The shared resource allows the decoupling of the interface from the various cryptographic processing cores. In one example, shared buffers are provided in both input interface 203 and output interface 293. The shared resource can be allocated and reallocated based on the particular specifications of the input and output ports.


[0036]
FIG. 3 is a diagrammatic representation of one example of a cryptography accelerator having a shared resource. The cryptography accelerator 301 includes a data input unit 303 having multiple input ports 311, 313, 315, and 317. In one example, the data input unit 303 takes data in a round robin fashion from each of the four input ports. The data input unit 303 can then allocate space in a shared resource, here a shared input buffer, for each of the received data blocks. Information associated with the data, such as data length, packet type, start of packet information, end of packet information, and ordering information is also maintained based on the associated input port identified.


[0037] Using information associated with the data, the data input unit 305 can then determine how the data should be processed. In one example, the data may require no processing at all, and may be forwarded to a bypass line 371 to allow output of the data from the cryptography accelerator 301 with substantially no cryptographic operations performed on the data. In typical implementations, the cryptography accelerator 102 includes multiple ports used for communication with external devices such as the processing unit 106 and system memory unit 108.


[0038] In a similar manner, the data input unit 303 may determine that the data from one of the input ports should be processed using one of the cryptographic processing core data paths 331, 333, 335, 337, 341, 343, 345, and 347. Any mechanism shared by various input ports to buffer and distribute data to various cryptographic processing data paths is referred to herein as a data input unit. According to various embodiments, the data input unit 303 determines whether to forward data to cryptographic processing core blocks 339 or 349 based on load information.


[0039] The data input unit 303 is configurable to provide buffering for all the different data has in the device. As noted above, in typical implementations, individual buffers were provided not only for the various ports in a cryptography accelerator, but also for the various data paths in a device. According to various embodiments, a single shared resource is provided in the data input unit to provide for buffering the various ports in the cryptographic accelerator and the various data paths in the cryptography accelerator.


[0040] In some embodiments, the cryptography accelerator 301 also includes a data routing unit 305 having multiple output ports 351, 353, 355, and 357. Any mechanism shared by output ports to buffer cryptographically processed data is referred to herein as a data routing unit. According to various embodiments, the data routing unit manages the ordering and delay of the data targeted at the various output ports. In typical embodiments, individual buffers were also associated with each of the various output ports. However, the techniques of the present invention provide a shared resource for the various output ports. According to various embodiments, the various ports are not configured with fixed size buffers and each of the ports can be modified to accommodate different types of traffic based on user needs. In one example, a particular output port may be configured to handle large size packets by allocating more buffer space in the data routing unit shared resource to that particular port.


[0041]
FIG. 4 is a diagrammatic representation showing more detail on one example of a data input unit 401. Data input unit 401 includes input ports 411, 413, 415, and 417. In one embodiment, the input controller 421 takes data from each of the four input ports in round robin fashion. The input controller 421 determines if any input buffer space is available for a particular port. In one example, input controller 421 determines if buffer space is available in input buffer 441 by examining buffer pointer table 451. Buffer pointer table 451 includes a list of pointers each associated with a block of memory in input buffer 441. In one instance, each pointer in the buffer pointer table 451 references a 128 byte chunk of memory in the input buffer 441. Consequently, it should be noted that the input buffer 441 does not have to be physically divided amongst the input ports in order to dynamically allocate buffer space for each of the various input ports. Although physically allocating the input buffer 441 to the various input ports is one possible mechanism for providing an allocable shared resource, the techniques of the present invention also provide for allocation of pointers to the input buffer 441.


[0042] According to various embodiments, blocks of pointers in the buffer pointer table 451 are allocated to the various input ports. The input controller 421 determines if any pointer associated with the input port is available. If a pointer associated with the input port is free or available, the data in the input port is forwarded to input buffer 441 and the pointer is assigned to the data block. In one implementation, an entry in the buffer pointer table 451 lists the free pointers available and their associated input ports. In another implementation, each entry is associated with a flag indicating if the pointer is being used and what port the pointer is associated with. If no pointers associated with the input port or available, the input controller does not hold data from the input port, as all buffer space allocated to the input port has been consumed. Any mechanism for tracking data blocks in a shared resource where the data blocks are destined for cryptographic processing is referred to herein as a buffer pointer table. Any mechanism for allocating the pointers in the buffer pointer table to various data blocks is referred to herein as an input controller 421.


[0043] When the input controller 421 has assigned data pointers from the buffer pointer table 451, a load distribution unit 461 can select data from the buffer pointer table entries. The order for all data on a particular port is maintained since the load distribution unit can be configured to select data in order from a single buffer pointer table 451. According to various embodiments, load distribution unit 461 can select data referenced by the buffer pointer table 451 using a variety of mechanisms. In one example, the load distribution unit 461 selects data from ports that have consumed all allocated buffer space. The load distribution unit can also select data entries if the data entries are entire packets. In another example, load distribution unit can select data in round-robin fashion. The load distribution unit also be configured to identify data associated with cryptographic processing.


[0044] As will be appreciated, a data destined for cryptographic processing is often processed based on information associated with the data block. In one example, a data block is processed after obtaining security association information associated with the data block. The security association information includes keys such as session keys, initialization vectors, and the particular algorithms needed to process the data. Security association data is often determined using combinations of source and destination addresses and source and destination port numbers. For example, a packet with a source of A and a destination of B may be determined to need triple DES processing, MD5 authentication, and a session key available to the cryptographic processing core from a particular memory address. The load distribution unit 461 identifies information needed for cryptographic processing of the data and provides a pointer to the information. In many instances, the pointer is a pointer to the header of a packet stored in the input buffer 441.


[0045] According to various embodiments, the load distribution unit 461 passes information to target list 471. In one example, target list 471 includes multiple lists, each list associated with a particular data path. One list may be associated with bypass data that should be passed through the cryptography accelerator substantially without processing. Other lists may be associated with public key operation data paths. In one example, a modular exponentiation unit list is provided for performing modulus operations on data in the input buffer 441. Still other lists include pointers to data blocks in buffer memory 441 requiring processing by one of the cryptographic accelerator course. The data pointer lists are associated with a header pointer list that identifies how to derive information such as security association information for processing the data corresponding to the pointers in the data pointer list. The output controller 481 is responsible for forwarding data associated with the pointers in the target list to the various data paths. Typically, data associated with each of the lists in the target list 471 is pulled in round-robin fashion. In one example data associated with each list gets the same amount of bandwidth out of the input buffer 441.


[0046] The input buffer allows storage of information for use in various cryptographic operations as well as the allocation of memory to various ports as provided by the buffer pointer table 451. FIG. 5 is a diagrammatic representation, of a buffer pointer table 501. According to various embodiments, the buffer pointer table 501 includes a free pointers entry 511 listing the available free pointers associated with free blocks in the input buffer memory. In one example, blocks of pointers are allocated to each of the various ports in the data input unit. For example, buffer pointer entry 521 and 523 are associated with port one. Buffer pointer entry 531 is associated with port two. Buffer pointer entries 541, 543, 545, 547, and 549 are associated with port three. Buffer pointer entries 551 and 553 are associated with port 4. As long as free pointers are available for a particular port, an input controller can continue to pull data from the particular port, store the data in input buffer memory, and assign an available pointer associated with the port to the data block. However, when no free pointers are available for a particular port, the input controller no longer pulls data from that port. The port is blocked until space is made available in the input buffer as represented by the buffer pointer table.


[0047] It should be noted that much of the load distribution processing and the data path decision processing is performed using pointers to blocks of memory in the input buffer. In a cryptography processing context, this provides important benefits including the capability to process data and associated security association information along data paths where the data paths can be implemented substantially without data path buffers.


[0048]
FIG. 6 is a diagrammatic representation of a target list. According to various embodiments, target list 601 includes multiple lists associated with various data paths. In one example, target list 601 includes a bypass list 643 associated with data to be passed through the cryptography accelerator without cryptographic processing. A modular exponentiation buffer list 611 is provided for public key processing of data. According to various embodiments, merge data unit buffer list 621 and merge data unit buffer list 623 are provided for data to be forwarded to cryptographic processing cores. Merge data unit buffer list 621 and 623 are associated with pointers to data that will be merged with security association information before cryptographic processing is performed.


[0049] Consequently, merge data unit buffer lists 621 and 623 are linked to policy security association lookup unit header list 631. When a pointer is provided to merge data unit buffer list 621, a pointer is also provided to policy security association lookup unit header list 631. The merge data unit buffer list 621 pointer allows later combination of data with security association information extracted from a policy security association lookup unit. When the data is combined with the security association information, the data can be processed using one of a number of cryptographic processing cores.


[0050]
FIG. 7 is a diagrammatic representation of data passed to a merge data unit. According to various embodiments, the output controller 781 associated with the data input unit 701 provides data 711 and 713 to a merge data unit 793. However, before the data 711 and header 713 can be processed using one of a number of cryptographic processing cores, the data typically is combined with security association information. According to various embodiments, the security association information is derived by a policy security association lookup unit. In one embodiment, the policy security association lookup unit reads information from memory and prepends information to data 711 and header 713. The location in memory of the security association data structure can be specified directly or by identifiers passed by the output controller 781. In one example the output controller 781 passes a security association handle 715 to the policy security association lookup unit 791.


[0051] In one example, the policy security association lookup unit 791 uses the information in the security association handle 715 to identify security association information. The information identified can be used for both inbound and outbound packets to allow the packets to be classified into flows. In one instance, the security association handle 715 includes up to 2 k of the header of the associated packet. The policy security association lookup unit then issues a security association update 717 to modify data such as sequence numbers associated with a flow.


[0052] The policy security association lookup unit 791 acquires security association data 721 and passes the security association data 725 to a merge data unit 793. The merge data unit 793 combines the security association data 723 with the data 711 and header 713. It should be noted that the policy security association lookup unit processing may vary depending on whether the packet is an inbound packet or an outbound packet. For an outbound packet, the policy security association lookup unit may also be responsible for determining header information such as outer IP header information. For an inbound packet, the outer IP header information is included in the data 711 and header information 713. Various types of error checking can also be performed by the policy security association lookup unit 791 to determine that the flow referenced by a security association handle 715 is a valid one.


[0053] It should be noted that each merge data unit 793 can then pass the combined data to one of multiple cryptography processing core data paths. In one example, two merge data units are provided in a cryptography accelerator having a data input unit and eight processing cores. The two merge data units are also associated with a single policy security association lookup unit. Each merge data is coupled to four cryptographic cores. In some examples, each merge data unit would select one of the four cryptographic processing cores to handle data based on load.


[0054]
FIG. 8 is a flow process diagram showing data handling in the cryptography accelerator. At 801, data is received from one of any number of input ports associated with the cryptography accelerator. As noted above, each port may be configured to handle different types of traffic such as streaming, packet, large packet, or memory mapped data. At 803, a free buffer is pointer table is used to track the packet and the packet type. It should be noted that data is typically pulled in round-robin fashion from one of the input ports as long as free pointers are available in the buffer pointer table. According to various embodiments, blocks of pointers are allocated to each of the input ports. In this manner, the system designer can allocate input buffer memory associated with the pointers to each of the various input ports based on the needs and requirements of each port or the corresponding traffic. At 805, the load distributor schedules the data sequence for processing on a data path having the lowest load.


[0055] According to various embodiments, the load distributor schedules data sequences by scheduling the pointers in the buffer pointer table. At 811, the load distributor provides a pointer to a policy security association lookup unit list. It should be noted that some data sequences may require no cryptographic core processing and may instead be provided to a bypass list or a public key processing list. At 813, the output controller pulls data from the input buffer along with any associated policy security association lookup unit header information. The output controller pulls data from the input buffer based on pointers provided in a target list. At 815, the policy security association lookup is performed using information such as header information associated with the data sequence. At 821, a merge data unit combines the data sequence with the results of a policy security association lookup. At 823, input buffer memory and any associated free pointers are returned.


[0056]
FIG. 9 is a diagrammatic representation of a data routing unit 901. As noted above, the data input unit provides the input interface for a cryptography accelerator while the data routing unit provides the output interface for the cryptography accelerator. According to various embodiments, the data routing unit manages the ordering of cryptographically processed data for the various egress output ports. The input controller 921 is coupled to a variety of data paths such as bypass, public key processing, and cryptographic core processing data paths. According to various embodiments, data blocks in a data sequence may be received out of order by an input controller as several data paths may be associated with cryptographic processing cores. For example, blocks 1, 2, and 4 may be received through a first data path and blocks 3 and 5 may be received through a second data path. The data routing unit is configured to order the data blocks and provide them to the appropriate output port.


[0057] According to various embodiments, the input controller 921 writes data blocks to buffer memory and data block pointers to a buffer pointer table 951 in the order that the input controller receives them. In one example, pointers to blocks 1, 2, and 4 may be placed into a first port buffer list while pointers to blocks 3 and 5 may be placed in a second port buffer list. A routing unit 961 recognizes the ordering and pulls pointers in order and places the pointers in the target list 971. In many implementations, the target list 971 includes lists of pointers each associated with the various output ports. In one example, lists of pointers are provided in target list 971. In one example, four lists of pointers correspond to output ports 911, 913, 915, and 917. Each pointer in the target list 971 corresponds to a block in output buffer 991. It should be noted that in the data input unit, the pointers in the buffer pointer table are allocable to the various input ports based on the particular needs and requirements of the input ports.


[0058] In the data routing unit, however, the pointers in the target list 971 are allocable to the various output ports based upon the needs and requirements of the various output ports. In one example, output port 911 may be configured to support large packets. Consequently, the large number of output buffer memory manager 991 would be allocated to output port 911. In one example, the routing unit 961 would pull a first block pointer associated with a flow and place the pointer into a buffer list associated with a Gigabit MAC output port. The routing unit 961 would not pull another block from that particular flow until the second block pointer is pulled. In this manner, the routing unit 961 can pull data blocks in order from the buffer pointer table even if the blocks of data came from different data paths in the cryptographic accelerator.


[0059] It should be noted that although the blocks on a particular data path will typically be in order, the blocks received from multiple data paths by the input controller will not necessarily be in order. That is, blocks 3 and 5 in a sequence may be received along a data path before blocks 1, 2 and 4 are received from another data path. The routing unit 961 pulls pointers to data blocks in order from the buffer pointer table and places them in an output port list in the target list 971. The output controller 981 uses the pointers in the target list 971 to identify data blocks in the output buffer 991 to forward to the output ports.


[0060]
FIG. 10 is a flow process diagram showing data handling at an output interface associated with the cryptography accelerator. At 1001, input controller receives data from a data path. At 1003, data is written to the output buffer 991 and the pointer is written to the buffer pointer table 951. The routing unit 961 pulls data blocks in order from the buffer pointer table 951 at 1005. At 1011, the routing block forwards the pointers to the target buffer list upon determining that pointers are available in the target list. At 1013, the output controller may immediately forward data associated with the pointers in the target list or may wait until a packet size is reached before forwarding data out through a particular port.


[0061] While the invention has been particularly shown and described with reference to specific embodiments thereof, it will be understood by those skilled in the art that changes in the form and details of the disclosed embodiments may be made without departing from the spirit or scope of the invention. It is therefore intended that the invention be interpreted to include all variations and equivalents that fall within the true spirit and scope of the present invention.


Claims
  • 1. A cryptography accelerator, comprising: a plurality of input ports on a cryptography accelerator configured to receive data from an entity external to the cryptography accelerator; a data input unit input controller coupled to the plurality of input ports, the data input unit input controller configured to write data blocks from the plurality of input ports into an input buffer and write entries corresponding to the data blocks into a buffer pointer table, wherein the buffer pointer table is configurable to vary the allocation of input buffer space available to each of the plurality of input ports; a plurality of cryptographic processing cores.
  • 2. The cryptography accelerator of claim 1, further comprising a data input unit load distributor operable to select entries from the buffer pointer table.
  • 3. The cryptography accelerator of claim 2, further comprising a data input unit output controller configured to identify buffer pointer table entries from the data input unit load distributor, pull data blocks corresponding to the entries from the input buffer, and forward the data blocks to a plurality of data paths associated with cryptographic processing cores.
  • 4. The cryptography accelerator of claim 3, further comprising a policy security association lookup unit coupled to the data input unit output controller.
  • 5. The cryptography accelerator of claim 3, further comprising a merge data unit coupled to the merge data unit and the data input unit output controller.
  • 6. The cryptography accelerator of claim 3, wherein the data input unit output controller is further configured to forward security association information on a first data path and the associated data block on a second data path.
  • 7. The cryptography accelerator of claim 3, wherein the output controller is further configured to set an entry in the buffer pointer table as available after the associated data block has been forwarded to a merge data unit.
  • 8. A method for receiving data in a cryptography accelerator, comprising: receiving a plurality of data sequences at one of a plurality of input ports; writing the plurality of data sequences into a shared resource; providing references to the data sequences in the shared resource, wherein the references identify the data sequences as well as the type of the data sequences; determining if policy security association information is associated with the plurality of data sequences; and forwarding the plurality of data sequences to cryptographic processing circuitry.
  • 9. The method of claim 8, wherein cryptographic processing circuitry comprises a plurality of cryptographic processing cores.
  • 10. The method of claim 8, wherein the cryptographic processing cores are grouped into a plurality of cryptographic processing blocks.
  • 11. The method of claim 8, wherein each cryptographic processing block comprises four cryptographic processing cores.
  • 12. The method of claim 8, wherein the plurality of input ports comprise a streaming interface port;
  • 13. The method of claim 12, wherein the plurality of input ports further comprise a memory mapped port;
  • 14. The method of claim 8, further comprising performing policy security association lookups using the references to the data sequences in the shared resource;
  • 15. The method of claim 8, further comprising merging the data sequences with the results from the policy security association lookups;
  • 16. The method of claim 8, wherein the shared resource is a buffer shared by the plurality of input ports.
  • 17. An apparatus for receiving data in an integrated circuit, comprising: means for receiving a plurality of data sequences at one of a plurality of input ports; means for writing the plurality of data sequences into a shared resource; means for providing references to the data sequences in the shared resource, wherein the references identify the data sequences as well as the type of the data sequences; means for determining if policy security association information is associated with the plurality of data sequences; and means for forwarding the plurality of data sequences to cryptographic processing circuitry.
  • 18. The apparatus of claim 17, wherein cryptographic processing circuitry comprises a plurality of cryptographic processing cores.
  • 19. The apparatus of claim 17, wherein the cryptographic processing cores are grouped into a plurality of cryptographic processing blocks.
  • 20. The apparatus of claim 17, wherein each cryptographic processing block comprises four cryptographic processing cores.
  • 21. The apparatus of claim 17, wherein the plurality of input ports comprise a streaming interface port;
  • 22. The apparatus of claim 21, wherein the plurality of input ports further comprise a memory mapped port.
  • 23. The apparatus of claim 17, further comprising performing policy security association lookups using the references to the data sequences in the shared resource.
  • 24. A cryptography processor, comprising: a plurality of input ports configured to receive packets from an entity external to the cryptography processor; a shared input buffer coupled to the plurality of input ports, the shared input buffer operable to store packets received through the plurality of input ports, wherein allocation of the shared input buffer is reallocable based on the particular characteristics of the various input ports; a plurality of cryptographic processing cores coupled to the shared input buffer, the plurality of cryptographic processing cores configured to receive data associated with the packets and perform cryptographic processing on the data.
  • 25. The cryptography processing of claim 3, wherein the external entity is a host CPU.
  • 26. The cryptography processor of claim 3, wherein the cryptographic processing cores are organized as two separate cryptographic processing blocks.
  • 27. The cryptography processor of claim 3, further comprising a policy security association lookup unit configured to receive header information associated with the packet and perform a policy security association lookup.
CROSS REFERENCE TO RELATED APPLICATIONS

[0001] This application claims priority under U.S.C. 119(e) from U.S. Provisional Application No. 60/434,456, filed Dec. 18, 2002, entitled Methods And Apparatus For Cryptography Accelerator Data Handling, by Mark Buer and Donald P. Matthews, (Attorney Docket No. BRCMP027P), the entirety of which is incorporated by reference for all purposes. The present application is also related to concurrently filed U.S. patent application Ser. No. ______ entitled Methods And Apparatus For Ordering Data In A Cryptography Accelerator, by Tim Paaske and Mark Buer (Attorney Docket No. BRCMP026), U.S. patent application Ser. No. ______, entitled Cryptography Accelerator Interface Decoupling From Cryptography Processing Cores, by Mark Buer and Don Matthews (Attorney Docket No. BRCMP029), and U.S. patent application Ser. No. ______, entitled Cryptography Accelerator Data Routing Unit, by Mark Buer and Don Matthews (Attorney Docket No. BRCMP028), the entireties of which are incorporated by reference for all purposes.

Provisional Applications (1)
Number Date Country
60434456 Dec 2002 US