VirtualBox

Changeset 45227 in vbox for trunk/include/iprt/sha.h


Ignore:
Timestamp:
Mar 28, 2013 12:22:11 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
84602
Message:

Main: OVF 2.0 support. Part 1 - SHA256 digest is supported.

File:
1 edited

Legend:

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

    r44529 r45227  
    216216RTDECL(int) RTSha256FromString(char const *pszDigest, uint8_t pabDigest[RTSHA256_HASH_SIZE]);
    217217
    218 
     218/**
     219 * Creates a SHA256 digest for the given memory buffer.
     220 *
     221 * @returns iprt status code.
     222 *
     223 * @param   pvBuf                 Memory buffer to create a
     224 *                                SHA256 digest for.
     225 * @param   cbBuf                 The amount of data (in bytes).
     226 * @param   ppszDigest            On success the SHA256 digest.
     227 * @param   pfnProgressCallback   optional callback for the progress indication
     228 * @param   pvUser                user defined pointer for the callback
     229 */
     230RTR3DECL(int) RTSha256Digest(void* pvBuf, size_t cbBuf, char **ppszDigest, PFNRTPROGRESS pfnProgressCallback, void *pvUser);
     231
     232/**
     233 * Creates a SHA256 digest for the given file.
     234 *
     235 * @returns iprt status code.
     236 *
     237 * @param   pszFile               Filename to create a SHA256
     238 *                                digest for.
     239 * @param   ppszDigest            On success the SHA256 digest.
     240 * @param   pfnProgressCallback   optional callback for the progress indication
     241 * @param   pvUser                user defined pointer for the callback
     242 */
     243RTR3DECL(int) RTSha256DigestFromFile(const char *pszFile, char **ppszDigest, PFNRTPROGRESS pfnProgressCallback, void *pvUser);
    219244
    220245/** The size of a SHA-512 hash. */
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