APB-Based SPI Communication Device with Hardware Encryption
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Conventional SPI communication devices are inadequate for secure data transmission in fields requiring high security, such as information security cards and military applications, as they only handle plaintext data and lack encryption capabilities.
Innovation Solution
An APB bus-based SPI communication device is developed, incorporating an encryption module to encrypt data from the master and a decryption module to decrypt data from the slave, enhancing security through hardware-based encryption and decryption within the SPI communication process.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If conventional SPI communication devices are used, then the device complexity is low and cost performance is good, but the security of data transmission is insufficient
Solution Approach 1:
The encryption module and decryption module are nested within the SPI communication device structure. The encryption module receives plaintext data from the master device through the APB interface, encrypts it, and outputs ciphertext data to the SPI bus interface. The decryption module receives ciphertext data from the slave device, decrypts it, and outputs plaintext data. This nesting approach integrates security functions into the existing SPI communication architecture without requiring a completely new system design.
Solution Approach 2:
The encryption module acts as an intermediary between the master device and the SPI communication channel. It receives plaintext data from the master, encrypts it using cryptographic algorithms, and transmits the encrypted data through the SPI interface to the slave device. Similarly, the decryption module serves as an intermediary between the SPI channel and the master device, decrypting received ciphertext data before passing it to the master. This intermediary approach ensures that security operations are performed at the appropriate points in the data flow.
2Reliability
If encryption and decryption modules are added to SPI communication devices, then the security of data transmission is improved, but the device complexity increases
Solution Approach 1:
The encryption module is designed to handle multiple cryptographic operations within a single hardware unit. It can perform encryption of plaintext data to ciphertext data, and the decryption module can perform decryption of ciphertext data to plaintext data. The modules are integrated with the APB interface module and SPI bus interface module, allowing the same hardware structure to serve both communication and security functions. This multi-functionality reduces the need for separate dedicated security devices.
Solution Approach 2:
The encryption module and decryption module are merged into the SPI communication device architecture, combining security functions with communication functions in a single integrated device. The APB interface module, encryption module, decryption module, and SPI bus interface module work together as a unified system, sharing common control logic and data pathways. This merging approach reduces overall system complexity compared to having separate communication and security devices.
Data Source
AI summary
Embodiments of the present disclosure provide an APB (Advanced Peripheral Bus) bus-based SPI (Serial Peripheral Interface) communication device. The device comprises: an APB interface module, an SPI bus interface module, an encryption module, and a decryption module, wherein the encryption module receives plaintext data and a key from a master via the APB interface module, generates, when enabled, ciphertext data according to the plaintext data and the key, and sends the ciphertext data to a slave via the SPI bus interface module; the decryption module receives the ciphertext data from the slave via the SPI bus interface module and receives a key from the master via the APB interface module, generates, when enabled, plaintext data according to the ciphertext data and the key, and sends the plaintext data to the master via the APB interface module. The present disclosure can improve the security of data transmission.


