VirtualBox

Changeset 40329 in vbox for trunk/include


Ignore:
Timestamp:
Mar 2, 2012 4:13:50 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
76594
Message:

Main/Runtime/VBoxManage: SHA256 support comes with OVF 2.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/manifest.h

    r39877 r40329  
    5858/** @} */
    5959
     60/** @name Digest types. */
     61typedef enum RTDIGESTTYPE
     62{
     63    /** CRC32 checksum */
     64    RTDIGESTTYPE_CRC32 = 1,
     65    /** CRC64 checksum */
     66    RTDIGESTTYPE_CRC64,
     67    /** MD5 checksum (unsafe!) */
     68    RTDIGESTTYPE_MD5,
     69    /** SHA1 checksum (unsafe!) */
     70    RTDIGESTTYPE_SHA1,
     71    /** SHA256 checksum */
     72    RTDIGESTTYPE_SHA256,
     73    /** SHA512 checksum */
     74    RTDIGESTTYPE_SHA512
     75} RTDIGESTTYPE;
     76/** @} */
     77
    6078
    6179/**
     
    399417/**
    400418 * Input structure for RTManifestVerify() which contains the filename & the
    401  * SHA1 digest.
     419 * SHA1/SHA256 digest.
    402420 */
    403421typedef struct RTMANIFESTTEST
     
    405423    /** The filename. */
    406424    const char *pszTestFile;
    407     /** The SHA1 digest of the file. */
     425    /** The SHA1/SHA256 digest of the file. */
    408426    const char *pszTestDigest;
    409427} RTMANIFESTTEST;
     
    457475 *
    458476 * @param   pszManifestFile      Filename of the manifest file to create.
     477 * @param   enmDigestType        The digest type (RTDIGESTTYPE_*)
    459478 * @param   papszFiles           Array of files to create SHA1 sums for.
    460479 * @param   cFiles               Number of entries in papszFiles.
     
    462481 * @param   pvUser               user defined pointer for the callback
    463482 */
    464 RTR3DECL(int) RTManifestWriteFiles(const char *pszManifestFile, const char * const *papszFiles, size_t cFiles,
     483RTR3DECL(int) RTManifestWriteFiles(const char *pszManifestFile, RTDIGESTTYPE enmDigestType,
     484                                   const char * const *papszFiles, size_t cFiles,
    465485                                   PFNRTPROGRESS pfnProgressCallback, void *pvUser);
    466486
     
    490510 * @param   ppvBuf               Pointer to resulting memory buffer.
    491511 * @param   pcbSize              Pointer for the size of the memory buffer.
     512 * @param   enmDigestType        Which type of digest ("SHA1", "SHA256", ...)
    492513 * @param   paFiles              Array of file names and digests.
    493514 * @param   cFiles               Number of entries in paFiles.
    494515 */
    495 RTR3DECL(int) RTManifestWriteFilesBuf(void **ppvBuf, size_t *pcbSize, PRTMANIFESTTEST paFiles, size_t cFiles);
     516RTR3DECL(int) RTManifestWriteFilesBuf(void **ppvBuf, size_t *pcbSize, RTDIGESTTYPE enmDigestType, PRTMANIFESTTEST paFiles, size_t cFiles);
    496517
    497518/** @} */
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