VirtualBox

Changeset 51342 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
May 22, 2014 10:24:53 AM (11 years ago)
Author:
vboxsync
Message:

Main,DrvVD: Interface to pass the keys to the disk encryption module from Main

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/ConsoleImpl.h

    r51217 r51342  
    320320
    321321    EmulatedUSB *getEmulatedUSB(void) { return mEmulatedUSB; }
     322
     323    /**
     324     * Sets the disk encryption keys.
     325     *
     326     * @returns COM status code.
     327     * @þaram   strCfg    The config for the disks.
     328     *
     329     * @note: One line in the config string contains all required data for one disk.
     330     *        The format for one disk is some sort of comma separated value using
     331     *        key=value pairs.
     332     *        There are two keys defined at the moment:
     333     *            - uuid: The uuid of the base image the key is for (with or without)
     334     *                    the curly braces.
     335     *            - dek: The data encryption key in base64 encoding
     336     */
     337    HRESULT setDiskEncryptionKeys(const Utf8Str &strCfg);
    322338
    323339private:
     
    779795    bool isResetTurnedIntoPowerOff(void);
    780796
     797    /** @name Disk encryption support
     798     * @{ */
     799    HRESULT consoleParseDiskEncryption(const char *psz, const char **ppszEnd);
     800    HRESULT configureEncryptionForDisk(const char *pszUuid, const uint8_t *pbKey, size_t cbKey);
     801    int consoleParseKeyValue(const char *psz, const char **ppszEnd,
     802                             char **ppszKey, char **ppszVal);
     803    /** @} */
     804
    781805    /** @name Teleporter support
    782806     * @{ */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette