Secure cryptographic processor arrangement

Abstract: A secure processor arrangement for a communications secure kernel of a secure processor system. This processor arrangement provides protection of plain text data and suitable isolation of data necessary to support single processor (1) architecture. A red memory subsystem (2,4) stores plain text data and a black memory subsystem (3,5) stores cypher text data. In order to prevent mishandling of plain text data, the single processor (1) is allowed to directly read and to write red memory (4), but the single processor (1) is only permitted to directly read from the black memory (5).

Description: Background of the Invention The present invention pertains to a secure communications system and more particularly to a processor architecture having a single control element which provides control of data transfer between cypher text data memory (black) and plain text data memory (red). Modern day communications systems are controlled by central processing units (CPU). These CPUs or processors control the flow of data within the system. Secure processor arrangements have previously included separate processors, one for each kind of data (red and black). A red processor worked with the red data memory and a black processor worked with the black data memory. When data is to be exchanged, for encrypting or decrypting, an elaborate data transfer was required. The data transfer was a series of messages exchanged between the red and black processors. The data was sent to the encrypt/decrypt function and did not pass through the processors. As a result the red processor handles only red (unencrypted or plain text messages) data and the black processor handles only black data (encrypted or cypher text messages). The two processors required to handle data under the previous system were an implementation of the two man security rule. In the two processor system, a failure in either processor would not compromise security. That is, secure data could not be compromised, if only one of the processors were found to be compromised. Further, since two processors require two bus structures, there are more places where security failures may occur. An article in the proceedings of the Carnahan Conference on Crime Countermeasures, April 6-8, 1977, Lexington, US, pages 203-207, J. McLaughin: "Hardware approach to computer security", describes a hardware means for file encryption and external exit control mechanisms and does not include key management or kernal security concepts. This article discloses a secure processor arrangement comprising a first memory means storing plain text data, a second memory means storing cypher text data, a first processor working with the first memory, a second processor working with the second memory and a cryptographic means connected to the first and second memory means for passing therebetween data and crypting and decrypting data as necessary. IBM Technical Disclosure Bulletin, vol. 12, no. 2, July 1969, New York US, page 257, L.E. Handloff: "Storage protect System" describes a storage protection arrangement which does not add to the physical amount of data stored and does not address key management or kernal security concepts. U.S. Patent No. 4,847,902 relates to a computer system for executing a set of instructions including at least one encrypted instruction. U.S. Patent 4,352,952 relates to a data security module for encrypting and decrypting computer data. Accordingly, it is an object of the present invention to provide single controlling processor for a secure red/black memory system which provides equivalent assurances to the two man security rule while minimizing the amount of circuitry and the number of places which are susceptible to security failure. Summary of the Invention In accordance with the present invention there is provided a secure processor arrangement as defined in claim 1 Since the processor is enabled for read access only for reading the cypher text data from the second memory means, the present invention prevents storing any plain text data in the second memory means. Brief Description of the Drawings Figure 1 is a block diagram depicting the principles of operation of the present invention. Figure 2 is a more detailed block diagram of secure processor arrangement of the present invention. Description of the Preferred Embodiment Referring to Figure 1, a block diagram of the single processor secure architecture is shown. Figure 1 is a block diagram embodying the principles of operation of the present invention. Processor 1 is connected to direct memory access (DMA) units 2 and 3. DMAs 2 and 3 are connected to crypto unit 6. DMA 2 is connected to red memory unit 4. DMA 3 is connected to black memory unit 5. DMA unit 2 and red memory 4 comprise the red memory subsystem (shown in dashed lines). Similarly, DMA unit 3 and black memory 5 comprise the black memory subsystem (shown in dashed lines). Processor 1 is connected to red memory 4. Processor 1 may both read and write red memory 4. Processor 1 is also connected to black memory 5. Processor 1 may only read from black memory 5. It is to be noted that processor 1 may not read red data from red memory 4 and write this data, inadvertently or otherwise, into black memory 5. Since red data is plain text, security would be compromised, if it were stored into black memory 5 which contains only cypher text. By so constraining processor 1, security of red data is maintained. In addition, a single control processor handles the data transfer. The single processor eliminates the extensive bussing and message transfer required by multiple processors. The single processor arrangement also eliminates the need for extensive circuitry and the physical space associated with the circuitry. Normally, data which is to be output is moved from the red memory 4 to the black memory 5. Data which is to be input to the system (not shown) is transferred from the black memory 5 to the red memory 4. For the outputting of data, plain text data which is stored in red memory 4 must be encrypted and stored in black memory 5 for output to another system. Since processor 1 cannot directly read data from red memory 4 and write this data into black memory 5, intermediate steps are used to achieve the data transfer. Processor 1 determines where the data resides in red memory 5 and the length of the data, assuming the data is in contiguous block form. Processor 1 then instructs DMA unit 2 to read data from red memory 4 and gives DMA 2 the starting address and the length of the data. Next the plain text data from red memory 4 is encrypted by crypto unit 6. The encrypted data is now cypher text data and may be stored into black memory 5. DMA unit 3 receives instructions from processor 1 that the encrypted data from crypto unit 6 is to be stored in black memory 5. Processor 1 transmits the starting address of the data and the length of the encrypted data, assuming the data is in a contiguous block, to DMA 3. Then DMA 3 controls the writing of the encrypted data to black memory 5. Once the encrypted data is stored in black memory 5, it may be safely retransmitted. At the same time the integrity of the system is maintained while being controlled by a single processor. Similarly for transfers of cypher text (encrypted) data to plain text data, the above process is reversed. Processor 1 instructs DMA 3 to read data from black memory 5 and gives DMA 5 the starting address and the length of the cypher text data. DMA 3 reads the data from black memory 5 and transfers the data to crypto unit 6. Crypto unit 6 decrypts the cypher text into plain text. Processor 1 instructs DMA 2 where to store the plain text data in red memory by giving DMA 2 the starting address and the length of the plain text data. DMA 2 then stores the plain text data, which is received from crypto unit 6, in red memory 4 at the appropriate place. Figure 2 depicts a block diagram of the security kernel of the present processor arrangement. Security Processor Unit (SPU) 1 is the processor 1 of Figure 1. SPU 1 provides for interfacing to a disk drive (not shown) via data and control buses. In addition, SPU 1 provides status outputs light emitting diodes (LEDs) and a liquid crystal display (LCD) (both not shown). SPU 1 is connected to the Crypto Unit (CU) 20. The CU 20 isolates the key management functions performed by the security kernel. CU 20 includes a security algorithm controller. The security algorithm controller includes the key generator which may produce public or classified keys. SPU 1 is connected to the Crypto Unit 20 for key data transfer. Key data is transmitted to CU 20 via data key port 10, where data is used to encrypt plain text data. The crypto unit 20 performs the encryption/decryption with the appropriate key data. The CU protects internal data from hardware or software control failures while allowing high speed continuous traffic encryption or decryption of data to proceed. The CU 20 presents a defensive interface to the SPU 1. CU 20 requires that appropriate registers be loaded by SPU 1 before the CU 20 processes the requests of the SPU 1. If errors are detected by the CU 20, CU 20 responds with command error interrupts. If the error is capable of causing a critical security event to occur, then an alarm is generated by the CU 20. SPU 1 displays this status on the LEDs and LCD devices. SPU 1 has data bus and control bus leads. The CU 20 is connected to SPU 1 via the control bus leads. Both Red Memory Subsystem (RMS) 40 and Black Memory Subsystem (BMS) 50 are connected to the data bus and control bus leads of SPU 1. It is to be noted that the connection 8 of RMS 40 to SPU 1 is bidirectional. That is, SPU 1 may both read and write to RMS 40. However, the SPU 1 access to the BMS 50 is a read only type access via leads 9. Note that the access by SPU 1 to the Black Memory Subsystem 50 is a one way access. This access is a read only access. As a result of this built-in mechanism, SPU 1 may not write directly into the BMS 50 without the data being sent through the CU 20. SPU 1 may not inadvertently write any plain text data into the BMS 50. This guarantees that plain text data will not be stored into the Black Memory Subsystem 50 by the Security Processor Unit 1. The Black 50 and Red 40 Memory Subsystems are included in the Data Memory Management Unit 30 (DMMU). In addition, Bus Control Unit (BCU) 60 is included in the DMMU 30. BCU 60 is connected to SPU 1 via the control bus leads. Also, BCU 60 is connected by control busses to RMS 40 and to BMS 50. BCU 60 is also connected to the red VME bus and to the black VME bus via control busses. Red VME bus is connected to the control bus leads of SPU 1. Red VME bus is connected to RMS 40 via a data bus. Black VME bus is connected to BMS 50 via a data bus. Red VME bus is connected to BCU 60 via the control bus leads. Black VME bus is also connected to BCU 60 via its control bus leads. The red and black VME busses are parallel busses which allow communication of the security kernel with other devices or other secure processors. All data transfer on the red and black VME busses are accomplished under program control of SPU 1. The SPU 1 may not directly access either the Red VME bus or the Black VME bus. Data transfers to the black VME bus are accomplished by sending data through the BMS 50 which receives encrypted data from CU 20. SPU 1 directly accesses data stored in Red Memory Subsystem via the data bus 8. SPU 1 may read or write data to RMS 40. The Red Memory Subsystem is secure, electronically and physically, and contains the plain text data as mentioned above. As long as SPU 1 reads and writes to/from the only RMS 40, data security is maintained. SPU 1 may access the Black Memory Subsystem via data bus 9 in the read only mode. This prevents the SPU 1 from writing plain text data to the BMS 50 and thereby compromising system security. The Red and Black Memory Subsystems each include a corresponding memory and a DMA controller, as shown in Figure 1. When the SPU 1 is to write data to the Black Memory Subsystem 50, the data must first be read from the Red Memory Subsystem 40. To accomplish this SPU 1 sets the DMA of RMS 40 with the starting address of the data and the length of the data. The DMA then transfers the requested data via data bus 42 to the CU 20 where it is encrypted. The encrypted data is then transmitted to the DMA of Black Memory Subsystem 50 via the data bus 52. SPU 1 has already set the starting address and the length of the data in the DMA of BMS 50. As the DMA receives the encrypted data, it is stored in black memory subsystem 50 beginning at the appropriate address. The SPU 1 may read data directly from the BMS 50. However this data is encrypted and must be converted to plain text to be useful to the system or to be read by human beings. For reading data from the BMS 50 the process is reversed. SPU 1 first sets the DMA of BMS 50 with the starting address and the length of the data. Data is read from the BMS 50 and transferred to the CU 20 via data bus 52. CU 20 decrypts the data. SPU 1 has programmed the DMA of RMS 40 to store the decrypted data at a particular starting address for a number of data words. The DMA of RMS 40 then receives the data from CU 20. This DMA then stores the data in the corresponding memory of RMS 40. SPU 1 may then read the decrypted data. This secure processor architecture is useful for single processor controlled systems. Interfaces between processor pairs or three party configurations are eliminated. A high data through-put rate is achieved. The single processor is prevented from writing plain text data to the memory which contains cypher text. Therefore, data security may not be compromised by the system processor.

