2 Public API for Opal Core library.
4 (TCG Storage Architecture Core Specification, Version 2.01, Revision 1.00,
5 https://trustedcomputinggroup.org/tcg-storage-architecture-core-specification/
7 Storage Work Group Storage Security Subsystem Class: Pyrite, Specification Version 2.00, Revision 1.00,
8 https://trustedcomputinggroup.org/resource/tcg-storage-security-subsystem-class-pyrite/
10 Storage Work Group Storage Security Subsystem Class: Opal, Version 2.01 Final, Revision 1.00,
11 https://trustedcomputinggroup.org/storage-work-group-storage-security-subsystem-class-opal/
13 TCG Storage Security Subsystem Class: Opalite Version 1.00 Revision 1.00,
14 https://trustedcomputinggroup.org/tcg-storage-security-subsystem-class-opalite/
16 TCG Storage Feature Set: Block SID Authentication, Version 1.00 Final, Revision 1.00,
17 https://trustedcomputinggroup.org/tcg-storage-feature-set-block-sid-authentication-specification/
19 TCG Storage Opal SSC Feature Set: PSID Version 1.00, Revision 1.00,
20 https://trustedcomputinggroup.org/tcg-storage-opal-feature-set-psid/)
22 Check http://trustedcomputinggroup.org for latest specification updates.
24 Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>
25 SPDX-License-Identifier: BSD-2-Clause-Patent
32 #include <IndustryStandard/TcgStorageOpal.h>
34 #include <Library/TcgStorageCoreLib.h>
35 #include <Protocol/StorageSecurityCommand.h>
41 // Opal SSC 1 support (0 - not supported, 1 - supported)
46 // Opal SSC 2support (0 - not supported, 1 - supported)
51 // Opal SSC Lite support (0 - not supported, 1 - supported)
53 UINT32 OpalSscLite
: 1;
56 // Pyrite SSC support (0 - not supported, 1 - supported)
61 // Security protocol 1 support (0 - not supported, 1 - supported)
66 // Security protocol 2 support (0 - not supported, 1 - supported)
71 // Security protocol IEEE1667 support (0 - not supported, 1 - supported)
73 UINT32 SpIeee1667
: 1;
76 // Media encryption supported (0 - not supported, 1 - supported)
78 UINT32 MediaEncryption
: 1;
81 // Initial C_PIN_SID PIN Indicator
82 // 0 - The initial C_PIN_SID PIN value is NOT equal to the C_PIN_MSID PIN value
83 // 1 - The initial C_PIN_SID PIN value is equal to the C_PIN_MSID PIN value
85 UINT32 InitCpinIndicator
: 1;
88 // Behavior of C_PIN_SID PIN upon TPer Revert
89 // 0 - The initial C_PIN_SID PIN value is NOT equal to the C_PIN_MSID PIN value
90 // 1 - The initial C_PIN_SID PIN value is equal to the C_PIN_MSID PIN value
92 UINT32 CpinUponRevert
: 1;
95 // Media encryption supported (0 - not supported, 1 - supported)
100 // Pyrite SSC V2 support (0 - not supported, 1 - supported)
102 UINT32 PyriteSscV2
: 1;
105 // Supported Data Removal Mechanism support (0 - not supported, 1 - supported)
107 UINT32 DataRemoval
: 1;
108 } OPAL_DISK_SUPPORT_ATTRIBUTE
;
111 // Opal device ownership type
112 // The type indicates who was the determined owner of the device.
116 // Represents the device ownership is unknown because starting a session as the SID authority with the ADMIN SP
117 //was unsuccessful with the provided PIN
119 OpalOwnershipUnknown
,
122 // Represents that the ADMIN SP SID authority contains the same PIN as the MSID PIN
128 // Structure that is used to represent an Opal session.
129 // The structure must be initialized by calling OpalStartSession before being used as a parameter
130 // for any other Opal function.
131 // This structure should NOT be directly modified by the client of this library.
135 UINT32 HostSessionId
;
136 UINT32 TperSessionId
;
137 UINT16 ComIdExtension
;
139 UINT16 OpalBaseComId
;
141 EFI_STORAGE_SECURITY_COMMAND_PROTOCOL
*Sscp
;
148 The function fills in the provided Buffer with the supported protocol list
149 of the device specified.
151 @param[in] Session OPAL_SESSION data.
152 @param[in] BufferSize Size of Buffer provided (in bytes)
153 @param[in] BuffAddress Buffer address to fill with security protocol list
158 OpalRetrieveSupportedProtocolList(
159 OPAL_SESSION
*Session
,
166 The function fills in the provided Buffer with the level 0 discovery Header
167 of the device specified.
169 @param[in] Session OPAL_SESSION data.
170 @param[in] BufferSize Size of Buffer provided (in bytes)
171 @param[in] BuffAddress Buffer address to fill with Level 0 Discovery response
176 OpalRetrieveLevel0DiscoveryHeader(
177 OPAL_SESSION
*Session
,
183 Starts a session with a security provider (SP).
185 If a session is started successfully, the caller must end the session with OpalEndSession when finished
186 performing Opal actions.
188 @param[in/out] Session OPAL_SESSION to initialize.
189 @param[in] SpId Security provider ID to start the session with.
190 @param[in] Write Whether the session should be read-only (FALSE) or read/write (TRUE).
191 @param[in] HostChallengeLength Length of the host challenge. Length should be 0 if hostChallenge is NULL
192 @param[in] HostChallenge Host challenge for Host Signing Authority. If NULL, then no Host Challenge will be sent.
193 @param[in] HostSigningAuthority Host Signing Authority used for start session. If NULL, then no Host Signing Authority will be sent.
194 @param[in/out] MethodStatus Status of the StartSession method; only valid if TcgResultSuccess is returned.
196 @return TcgResultSuccess indicates that the function completed without any internal errors.
197 The caller must inspect the MethodStatus field to determine whether the method completed successfully.
203 OPAL_SESSION
*Session
,
206 UINT32 HostChallengeLength
,
207 const VOID
*HostChallenge
,
208 TCG_UID HostSigningAuthority
,
213 Close a session opened with OpalStartSession.
215 @param[in/out] Session OPAL_SESSION to end.
221 OPAL_SESSION
*Session
226 Reverts device using Admin SP Revert method.
228 @param[in] AdminSpSession OPAL_SESSION with OPAL_UID_ADMIN_SP as OPAL_ADMIN_SP_PSID_AUTHORITY to perform PSID revert.
234 OPAL_SESSION
*AdminSpSession
240 The function retrieves the MSID from the device specified
242 @param[in] AdminSpSession OPAL_SESSION with OPAL_UID_ADMIN_SP as OPAL_ADMIN_SP_PSID_AUTHORITY to perform PSID revert.
243 @param[in] MsidBufferSize Allocated buffer size (in bytes) for MSID allocated by caller
244 @param[in] Msid Variable length byte sequence representing MSID of device
245 @param[in] MsidLength Actual length of MSID retrieved from device
251 OPAL_SESSION
*AdminSpSession
,
252 UINT32 MsidBufferSize
,
259 The function activates the Locking SP.
260 Once activated, per Opal spec, the ADMIN SP SID PIN is copied over to the ADMIN1 LOCKING SP PIN.
261 If the Locking SP is already enabled, then TcgResultSuccess is returned and no action occurs.
263 @param[in] AdminSpSession OPAL_SESSION with OPAL_UID_ADMIN_SP as OPAL_ADMIN_SP_SID_AUTHORITY to activate Locking SP
264 @param[in/out] MethodStatus Method status of last action performed. If action succeeded, it should be TCG_METHOD_STATUS_CODE_SUCCESS.
269 OpalActivateLockingSp(
270 OPAL_SESSION
*AdminSpSession
,
277 The function sets the PIN column of the specified cpinRowUid (authority) with the newPin value.
279 @param[in/out] Session OPAL_SESSION to set password
280 @param[in] CpinRowUid UID of row (authority) to update PIN column
281 @param[in] NewPin New Pin to set for cpinRowUid specified
282 @param[in] NewPinLength Length in bytes of newPin
283 @param[in/out] MethodStatus Method status of last action performed. If action succeeded, it should be TCG_METHOD_STATUS_CODE_SUCCESS.
289 OPAL_SESSION
*Session
,
298 The function retrieves the active key of the global locking range
299 and calls the GenKey method on the active key retrieved.
301 @param[in] LockingSpSession OPAL_SESSION with OPAL_UID_LOCKING_SP to generate key
302 @param[in/out] MethodStatus Method status of last action performed. If action succeeded, it should be TCG_METHOD_STATUS_CODE_SUCCESS.
307 OpalGlobalLockingRangeGenKey(
308 OPAL_SESSION
*LockingSpSession
,
315 The function updates the ReadLocked and WriteLocked columns of the Global Locking Range.
316 This function is required for a user1 authority, since a user1 authority shall only have access to ReadLocked and WriteLocked columns
317 (not ReadLockEnabled and WriteLockEnabled columns).
319 @param[in] LockingSpSession OPAL_SESSION with OPAL_UID_LOCKING_SP to generate key
320 @param[in] ReadLocked Value to set ReadLocked column for Global Locking Range
321 @param[in] WriteLocked Value to set WriteLocked column for Global Locking Range
322 @param[in/out] MethodStatus Method status of last action performed. If action succeeded, it should be TCG_METHOD_STATUS_CODE_SUCCESS.
327 OpalUpdateGlobalLockingRange(
328 OPAL_SESSION
*LockingSpSession
,
337 The function updates the RangeStart, RangeLength, ReadLockedEnabled, WriteLockedEnabled, ReadLocked and WriteLocked columns
338 of the specified Locking Range. This function requires admin authority of a locking SP session.
340 @param[in] LockingSpSession OPAL_SESSION with OPAL_UID_LOCKING_SP to generate key
341 @param[in] LockingRangeUid Locking range UID to set values
342 @param[in] RangeStart Value to set RangeStart column for Locking Range
343 @param[in] RangeLength Value to set RangeLength column for Locking Range
344 @param[in] ReadLockEnabled Value to set readLockEnabled column for Locking Range
345 @param[in] WriteLockEnabled Value to set writeLockEnabled column for Locking Range
346 @param[in] ReadLocked Value to set ReadLocked column for Locking Range
347 @param[in] WriteLocked Value to set WriteLocked column for Locking Range
348 @param[in/out] MethodStatus Method status of last action performed. If action succeeded, it should be TCG_METHOD_STATUS_CODE_SUCCESS.
354 OPAL_SESSION
*LockingSpSession
,
355 TCG_UID LockingRangeUid
,
358 BOOLEAN ReadLockEnabled
,
359 BOOLEAN WriteLockEnabled
,
367 The function sets the Enabled column to TRUE for the authorityUid provided and updates the PIN column for the cpinRowUid provided
368 using the newPin provided. AuthorityUid and cpinRowUid should describe the same authority.
370 @param[in] LockingSpSession OPAL_SESSION with OPAL_UID_LOCKING_SP as OPAL_LOCKING_SP_ADMIN1_AUTHORITY to update
371 @param[in] CpinRowUid Row UID of C_PIN table of Locking SP to update PIN
372 @param[in] AuthorityUid UID of Locking SP authority to update Pin column with
373 @param[in] NewPin New Password used to set Pin column
374 @param[in] NewPinLength Length in bytes of new password
375 @param[in/out] MethodStatus Method status of last action performed. If action succeeded, it should be TCG_METHOD_STATUS_CODE_SUCCESS.
380 OpalSetLockingSpAuthorityEnabledAndPin(
381 OPAL_SESSION
*LockingSpSession
,
383 TCG_UID AuthorityUid
,
392 The function sets the Enabled column to FALSE for the USER1 authority.
394 @param[in] LockingSpSession OPAL_SESSION with OPAL_UID_LOCKING_SP as OPAL_LOCKING_SP_ADMIN1_AUTHORITY to disable User1
395 @param[in/out] MethodStatus Method status of last action performed. If action succeeded, it should be TCG_METHOD_STATUS_CODE_SUCCESS.
401 OPAL_SESSION
*LockingSpSession
,
408 The function calls the Admin SP RevertSP method on the Locking SP. If KeepUserData is True, then the optional parameter
409 to keep the user data is set to True, otherwise the optional parameter is not provided.
411 @param[in] LockingSpSession OPAL_SESSION with OPAL_UID_LOCKING_SP as OPAL_LOCKING_SP_ADMIN1_AUTHORITY to revertSP
412 @param[in] KeepUserData Specifies whether or not to keep user data when performing RevertSP action. True = keeps user data.
413 @param[in/out] MethodStatus Method status of last action performed. If action succeeded, it should be TCG_METHOD_STATUS_CODE_SUCCESS.
419 OPAL_SESSION
*LockingSpSession
,
420 BOOLEAN KeepUserData
,
427 The function retrieves the TryLimit column for the specified rowUid (authority).
429 @param[in] LockingSpSession OPAL_SESSION with OPAL_UID_LOCKING_SP to retrieve try limit
430 @param[in] RowUid Row UID of the Locking SP C_PIN table to retrieve TryLimit column
431 @param[in/out] TryLimit Value from TryLimit column
437 OPAL_SESSION
*LockingSpSession
,
445 The function populates the CreateStruct with a payload that will retrieve the global locking range active key.
446 It is intended to be called with a session that is already started with a valid credential.
447 The function does not send the payload.
449 @param[in] Session OPAL_SESSION to populate command for, needs comId
450 @param[in/out] CreateStruct Structure to populate with encoded TCG command
451 @param[in/out] Size Size in bytes of the command created.
456 OpalCreateRetrieveGlobalLockingRangeActiveKey(
457 const OPAL_SESSION
*Session
,
458 TCG_CREATE_STRUCT
*CreateStruct
,
465 The function acquires the activeKey specified for the Global Locking Range from the parseStruct.
467 @param[in] ParseStruct Structure that contains the device's response with the activekey
468 @param[in/out] ActiveKey The UID of the active key retrieved
473 OpalParseRetrieveGlobalLockingRangeActiveKey(
474 TCG_PARSE_STRUCT
*ParseStruct
,
480 Get the support attribute info.
482 @param[in] Session OPAL_SESSION with OPAL_UID_LOCKING_SP to retrieve info.
483 @param[in/out] LockingFeature Return the Locking info.
489 OPAL_SESSION
*Session
,
490 TCG_LOCKING_FEATURE_DESCRIPTOR
*LockingFeature
495 The function determines whether or not all of the requirements for the Opal Feature (not full specification)
496 are met by the specified device.
498 @param[in] SupportedAttributes Opal device attribute.
503 OpalFeatureSupported(
504 OPAL_DISK_SUPPORT_ATTRIBUTE
*SupportedAttributes
509 The function returns whether or not the device is Opal Enabled.
510 TRUE means that the device is partially or fully locked.
511 This will perform a Level 0 Discovery and parse the locking feature descriptor
513 @param[in] SupportedAttributes Opal device attribute.
514 @param[in] LockingFeature Opal device locking status.
521 OPAL_DISK_SUPPORT_ATTRIBUTE
*SupportedAttributes
,
522 TCG_LOCKING_FEATURE_DESCRIPTOR
*LockingFeature
527 The function returns whether or not the device is Opal Locked.
528 TRUE means that the device is partially or fully locked.
529 This will perform a Level 0 Discovery and parse the locking feature descriptor
531 @param[in] SupportedAttributes Opal device attribute.
532 @param[in] LockingFeature Opal device locking status.
537 OPAL_DISK_SUPPORT_ATTRIBUTE
*SupportedAttributes
,
538 TCG_LOCKING_FEATURE_DESCRIPTOR
*LockingFeature
542 Trig the block sid action.
544 @param[in] Session OPAL_SESSION to populate command for, needs comId
545 @param[in] HardwareReset Whether need to do hardware reset.
551 OPAL_SESSION
*Session
,
552 BOOLEAN HardwareReset
557 Get the support attribute info.
559 @param[in] Session OPAL_SESSION with OPAL_UID_LOCKING_SP to retrieve info.
560 @param[in/out] SupportedAttributes Return the support attribute info.
561 @param[out] OpalBaseComId Return the base com id info.
566 OpalGetSupportedAttributesInfo(
567 OPAL_SESSION
*Session
,
568 OPAL_DISK_SUPPORT_ATTRIBUTE
*SupportedAttributes
,
569 UINT16
*OpalBaseComId
573 Creates a session with OPAL_UID_ADMIN_SP as OPAL_ADMIN_SP_PSID_AUTHORITY, then reverts device using Admin SP Revert method.
575 @param[in] AdminSpSession OPAL_SESSION to populate command for, needs comId
576 @param[in] Psid PSID of device to revert.
577 @param[in] PsidLength Length of PSID in bytes.
583 OPAL_SESSION
*AdminSpSession
,
589 Opens a session with OPAL_UID_ADMIN_SP as OPAL_ADMIN_SP_SID_AUTHORITY,
590 sets the OPAL_UID_ADMIN_SP_C_PIN_SID column with the new password,
591 and activates the locking SP to copy SID PIN to Admin1 Locking SP PIN.
593 @param[in] AdminSpSession OPAL_SESSION to populate command for, needs comId
594 @param[in] GeneratedSid Generated SID of disk
595 @param[in] SidLength Length of generatedSid in bytes
596 @param[in] Password New admin password to set
597 @param[in] PassLength Length of password in bytes
602 OpalUtilSetAdminPasswordAsSid(
603 OPAL_SESSION
*AdminSpSession
,
604 const VOID
*GeneratedSid
,
606 const VOID
*Password
,
612 Opens a session with OPAL_UID_LOCKING_SP as OPAL_LOCKING_SP_ADMIN1_AUTHORITY,
613 and updates the specified locking range with the provided column values.
615 @param[in] LockingSpSession OPAL_SESSION to populate command for, needs comId
616 @param[in] Password New admin password to set
617 @param[in] PassLength Length of password in bytes
618 @param[in] LockingRangeUid Locking range UID to set values
619 @param[in] RangeStart Value to set RangeStart column for Locking Range
620 @param[in] RangeLength Value to set RangeLength column for Locking Range
621 @param[in] ReadLockEnabled Value to set readLockEnabled column for Locking Range
622 @param[in] WriteLockEnabled Value to set writeLockEnabled column for Locking Range
623 @param[in] ReadLocked Value to set ReadLocked column for Locking Range
624 @param[in] WriteLocked Value to set WriteLocked column for Locking Range
629 OpalUtilSetOpalLockingRange(
630 OPAL_SESSION
*LockingSpSession
,
631 const VOID
*Password
,
633 TCG_UID LockingRangeUid
,
636 BOOLEAN ReadLockEnabled
,
637 BOOLEAN WriteLockEnabled
,
643 Opens a session with OPAL_UID_ADMIN_SP as OPAL_ADMIN_SP_SID_AUTHORITY,
644 sets OPAL_UID_ADMIN_SP_C_PIN_SID with the new password,
645 and sets OPAL_LOCKING_SP_C_PIN_ADMIN1 with the new password.
647 @param[in] AdminSpSession OPAL_SESSION to populate command for, needs comId
648 @param[in] OldPassword Current admin password
649 @param[in] OldPasswordLength Length of current admin password in bytes
650 @param[in] NewPassword New admin password to set
651 @param[in] NewPasswordLength Length of new password in bytes
656 OpalUtilSetAdminPassword(
657 OPAL_SESSION
*AdminSpSession
,
658 const VOID
*OldPassword
,
659 UINT32 OldPasswordLength
,
660 const VOID
*NewPassword
,
661 UINT32 NewPasswordLength
665 Starts a session with OPAL_UID_LOCKING_SP as OPAL_LOCKING_SP_USER1_AUTHORITY or OPAL_LOCKING_SP_ADMIN1_AUTHORITY
666 and sets the User1 SP authority to enabled and sets the User1 password.
668 @param[in] LockingSpSession OPAL_SESSION to populate command for, needs comId
669 @param[in] OldPassword Current admin password
670 @param[in] OldPasswordLength Length of current admin password in bytes
671 @param[in] NewPassword New admin password to set
672 @param[in] NewPasswordLength Length of new password in bytes
677 OpalUtilSetUserPassword(
678 OPAL_SESSION
*LockingSpSession
,
679 const VOID
*OldPassword
,
680 UINT32 OldPasswordLength
,
681 const VOID
*NewPassword
,
682 UINT32 NewPasswordLength
686 Verify whether user input the correct password.
688 @param[in] LockingSpSession OPAL_SESSION to populate command for, needs comId
689 @param[in] Password Admin password
690 @param[in] PasswordLength Length of password in bytes
691 @param[in/out] HostSigningAuthority Use the Host signing authority type.
696 OpalUtilVerifyPassword (
697 OPAL_SESSION
*LockingSpSession
,
698 const VOID
*Password
,
699 UINT32 PasswordLength
,
700 TCG_UID HostSigningAuthority
704 Starts a session with OPAL_UID_LOCKING_SP as OPAL_LOCKING_SP_USER1_AUTHORITY or OPAL_LOCKING_SP_ADMIN1_AUTHORITY
705 and generates a new global locking range key to erase the Data.
707 @param[in] LockingSpSession OPAL_SESSION to populate command for, needs comId
708 @param[in] Password Admin or user password
709 @param[in] PasswordLength Length of password in bytes
710 @param[in/out] PasswordFailed indicates if password failed (start session didn't work)
716 OPAL_SESSION
*LockingSpSession
,
717 const VOID
*Password
,
718 UINT32 PasswordLength
,
719 BOOLEAN
*PasswordFailed
723 Starts a session with OPAL_UID_LOCKING_SP as OPAL_LOCKING_SP_ADMIN1_AUTHORITY and disables the User1 authority.
725 @param[in] LockingSpSession OPAL_SESSION to populate command for, needs comId
726 @param[in] Password Admin password
727 @param[in] PasswordLength Length of password in bytes
728 @param[in/out] PasswordFailed indicates if password failed (start session didn't work)
734 OPAL_SESSION
*LockingSpSession
,
735 const VOID
*Password
,
736 UINT32 PasswordLength
,
737 BOOLEAN
*PasswordFailed
741 Opens a session with OPAL_UID_ADMIN_SP as OPAL_ADMIN_SP_PSID_AUTHORITY, then reverts the device using the RevertSP method.
743 @param[in] LockingSpSession OPAL_SESSION to populate command for, needs comId
744 @param[in] KeepUserData TRUE to keep existing Data on the disk, or FALSE to erase it
745 @param[in] Password Admin password
746 @param[in] PasswordLength Length of password in bytes
747 @param[in/out] PasswordFailed indicates if password failed (start session didn't work)
748 @param[in] Msid Input Msid info.
749 @param[in] MsidLength Input Msid info length.
755 OPAL_SESSION
*LockingSpSession
,
756 BOOLEAN KeepUserData
,
757 const VOID
*Password
,
758 UINT32 PasswordLength
,
759 BOOLEAN
*PasswordFailed
,
765 After revert success, set SID to MSID.
767 @param[in] AdminSpSession OPAL_SESSION to populate command for, needs comId
768 @param Password, Input password info.
769 @param PasswordLength, Input password length.
770 @param[in] Msid Input Msid info.
771 @param[in] MsidLength Input Msid info length.
776 OpalUtilSetSIDtoMSID (
777 OPAL_SESSION
*AdminSpSession
,
778 const VOID
*Password
,
779 UINT32 PasswordLength
,
785 Update global locking range.
787 @param[in] LockingSpSession OPAL_SESSION to populate command for, needs comId
788 @param Password, Input password info.
789 @param PasswordLength, Input password length.
790 @param ReadLocked, Read lock info.
791 @param WriteLocked write lock info.
796 OpalUtilUpdateGlobalLockingRange(
797 OPAL_SESSION
*LockingSpSession
,
798 const VOID
*Password
,
799 UINT32 PasswordLength
,
805 Update global locking range.
807 @param Session, The session info for one opal device.
808 @param Msid, The data buffer to save Msid info.
809 @param MsidBufferLength, The data buffer length for Msid.
810 @param MsidLength, The actual data length for Msid.
816 OPAL_SESSION
*Session
,
818 UINT32 MsidBufferLength
,
824 The function determines who owns the device by attempting to start a session with different credentials.
825 If the SID PIN matches the MSID PIN, the no one owns the device.
826 If the SID PIN matches the ourSidPin, then "Us" owns the device. Otherwise it is unknown.
829 @param[in] Session The session info for one opal device.
830 @param Msid, The Msid info.
831 @param MsidLength, The data length for Msid.
836 OpalUtilDetermineOwnership(
837 OPAL_SESSION
*Session
,
844 The function returns if admin password exists.
846 @param[in] OwnerShip The owner ship of the opal device.
847 @param[in] LockingFeature The locking info of the opal device.
849 @retval TRUE Admin password existed.
850 @retval FALSE Admin password not existed.
855 OpalUtilAdminPasswordExists(
857 IN TCG_LOCKING_FEATURE_DESCRIPTOR
*LockingFeature
861 Get Active Data Removal Mechanism Value.
863 @param[in] Session, The session info for one opal device.
864 @param[in] GeneratedSid Generated SID of disk
865 @param[in] SidLength Length of generatedSid in bytes
866 @param[out] ActiveDataRemovalMechanism Return the active data removal mechanism.
871 OpalUtilGetActiveDataRemovalMechanism (
872 OPAL_SESSION
*Session
,
873 const VOID
*GeneratedSid
,
875 UINT8
*ActiveDataRemovalMechanism
879 Get the supported Data Removal Mechanism list.
881 @param[in] Session, The session info for one opal device.
882 @param[out] RemovalMechanismLists Return the supported data removal mechanism lists.
887 OpalUtilGetDataRemovalMechanismLists (
888 IN OPAL_SESSION
*Session
,
889 OUT UINT32
*RemovalMechanismLists
892 #endif // _OPAL_CORE_H_