Print better metadata dump and status info for OPAL segment.

This commit is contained in:
Milan Broz
2023-07-15 14:11:05 +02:00
committed by Luca Boccassi
parent 4d487d5dcf
commit 928061f1f0
7 changed files with 65 additions and 15 deletions

View File

@@ -464,13 +464,20 @@ const char *crypt_get_default_type(void);
/** @} */
/**
* Get OPAL HW encryption type
* Get HW encryption type
*
* @return HW encryption type (see @link crypt-hw-encryption-types @endlink)
* or negative errno otherwise.
*/
int crypt_get_hw_encryption_type(struct crypt_device *cd);
/**
* Get HW encryption (like OPAL) key size (in bytes)
*
* @return key size or 0 if no HW encryption is used.
*/
int crypt_get_hw_encryption_key_size(struct crypt_device *cd);
/**
*
* Structure used as parameter for PLAIN device type.