Changeset 58092 in vbox
- Timestamp:
- Oct 7, 2015 1:32:41 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 103163
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vd-ifs.h
r57006 r58092 1440 1440 * @param pszId The alias/id for the key to release. 1441 1441 * 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. 1445 1446 */ 1446 1447 DECLR3CALLBACKMEMBER(int, pfnKeyRelease, (void *pvUser, const char *pszId)); … … 1521 1522 1522 1523 /** 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. 1524 1532 */ 1525 1533 DECLINLINE(int) vdIfCryptoKeyRetain(PVDINTERFACECRYPTO pIfCrypto, const char *pszId, const uint8_t **ppbKey, size_t *pcbKey) … … 1529 1537 1530 1538 /** 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. 1532 1550 */ 1533 1551 DECLINLINE(int) vdIfCryptoKeyRelease(PVDINTERFACECRYPTO pIfCrypto, const char *pszId) … … 1537 1555 1538 1556 /** 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. 1540 1563 */ 1541 1564 DECLINLINE(int) vdIfCryptoKeyStorePasswordRetain(PVDINTERFACECRYPTO pIfCrypto, const char *pszId, const char **ppszPassword) … … 1545 1568 1546 1569 /** 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. 1548 1576 */ 1549 1577 DECLINLINE(int) vdIfCryptoKeyStorePasswordRelease(PVDINTERFACECRYPTO pIfCrypto, const char *pszId) … … 1553 1581 1554 1582 /** 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. 1556 1591 */ 1557 1592 DECLINLINE(int) vdIfCryptoKeyStoreSave(PVDINTERFACECRYPTO pIfCrypto, const void *pvKeyStore, size_t cbKeyStore) … … 1561 1596 1562 1597 /** 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. 1564 1613 */ 1565 1614 DECLINLINE(int) vdIfCryptoKeyStoreReturnParameters(PVDINTERFACECRYPTO pIfCrypto, const char *pszCipher,
Note:
See TracChangeset
for help on using the changeset viewer.