August 13th, 2024

Reversing the AMD Secure Processor (PSP) – Part 2: Cryptographic Co-Processor

The AMD Secure Processor's Cryptographic Co-Processor (CCPv5) enhances cryptography and firmware operations with Local Storage Blocks, multiple command queues, and a layered encryption key system for efficient data management.

Read original articleLink Icon
Reversing the AMD Secure Processor (PSP) – Part 2: Cryptographic Co-Processor

The article discusses the AMD Secure Processor (PSP) and its Cryptographic Co-Processor (CCP), focusing on the latest version, CCPv5. The CCP is crucial for hardware-accelerated cryptography and functions as a Direct Memory Access (DMA) engine for firmware operations. It utilizes Local Storage Blocks (LSBs) for context management during operations, with a maximum of eight LSBs available, each capable of holding 512 bytes of data. The CCP supports five command queues for job submissions, with each queue able to hold 16 commands. The commands are structured to include control words, lengths, and pointers for source, destination, and key information. The CCP can handle various cryptographic functions, including AES, DES, SHA, and RSA, and can access different memory types, such as system memory and local memory. The article also highlights the firmware loading process, which involves reading from SPI flash and can handle both compressed and uncompressed data. Additionally, it details the encryption and decryption of firmware using a layered key system, where the root key is securely stored and used to decrypt intermediate keys for accessing firmware. The CCP's design allows for fine-grained access control and efficient data handling, making it a vital component of the AMD Secure Processor architecture.

- The AMD Secure Processor's Cryptographic Co-Processor (CCP) is essential for cryptography and firmware operations.

- CCPv5 introduces Local Storage Blocks (LSBs) for improved data management and context retention.

- The CCP supports multiple command queues and various cryptographic functions, enhancing its versatility.

- Firmware loading can handle both compressed and uncompressed data, utilizing a layered encryption key system.

- The design of the CCP allows for fine-grained access control and efficient memory operations.

Related

A Video Interview with Mike Clark, Chief Architect of Zen at AMD

A Video Interview with Mike Clark, Chief Architect of Zen at AMD

The interview with AMD's Chief Architect discussed Zen 5's enhancements like improved branch predictor and schedulers. It optimizes single-threaded and multi-threaded performance, focusing on compute capabilities and efficiency.

An interview with AMD's Mike Clark, 'Zen Daddy' says 3nm Zen 5 is coming fast

An interview with AMD's Mike Clark, 'Zen Daddy' says 3nm Zen 5 is coming fast

AMD's Mike Clark discusses Zen 5 architecture, covering 4nm and 3nm nodes. 4nm chips launch soon, with 3nm to follow. Zen 'c' cores may integrate into desktop processors. Zen 5 enhances Ryzen CPUs with full AVX-512 acceleration, emphasizing design balance for optimal performance.

Zen 5's 2-Ahead Branch Predictor: How a 30 Year Old Idea Allows for New Tricks

Zen 5's 2-Ahead Branch Predictor: How a 30 Year Old Idea Allows for New Tricks

AMD's Zen 5 architecture features a new 2-Ahead Branch Predictor Unit, enhancing instruction fetching and execution efficiency, particularly for x86 architectures, and significantly improving single-core performance.

Zen5's AVX512 Teardown and More

Zen5's AVX512 Teardown and More

AMD's Zen5 architecture enhances AVX512 capabilities with native implementation, achieving 4 x 512-bit throughput, while facing thermal throttling challenges. It shows significant performance gains, especially in high-performance computing.

Zen5's AVX512 Teardown and More (Without Redacted Content)

Zen5's AVX512 Teardown and More (Without Redacted Content)

AMD's Zen5 architecture enhances AVX512 capabilities with full 512-bit execution paths, but faces memory bandwidth limitations affecting high-performance computing. IPC improvements vary, with some workloads achieving up to 98% gains.

Link Icon 3 comments
By @dtx1 - 9 months
I never understood why AMD is not at least making the source of these available. I would actually really like a secure cryptographic processor that's been extensively vetted and trustworthy.
By @mrweasel - 9 months
How popular is AMDs PSP, or Intels IME for that matter, in the real world. I've never seen either used at all.
By @eqvinox - 8 months
(genuine question, sorry -) is it just me or does anyone else have problems reading the text with the font the webpage uses? It kinda blurs away from "text" into kind of a grey block. I think it might be the very small vertical line to line spacing?