VirtualBox

Changeset 58092 in vbox


Ignore:
Timestamp:
Oct 7, 2015 1:32:41 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
103163
Message:

vd-ifs.h: VDINTERFACECRYPTO: Cannot use @copydoc when the parameters aren't the same (pIfCrypto vs pvUser), so gotta duplicate the documentation (or redesign the interface so the pvUser stuff is invisible, like we do for most of the other interfaces).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vd-ifs.h

    r57006 r58092  
    14401440     * @param   pszId           The alias/id for the key to release.
    14411441     *
    1442      * @note: It is advised to release the key whenever it is not used anymore so the entity
    1443      *        storing the key can do anything to make retrieving the key from memory more
    1444      *        difficult like scrambling the memory buffer for instance.
     1442     * @note  It is advised to release the key whenever it is not used anymore so
     1443     *        the entity storing the key can do anything to make retrieving the key
     1444     *        from memory more difficult like scrambling the memory buffer for
     1445     *        instance.
    14451446     */
    14461447    DECLR3CALLBACKMEMBER(int, pfnKeyRelease, (void *pvUser, const char *pszId));
     
    15211522
    15221523/**
    1523  * @copydoc VDINTERFACECRYPTO::pfnKeyRetain
     1524 * Retains a key identified by the ID. The caller will only hold a reference
     1525 * to the key and must not modify the key buffer in any way.
     1526 *
     1527 * @returns VBox status code.
     1528 * @param   pIfCrypto       Pointer to the crypto interface.
     1529 * @param   pszId           The alias/id for the key to retrieve.
     1530 * @param   ppbKey          Where to store the pointer to the key buffer on success.
     1531 * @param   pcbKey          Where to store the size of the key in bytes on success.
    15241532 */
    15251533DECLINLINE(int) vdIfCryptoKeyRetain(PVDINTERFACECRYPTO pIfCrypto, const char *pszId, const uint8_t **ppbKey, size_t *pcbKey)
     
    15291537
    15301538/**
    1531  * @copydoc VDINTERFACECRYPTO::pfnKeyRelease
     1539 * Releases one reference of the key identified by the given identifier.
     1540 * The caller must not access the key buffer after calling this operation.
     1541 *
     1542 * @returns VBox status code.
     1543 * @param   pIfCrypto       Pointer to the crypto interface.
     1544 * @param   pszId           The alias/id for the key to release.
     1545 *
     1546 * @note  It is advised to release the key whenever it is not used anymore so
     1547 *        the entity storing the key can do anything to make retrieving the key
     1548 *        from memory more difficult like scrambling the memory buffer for
     1549 *        instance.
    15321550 */
    15331551DECLINLINE(int) vdIfCryptoKeyRelease(PVDINTERFACECRYPTO pIfCrypto, const char *pszId)
     
    15371555
    15381556/**
    1539  * @copydoc VDINTERFACECRYPTO::pfnKeyStorePasswordRetain
     1557 * Gets a reference to the password identified by the given ID to open a key store supplied through the config interface.
     1558 *
     1559 * @returns VBox status code.
     1560 * @param   pIfCrypto       Pointer to the crypto interface.
     1561 * @param   pszId           The alias/id for the password to retain.
     1562 * @param   ppszPassword    Where to store the password to unlock the key store on success.
    15401563 */
    15411564DECLINLINE(int) vdIfCryptoKeyStorePasswordRetain(PVDINTERFACECRYPTO pIfCrypto, const char *pszId, const char **ppszPassword)
     
    15451568
    15461569/**
    1547  * @copydoc VDINTERFACECRYPTO::pfnKeyStorePasswordRelease
     1570 * Releases a reference of the password previously acquired with VDINTERFACECRYPTO::pfnKeyStorePasswordRetain()
     1571 * identified by the given ID.
     1572 *
     1573 * @returns VBox status code.
     1574 * @param   pIfCrypto       Pointer to the crypto interface.
     1575 * @param   pszId           The alias/id for the password to release.
    15481576 */
    15491577DECLINLINE(int) vdIfCryptoKeyStorePasswordRelease(PVDINTERFACECRYPTO pIfCrypto, const char *pszId)
     
    15531581
    15541582/**
    1555  * @copydoc VDINTERFACECRYPTO::pfnKeyStoreSave
     1583 * Saves a key store.
     1584 *
     1585 * @returns VBox status code.
     1586 * @param   pIfCrypto       Pointer to the crypto interface.
     1587 * @param   pvKeyStore      The key store to save.
     1588 * @param   cbKeyStore      Size of the key store in bytes.
     1589 *
     1590 * @note The format is filter specific and should be treated as binary data.
    15561591 */
    15571592DECLINLINE(int) vdIfCryptoKeyStoreSave(PVDINTERFACECRYPTO pIfCrypto, const void *pvKeyStore, size_t cbKeyStore)
     
    15611596
    15621597/**
    1563  * @copydoc VDINTERFACECRYPTO::pfnKeyStoreReturnParameters
     1598 * Returns the parameters after the key store was loaded successfully.
     1599 *
     1600 * @returns VBox status code.
     1601 * @param   pIfCrypto       Pointer to the crypto interface.
     1602 * @param   pszCipher       The cipher identifier the DEK is used for.
     1603 * @param   pbDek           The raw DEK which was contained in the key store loaded by
     1604 *                          VDINTERFACECRYPTO::pfnKeyStoreLoad().
     1605 * @param   cbDek           The size of the DEK.
     1606 *
     1607 * @note The provided pointer to the DEK is only valid until this call returns.
     1608 *       The content might change afterwards with out notice (when scrambling the key
     1609 *       for further protection for example) or might be even freed.
     1610 *
     1611 * @note This method is optional and can be NULL if the caller does not require the
     1612 *       parameters.
    15641613 */
    15651614DECLINLINE(int) vdIfCryptoKeyStoreReturnParameters(PVDINTERFACECRYPTO pIfCrypto, const char *pszCipher,
Note: See TracChangeset for help on using the changeset viewer.

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