Claims: A secure processor arrangement in a secure processor system, said secure processor arrangement restricting access by a processor (1) of said secure processor system to a memory subsystem, said secure processor arrangement comprising: said processor (1) for controlling write and read access to said memory subsystem (2-5); said memory subsystem including first (4) and second (5) memory means, said first and second memory means being connected to said processor, said first memory means (4) operating under control of said processor to store and to transmit plain text data, said second memory means (5) operating under control of said processor (1) to store and to transmit cypher text data; crypto means (6); said first memory means (4) being connected to said processor for enabling said read and said write accesses by said processor (1) to said plain text data; said memory subsystem (2-5) further including first direct memory access means (2) connected to said first memory means, to said processor and to said crypto means, said first direct memory access means (2) operating, under control of said processor, to transfer said plain text data from said first memory means (4) directly to said crypto means for conversion to said cypher text data; said second memory means (5) being connected to said processor for enabling said read access only by said processor to said cypher text data; said memory subsystem further including second direct memory access means (3) connected to said second memory means (5), to said processor (1) and to said crypto means (6), said second direct memory access means (3) operating, under control of said processor, to transfer said cypher text data from said second memory means directly to said crypto means for conversion to said plain text data; said crypto means (6) connected between said first and second direct memory access means, said crypto means operating to encrypt said plain text data of said first memory means and said crypto means further operating to decrypt said cypher text data of said second memory means; and said processor (1) enables data from said first memory means to be written to said second memory means by causing plain text data to be read from said first memory means via said first direct memory access means into said crypto means, where it is encrypted and causing said second memory means to read said encrypted data from said crypto means via said second direct memory access means and writing it to said second memory means. A secure processor arrangement as claimed in claim 1, said processor (1) being connected to said crypto means (6), said crypto means operating, under control of said processor, to transfer said encrypted plain text data which is cypher text data to said second memory means for storage and said crypto means further operating, under control of said processor, to transfer said decrypted cypher text data which is plain text data to said first memory means for storage. A secure processor arrangement as claimed in claim 2, said processor including data bus means (8, 9) connected to said first memory means (40) for providing said read and write accesses by said processor directly to said first memory means. A secure processor arrangement as claimed in claim 3, said data bus means (8) of said processor being connected to said second memory means (50) for providing said read only access by said processor directly to said second memory means (50). A secure processor arrangement as claimed in claim 4, said processor further including control bus means (CTRL BUS) being connected to said crypto means (20), to said first memory means (40), to said first direct memory access means (40), to said second memory means (50) and to said second direct memory access means. A secure processor arrangement as claimed in claim 5, said memory subsystem further including bus control unit means (60) providing for serial to parallel and parallel to serial high speed interface to said first (40) and second (50) memory means and to said control bus (CTRL BUS) of said processor.

Inventors: CORE RONALD SCOTT, MARINO JOSEPH THOMAS JR, CORE, RONALD SCOTT, MARINO, JOSEPH THOMAS, JR.
Applicants: MOTOROLA INC, MOTOROLA, INC.
Application year: 1990
Main classification: G06F12
IPC codes: G06F21