[vbox-dev] Check for disk encryption

Klaus Espenlaub klaus.espenlaub at oracle.com
Tue May 3 11:19:31 GMT 2016


Alexander,

should IMedium.getProperty("CRYPT/KeyStore", val.asOutParam()) (using 
C++ish pseudocode) work, i.e. leave val as empty when the medium is not 
encrypted and return some non-empty string if it is encrypted?

Sounds like it's a lot cheaper than getting all properties and fishing 
out what one wants...

Klaus

On 30.04.2016 05:47, Ian Chapman wrote:
> Hi Alexander,
>
> Perfect, exactly what I need, thanks.
>
>
>> you can check whether the „CRYPT/KeyStore“ medium property exists by
>> querying
>> all properties with IMedium::getProperties.
>>
>> Regards,
>> Alexander
>>
>>> On 28.04.2016 12:52, Ian Chapman <packages at amiga-hardware.com> wrote:
>>>
>>> Hi,
>>>
>>> Is it possible with the current API to check wether an IMedium is
>>> encrypted or not _without_ VirtualBox returning an error if it isn't?
>>>
>>> --
>>> Ian Chapman.



More information about the vbox-dev mailing list