# OpalSecurity

| Field       | Value                                                     |
|-------------|-----------------------------------------------------------|
| Index       | 0317                                                      |
| Module      | OpalSecurity                                              |
| Size        | 6,628 bytes (PE32+)                                       |
| SHA256      | 76ca203c3aa4f6f05d955c3f78f91670c87e76e331bf8483fb89eb0648e212ab |
| Phase       | DXE                                                       |
| Package     | AmiModulePkg/OpalSecurity                                 |
| Build       | DEBUG_VS2015 X64                                          |
| Image       | HR6N0XMLK                                                 |
| Entry Point | 0x370                                                     |

## Overview

This DXE driver provides TCG Opal Storage Security Protocol support for self-encrypting drives (SEDs) conforming to the TCG Storage Security Subsystem Class (Opal SSC). It follows the UEFI driver binding model with OpalSecurityDriverInit (entry point), OpalSecurityBindingStart (connect to Opal-capable device), and OpalSecurityBindingStop (disconnect). The module communicates with storage devices using the TCG Storage IF-SEND/IF-RECV protocol at Level 0 for security protocol discovery to identify Opal-capable devices.

## Key Functions

- OpalSecurityDriverInit -- Module entry point; installs the Opal Security protocol on a new handle
- OpalSecurityBindingStart -- Binds to an Opal-capable storage device and performs Level 0 discovery
- OpalSecurityBindingStop -- Unbinds from an Opal storage device
- OpalReadCmosDebugLevel -- Reads the Opal debug level from CMOS configuration
- OpalGetHobList -- Retrieves the HOB list for platform configuration data

## Dependencies

- TCG Storage Protocol (IF-SEND/IF-RECV)
- Opal Storage Protocol (OPAL_STORAGE_PROTOCOL)
- UEFI Boot/Runtime Services
- CMOS access for debug configuration

## Platform

X64 UEFI DXE driver, PE32+ format, 5 sections (.text, .rdata, .data, section_3, .xdata). Part of AmiModulePkg.